码迷,mamicode.com
首页 > 其他好文 > 详细

做一个 initial 大于 uniform size 乘以 minextents 的实验,总结出initial extent的分配规律

时间:2015-02-15 19:27:41      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:initial extent   uniform size   minextents   

本文是原创文章,转载请注明出处:

做一个 INITIAL EXTENT 大于 UNIFORM size 乘以 MINEXTENTS 的实验。总结出initial extent的分配规律

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

SQL> alter system set deferred_segment_creation=false;

System altered.

SQL> show parameter defer

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation            boolean     FALSE

SQL> create tablespace test_uni_sz_1m 
  2  datafile '/u01/app/oracle/oradata/test/test_uni_sz_1m_01.dbf' size 200m
  3  extent management local uniform size 1m;

Tablespace created.

SQL> create table test_tab_3 (col1 varchar2(2)) tablespace test_uni_sz_1m storage(initial 10m minextents 3); 

Table created.

SQL> select bytes from dba_extents where segment_name = 'TEST_TAB_3' and owner = 'SCOTT';

     BYTES
----------
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576
   1048576

     BYTES
----------
   1048576

12 rows selected.

SQL> show user    
USER is "SCOTT"
SQL> 

结果是分配了12个大小为1M(即:uniform size)的 extents。

貌似是前10个 1M 对应minextents的第一个, 后2个1M对应 minextents的第二个和第三个。

做一个 initial 大于 uniform size 乘以 minextents 的实验,总结出initial extent的分配规律

标签:initial extent   uniform size   minextents   

原文地址:http://blog.csdn.net/msdnchina/article/details/43836609

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!