oracle initial next minextents maxextents pctincrease是什么意思???????

oracle initial next minextents maxextents pctincrease是什么意思???????

INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0

CREATE TABLESPACE WDK_CODE DATAFILE 'D:\ORADATA\CODE\CODE01.ora' SIZE 20M DEFAULT STORAGE ( INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0 ) MINIMUM EXTENT 0K;
那位老兄能帮我解释一下上面的语句是什么意思?


 

 

create tablespace 语法

CREATE [UNDO] TABLESPACE tablespace 
[DATAFILE datafile_tempfile_spec [, datafile_tempfile_spec]... ] 
[{ MINIMUM EXTENT integer [ K | M ]
| BLOCKSIZE integer [K]
| logging_clause  
| FORCE LOGGING
| DEFAULT [data_segment_compression] storage_clause
| { ONLINE | OFFLINE }
| { PERMANENT | TEMPORARY }
| extent_management_clause
| segment_management_clause
}
[ MINIMUM EXTENT integer [ K | M ]
| BLOCKSIZE integer [K]
| logging_clause
| FORCE LOGGING
| DEFAULT [data_segment_compression] storage_clause
| { ONLINE | OFFLINE }
| { PERMANENT | TEMPORARY }
| extent_management_clause
| segment_management_clause
]...
]
;

 

 

 

 

 

INITIAL:specifies the size in bytes of the object's first extent.  Oracle allocates space for this extent when you create the object.  You can also use K or M to specify this size in kilobytes or megabytes.  The default value is the size of 5 data blocks.  The minimum value is the size of 2 data blocks.  The maximum value varies depending on your operating system.  Oracle rounds values up to the next multiple of the data block size. 

NEXT:specifies the size in bytes of the next extent to be allocated to the object.  You can also use K or M to specify the size in kilobytes or megabytes.  The default value is the size of 5 data blocks.  The minimum value is the size of 1 data block.  The maximum value varies depending on your operating system.  Oracle rounds values up to the next multiple of the data block size. 

MINEXTENTS:specifies the total number of extents allocated when the segment is created.  This parameter allows you to allocate a large amount of space when you create an object, even if the space available is not contiguous.  The default and minimum value is 1, meaning that Oracle only allocates the initial extent, except for rollback segments for which the default and minimum value is 2.  The maximum value varies depending on your operating system. 
If the MINEXTENTS value is greater than 1, then Oracle calculates the size of subsequent extents based on the values of the INITIAL, NEXT, and PCTINCREASE parameters. 

MAXEXTENTS:specifies the total number of extents, including the first, that Oracle can allocate for the object.  The minimum value is 1.  The default and maximum values vary depending your data block size.

PCTINCREASE:specifies the percent by which each extent after the second grows over the previous extent.  The default value is 50,  meaning that each subsequent extent is 50% larger than the preceding extent. The minimum value is 0, meaning all extents after the first are the same size.  The maximum value varies depending on your operating system. 
You cannot specify PCTINCREASE for rollback segments.  Rollback segments always have a PCTINCREASE value of 0. 
Oracle rounds the calculated size of each new extent up to the next multiple of the data block size.



=====================
感谢网友答复:

initial 为表指定的第一个盘区大小;next 为表指定的第二个盘区的大小;minextends 一个表可用的最少的盘区数目;maxextends反之。上述四个参数只有在autoallocate方式下才能在storage子句中去设置。那句语句的意思是:创建表空间WDK_CODE,文件位置'D:\ORADATA\CODE\CODE01.ora',大小20M,为这个表空间分配的第一个盘区大小:100k,第二个盘区:100k,最小盘区:1个,最大盘区:无限制。


 

initial 为表指定的第一个盘区大小;next 为表指定的第二个盘区的大小;minextends 一个表可用的最少的盘区数目;maxextends反之。上述四个参数只有在autoallocate方式下才能在storage子句中去设置。那句语句的意思是:创建表空间WDK_CODE,文件位置'D:\ORADATA\CODE\CODE01.ora',大小20M,为这个表空间分配的第一个盘区大小:100k,第二个盘区:100k,最小盘区:1个,最大盘区:无限制。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值