Oracle 11g的Deferred Segment Creation

來源:互聯網
上載者:User

Oracle 11g的Deferred Segment Creation

本篇主要介紹Oracle 11g中推出的“延遲段建立”(Deferred Segment Creation)特性,以及當我們使用這種特性時,需要注意的問題。

  1)Deferred Segment Creation

  在Oracle中,“資料表空間(Tablespace)、段(Segment)、分區(Extent)和塊(Block)”是邏輯儲存結構的四個層次。對資料表而言,通常是由一個或者多個段對象(分區表)Segment組成。也就是說,在資料表建立的時刻,Oracle會建立一個資料區段Segment對象與之對應。

  當Segment建立之後,Oracle空間管理機制會根據需要分配至少一個extent作為初始化。每個extent的大小需要根據不同tablespace進行配置。但是在11g之前,資料表的建立同時,就發生了空間Segment分配的過程。但是在Oracle 11g中,引入了Deferred Segment Creation特性。

  首先我們建立一個資料表justForTest,來觀察資料庫是否為此表分配segment。

SQL> 

相關文章

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.