【Deferred Segment Creation】Oracle 11g新特性-延期建立段
注意事項:
1, 在sys使用者下建立的段立即建立,無論此時段內有無資料
A,建立在system表空間
scott@ORCL> conn / as sysdba
Connected.
sys@ORCL> show parameter defer
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation boolean TRUE
sys@ORCL> create table t_test (n number);
Table created.
sys@ORCL> select * from user_segments where segment_name='T_TEST';
SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE SEGMENT_SU TABLESPACE_NAME
------------------------------ ------------------------------ ------------------ ---------- ------------------------------
BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE RETENTI MINRETENTION PCT_INCREASE
---------- ---------- ---------- -------------- ----------- ----------- ----------- ---------- ------- ------------ ------------
FREELISTS FREELIST_GROUPS BUFFER_ FLASH_C CELL_FL
---------- --------------- ------- ------- -------
T_TEST TABLE MSSM SYSTEM
65536 8 1 65536 1048576 1 2147483645 2147483645
1 1 DEFAULT DEFAULT DEFAULT
sys@ORCL> drop table t_test;
Table dropped.
B,建立在非system表空間
scott@ORCL> conn / as sysdba
Connected.
sys@ORCL> create table t_test (n number) tablespace users;
Table created.
sys@ORCL> select * from user_segments where segment_name='T_TEST';
SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE SEGMENT_SU TABLESPACE_NAME
------------------------------ ------------------------------ ------------------ ---------- ------------------------------
BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE RETENTI MINRETENTION PCT_INCREASE
---------- ---------- ---------- -------------- ----------- ----------- ----------- ---------- ------- ------------ ------------
FREELISTS FREELIST_GROUPS BUFFER_ FLASH_C CELL_FL
---------- --------------- ------- ------- -------
T_TEST TABLE ASSM USERS
65536 8 1 65536 1048576 1 2147483645 2147483645
DEFAULT DEFAULT DEFAULT
2,在其它使用者下建立的段,只要此時段內沒有資料,並不立即建立段
A,建立在非system表空間
sys@ORCL> conn scott/tiger;
Connected.
scott@ORCL> create table t_test (n number);
Table created.
scott@ORCL> select * from user_segments where segment_name='T_TEST';
no rows selected
scott@ORCL> insert into t_test values(1);
1 row created.
scott@ORCL> select * from user_segments where segment_name='T_TEST';
SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE SEGMENT_SU TABLESPACE_NAME
------------------------------ ------------------------------ ------------------ ---------- ------------------------------
BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE RETENTI MINRETENTION PCT_INCREASE
---------- ---------- ---------- -------------- ----------- ----------- ----------- ---------- ------- ------------ ------------
FREELISTS FREELIST_GROUPS BUFFER_ FLASH_C CELL_FL
---------- --------------- ------- ------- -------
T_TEST TABLE ASSM USERS
65536 8 1 65536 1048576 1 2147483645 2147483645
DEFAULT DEFAULT DEFAULT
scott@ORCL> drop table t_test;
Table dropped.
B,建立在system表空間
scott@ORCL> create table t_test (n number) tablespace system;
Table created.
scott@ORCL> select * from user_segments where segment_name='T_TEST';
no rows selected
scott@ORCL> insert into t_test values(1);
1 row created.
scott@ORCL> select * from user_segments where segment_name='T_TEST';
SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE SEGMENT_SU TABLESPACE_NAME
------------------------------ ------------------------------ ------------------ ---------- ------------------------------
BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE RETENTI MINRETENTION PCT_INCREASE
---------- ---------- ---------- -------------- ----------- ----------- ----------- ---------- ------- ------------ ------------
FREELISTS FREELIST_GROUPS BUFFER_ FLASH_C CELL_FL
---------- --------------- ------- ------- -------
T_TEST TABLE MSSM SYSTEM
65536 8 1 65536 1048576 1 2147483645 2147483645
1 1 DEFAULT DEFAULT DEFAULT
scott@ORCL> drop table t_test;
Table dropped.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14359/viewspace-735915/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 11g deferred_segment_creation段延遲建立Oracle
- 【延遲段建立】Oracle 11gR2的延遲段建立(deferred segment creation)特性Oracle
- Oracle 11g的Deferred Segment CreationOracle
- 我嘞個去,11G新特性deferred_segment_creation
- 11GR2的新特性Deferred Segment Creation
- Oracle 11gr2 的新特性-延遲段建立Oracle
- 【ORACLE新特性】11G 分割槽新特性Oracle
- Oracle 11g 新特性Oracle
- [20131109]deferred segment creation與12c的exp命令.txt
- oracle 11g 的新特性Oracle
- Oracle 11g 新特性簡介Oracle
- Oracle 11g 新特性之DRCPOracle
- Oracle 11g新特性:Result CacheOracle
- Oracle 11g 新特性(轉載)Oracle
- Oracle 11g新特性之SecureFilesOracle
- oracle DG 11g新特性彙總Oracle
- ORACLE 11G新特性之列新增操作Oracle
- Oracle 11g 新特性 -- SecureFiles 說明Oracle
- oracle 11g 新特性 表壓縮Oracle
- Oracle 11g 新特性 -- SQL Plan Management 示例OracleSQL
- 天天學習ORACLE(三)-11G新特性Oracle
- oracle 11g 新特性 磁碟組檢查Oracle
- Oracle 11G 新特性 Automatic block repairOracleBloCAI
- Oracle 11g DG新特性--Automatic block repairOracleBloCAI
- Oracle 11g 新特性 – HM(Hang Manager)簡介Oracle
- ORACLE 11g新特性-統計值掛起Oracle
- oracle 11g 新特性 data recover AdvisorOracle
- oracle 11g 新特性 Flashback Data Archive 說明OracleHive
- Oracle 11g的新特性分割槽:System PartitionOracle
- 11g新特性--Oracle 11g 閃回資料歸檔Oracle
- 新特性:/dev/shm對Oracle 11g的影響devOracle
- 【11g新特性】Oracle 加密表空間-可下載Oracle加密
- oracle 11G新特性--SYSASM 角色--用來管理ASMOracleASM
- oracle 11g R1 asm 磁碟組新特性OracleASM
- oracle 11g新特性之密碼大小寫敏感Oracle密碼
- oracle 12c 新特性 Temporary UNDO 臨時回滾段Oracle
- oracle10G新特性之段顧問的應用Oracle
- 11g data guard 新特性