Oracle 10G啟動時SGA大小,oracle10gsga大小

來源:互聯網
上載者:User

Oracle 10G啟動時SGA大小,oracle10gsga大小

Oracle 10g 庫啟動的SGA大小由sga_target與sga_max_size決定,分下面三種情況討論

sga_target=sga_max_size

參數檔案指定值

*.sga_target=599785472

啟動

SQL> startupORACLE instance started.Total System Global Area  599785472 bytesFixed Size          2022632 bytesVariable Size         171967256 bytesDatabase Buffers      423624704 bytesRedo Buffers            2170880 bytesDatabase mounted.Database opened.

sga_target < sga_max_size
參數檔案指定值

*.sga_max_size=800m*.sga_target=700m

啟動資料庫

SQL> startupORACLE instance started.Total System Global Area  838860800 bytesFixed Size          2024496 bytesVariable Size         297798608 bytesDatabase Buffers      536870912 bytesRedo Buffers            2166784 bytesDatabase mounted.Database opened.
SQL> select 838860800/1024/1024 from dual;838860800/1024/1024-------------------        800SQL> show parameter sga_NAME                   TYPE      VALUE------------------- ----------- -----------------------sga_max_size         big integer 800Msga_target           big integer 700M

sga_target>sga_max_size

參數檔案指定值

*.sga_max_size=600m*.sga_target=700m

而資料庫實際啟動的大小

SQL> startupORACLE instance started.Total System Global Area  734003200 bytesFixed Size          2023656 bytesVariable Size         192941848 bytesDatabase Buffers      536870912 bytesRedo Buffers            2166784 bytesDatabase mounted.Database opened.
SQL> select 734003200/1024/1024 from dual;734003200/1024/1024-------------------        700SQL> show parameter sga_   NAME                     TYPE    VALUE------------------------------------ ----------- ------------------------------sga_max_size                 big integer 700Msga_target               big integer 700M

實驗結論
由以上三個實驗可以看到,資料庫啟動時SGA的大小由SGA_TARGET和SGA_MAX_SIZE中的較大值決定

當SGA_TARGET <= SGA_MAX_SIZE時,以SGA_MAX_SIZE為準
當SGA_TARGET > SGA_MAX_SIZE時,將SGA_TARGET的值賦予SGA_MAX_SIZE,然後以SGA_MAX_SIZE為準

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.