做一個 initial 大於 uniform size 乘以 minextents 的實驗,總結出initial extent的分配規律,minextentsinitial

來源:互聯網
上載者:User

做一個 initial 大於 uniform size 乘以 minextents 的實驗,總結出initial extent的分配規律,minextentsinitial

本文是原創文章,轉載請註明出處:http://blog.csdn.net/msdnchina/article/details/43836609

做一個 INITIAL EXTENT 大於 UNIFORM size 乘以 MINEXTENTS 的實驗。總結出initial extent的分配規律

Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> alter system set deferred_segment_creation=false;System altered.SQL> show parameter deferNAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------deferred_segment_creation            boolean     FALSESQL> 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----------   104857612 rows selected.SQL> show user    USER is "SCOTT"SQL> 

結果是分配了12個大小為1M(即:uniform size)的 extents。

貌似是前10個 1M 對應minextents的第一個, 後2個1M對應 minextents的第二個和第三個。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.