免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1777 | 回复: 0
打印 上一主题 下一主题

initial next minextents maxextents pctincrease [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-22 08:53 |只看该作者 |倒序浏览

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.

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP