修改oracle記憶體參數

來源:互聯網
上載者:User

標籤:from   pad   image   line   idt   art   參數檔案   play   檔案   

Linux主機16g記憶體,修改oracle資料庫記憶體參數:

1、編輯/etc/fstab檔案:針對tmpfs行將defaults改成defaults,size=12g(千萬注意格式,不能出現錯誤)

修改貢獻記憶體參數後,reboot重啟伺服器。

2、sqlplus登入oracle資料庫,備份參數檔案:

以下語句備份參數檔案(必須):

SQL>create pfile=‘/u01/app/oracle/pfile20161625.ora‘ from spfile;

3、Show parameter memory查看oracle參數設定

如果value都是0,如所示,則正確,否則運行下面語句:

SQL>alter system reset memory_max_target scope=spfile;

SQL>alter system reset memory_target scope=spfile;

4、SQL視窗修改以下參數:

SQL>alter system set sga_max_size=7168m scope=spfile;

SQL>alter system set sga_target=6144m scope=spfile;

SQL>alter system set pga_aggregate_target=4096m scope=spfile;

5、Startup force重啟資料庫伺服器,生效參數

修改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.