Oracle11g調(diào)整SGA方法詳解
Oracle11gSGA調(diào)整方法
oracle11g修改sga要先修改memory_target等參數(shù),否則服務重啟時會出現(xiàn)錯誤ORA-00844: Parameter not taking MEMORY_TARGET into account, see alert log for mo
re information。
Oracle內(nèi)存參數(shù)結(jié)構(gòu):

修改SGA必須保持的原則:
1.sga_target不能大于sga_max_size,可以設置為相等。
2.SGA加上PGA等其他進程占用的內(nèi)存總數(shù)必須小于操作系統(tǒng)的物理內(nèi)存。
具體命令操作如下:
C:UsersAdministrator>sqlplus/nolog SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 2月 22 10:51:08 2012 Copyright (c) 1982, 2007, Oracle. All rights reserved. SQL> conn sys/sys as sysdba; 已連接。 SQL> show sga; Total System Global Area 631926784 bytes Fixed Size 1334996 bytes Variable Size 205521196 bytes Database Buffers 419430400 bytes Redo Buffers 5640192 bytes SQL> alter system set memory_max_target=700m scope=spfile; 系統(tǒng)已更改。 SQL> alter system set memory_target=700m scope=spfile; 系統(tǒng)已更改。 SQL> show sga; Total System Global Area 631926784 bytes Fixed Size 1334996 bytes Variable Size 205521196 bytes Database Buffers 419430400 bytes Redo Buffers 5640192 bytes SQL> shutdown immediate; 數(shù)據(jù)庫已經(jīng)關(guān)閉。 已經(jīng)卸載數(shù)據(jù)庫。 ORACLE 例程已經(jīng)關(guān)閉。 SQL> startup; ORACLE 例程已經(jīng)啟動。 Total System Global Area 631926784 bytes Fixed Size 1334996 bytes Variable Size 205521196 bytes Database Buffers 419430400 bytes Redo Buffers 5640192 bytes 數(shù)據(jù)庫裝載完畢。 數(shù)據(jù)庫已經(jīng)打開。 SQL> alter system set sga_target=650m scope=spfile; 系統(tǒng)已更改。 SQL> alter system set sga_max_size=650m scope=spfile; 系統(tǒng)已更改。 SQL> shutdown immediate; 數(shù)據(jù)庫已經(jīng)關(guān)閉。 已經(jīng)卸載數(shù)據(jù)庫。 ORACLE 例程已經(jīng)關(guān)閉。 SQL> startup; ORACLE 例程已經(jīng)啟動。 Total System Global Area 686329856 bytes Fixed Size 1335360 bytes Variable Size 205524928 bytes Database Buffers 473956352 bytes Redo Buffers 5513216 bytes 數(shù)據(jù)庫裝載完畢。 數(shù)據(jù)庫已經(jīng)打開。 SQL> show sga; Total System Global Area 686329856 bytes Fixed Size 1335360 bytes Variable Size 205524928 bytes Database Buffers 473956352 bytes Redo Buffers 5513216 bytes
附:ora-00844錯誤解決辦法:
SQL> create pfile='c:inittest.ora' from spfile;
文件已創(chuàng)建。
(手動修改文件中對應的memory_target參數(shù))
SQL> startup pfile='c:inittest.ora'; ORACLE 例程已經(jīng)啟動。 Total System Global Area 631926784 bytes Fixed Size 1334996 bytes Variable Size 205521196 bytes Database Buffers 419430400 bytes Redo Buffers 5640192 bytes 數(shù)據(jù)庫裝載完畢。 數(shù)據(jù)庫已經(jīng)打開。 SQL> create spfile from pfile='c:inittest.ora'; 文件已創(chuàng)建。 SQL> shutdown immediate; 數(shù)據(jù)庫已經(jīng)關(guān)閉。 已經(jīng)卸載數(shù)據(jù)庫。 ORACLE 例程已經(jīng)關(guān)閉。 SQL> startup; ORACLE 例程已經(jīng)啟動。 Total System Global Area 631926784 bytes Fixed Size 1334996 bytes Variable Size 205521196 bytes Database Buffers 419430400 bytes Redo Buffers 5640192 bytes 數(shù)據(jù)庫裝載完畢。 數(shù)據(jù)庫已經(jīng)打開。
到此這篇關(guān)于Oracle11gSGA調(diào)整方法的文章就介紹到這了,更多相關(guān)Oracle11g SGA調(diào)整內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Oracle數(shù)據(jù)庫升級或數(shù)據(jù)遷移方法研究
本文詳細論述了oracle數(shù)據(jù)庫升級的升級前的準備、升級過程和升級后的測試與調(diào)整工作,并對各種升級方法在多種操作系統(tǒng)平臺上作了測試。2016-07-07
oracle表空間表分區(qū)詳解及oracle表分區(qū)查詢使用方法
racle表空間表分區(qū)詳解及oracle表分區(qū)查詢使用方法,大家參考使用吧2013-12-12
Linux系統(tǒng)下導出ORACLE數(shù)據(jù)庫出現(xiàn)Exporting questionable statistics.錯誤 處理
Linux系統(tǒng)下導出ORACLE數(shù)據(jù)庫出現(xiàn)Exporting questionable statistics.錯誤 處理...2007-03-03
oracle 監(jiān)聽 lsnrctl 命令 (推薦)
這篇文章主要介紹了oracle 監(jiān)聽 lsnrctl 命令 ,非常不錯,具有參考借鑒價值,需要的朋友可以參考下2017-03-03
關(guān)于使用PLSQL Developer時出現(xiàn)報錯ora-12514的問題
這篇文章主要介紹了關(guān)于使用PLSQL Developer時出現(xiàn)報錯ora-12514的問題,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-11-11

