Oracle数据库的deferred_segment_creation和segment creation immediate

前端之家收集整理的这篇文章主要介绍了Oracle数据库的deferred_segment_creation和segment creation immediate前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[oracle@rhel63single ~]$ sqlplus scott/aaaaaa

sql*Plus: Release 11.2.0.4.0 Production on Sat Apr 8 02:54:40 2017

Copyright (c) 1982,2013,Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning,Automatic Storage Management,OLAP,Data Mining
and Real Application Testing options

sql> show parameter defer

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation	     boolean	 TRUE
sql> create table testa(reg_id number,reg_name varchar2(200)) segment creation immediate;

Table created.

sql> create table testb(reg_id number,reg_name varchar2(200)) ;

Table created.

sql> create table testc(reg_id number,reg_name varchar2(200)) segment creation deferred;

Table created.

sql> select segment_name from user_segments where segment_name in( 'TESTA','TESTB','TESTC');

SEGMENT_NAME
--------------------------------------------------------------------------------
TESTA

sql> select segment_name from user_extents where segment_name in( 'TESTA','TESTC');

SEGMENT_NAME
--------------------------------------------------------------------------------
TESTA

sql> 


总结: 1.create table的参数 segment creation immediate 的优先级高于数据库初始化参数deferred_segment_creation 2.create table的参数 segment creation immediate 的反义参数是segment creation deferred

原文链接:https://www.f2er.com/oracle/209330.html

猜你在找的Oracle相关文章