随同 admin() 或 task() 函数,使用 create blobspace 参数来创建 blobspace。
元素 | 描述 | 关键考虑 |
---|---|---|
blobspace | 要创建的 blobspace 的名称。 | |
initial_chunk_size | 新 blobspace 的初始 chunk 的大小,以 KB 为单位。 | 请参阅 admin() 和 task() 参数大小规范。 |
offset | 达到新 blobspace 的初始 chunk 的磁盘分区内或设备内的偏移量,以 KB 为单位。 | 请参阅 admin() 和 task() 参数大小规范。 |
page_size | blobspace blobpage 大小。 |
在多个缺省 GBase 8s 页大小中,为操作系统指定 blobpage 的大小。 要了解更多信息,请参阅 GBase 8s 性能指南 中对 blobpage 大小的考虑。 |
path_name | 正在创建的 blobspace 的初始 chunk 的磁盘分区或设备。 |
使用 create with_check blobspace 参数来检查指定的路径名,如果路径不存在,则返回错误。
这个函数等同于 onspaces -c -b 命令。
下列示例创建一 blobspace,大小为 20 MB,偏移量为 0 且 page_size 为 2。在 Windows™(4K 基本页大小)上,blob 页是 2 * 基本页大小 = 8 K。
EXECUTE FUNCTION task ("create with_check blobspace","blobs3", "$GBASEDBTDIR/WORK/blobs3","20 M","0","2");