Oracle測試環境參數調整.

來源:互聯網
上載者:User

標籤:回收   byte   行修改   member   gre   地區   使用   bytes   linu   

測試環境上面Oracle資料庫績效參數設定

1. 關閉資源回收筒

alter system set recyclebin=off

2. 修改redo日誌的大小

11g的預設大小是50m 如果redo file比較小 OLTP日誌比較多的情況會導致較多的redo fileswitch 建議在dbca的時候進行修改預設大小 500m 至1G 較好.

如果已經建立了 並且表小的情況下 可以 在資料庫執行命令增加新的redo file 然後再刪除舊的redofile進行處理.

alter database add logfile group x (‘dir\redofile.name‘,‘dir\anotherdb.name‘) size xxxxm ;

然後alter system switch logfile

查看日誌狀態

SELECT group#, members, bytes/1024/1024 byte_mb, status FROM v$log;

alter system checkpoint

alter database drop logfile group 1 # 刪除 inactive的記錄檔

提高效能

3. 修改oracle的記憶體參數

1) memory_target 設定為0 關閉AMM 記憶體管理

alter system set sga_max_size = xxg scope=spfile;

alter system set sga_target=xxg scope=spfile;

alter system set pga_aggregate_target=xxxg scope=spfile;

alter system set db_cache_size =xxg

alter system set shared_pool_size =xxg

注意事項是 db_cache_size + shared_pool_size 不能大於SGA地區的大小

4. oracle12c的記憶體資料庫參數

首先增加oracle 的in_memory 的大小

alter system set inmemory_size = xxg 注意 inmemory的參數也是在sga區中的

alter tablespace xxx default inmemory

也可以單獨將表或者是視圖放到inmemory地區中 不過 各有各的好處.

5. session 以及 process 的修改等參數.

 

6. linux 資料庫的時候 啟用 hugepage的方式來提高效能, --- 自己已經忘記如何配置.

7. 使用ASM儲存的方式提高效能, 以及可以使用raw disk的方式解決虛擬化層以及作業系統層的IO損耗.

 

Oracle測試環境參數調整.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.