Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5359583
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: Oracle

2011-07-10 23:47:37

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.

阅读(2427) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~