Oracle11g調(diào)整SGA方法詳解
Oracle11gSGA調(diào)整方法
oracle11g修改sga要先修改memory_target等參數(shù),否則服務(wù)重啟時會出現(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,可以設(shè)置為相等。
2.SGA加上PGA等其他進(jìn)程占用的內(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)建。
(手動修改文件中對應(yī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ù)遷移完整解決步驟
我們常常需要對數(shù)據(jù)進(jìn)行遷移,遷移到更性能配置更高級的主機(jī)OS上、遷移到遠(yuǎn)程的機(jī)房、遷移到不同的平臺下,這篇文章主要給大家介紹了關(guān)于Oracle數(shù)據(jù)庫數(shù)據(jù)遷移的相關(guān)資料,需要的朋友可以參考下2024-02-02Oracle 11g收集多列統(tǒng)計(jì)信息詳解
我們在寫SQL語句的時候,有的時候會碰到where子句后面有多個條件的情況,也就是根據(jù)多列的條件篩選得到數(shù)據(jù)。下面這篇文章主要給大家介紹了Oracle 11g收集多列統(tǒng)計(jì)信息的相關(guān)資料,文中介紹的非常詳細(xì),需要的朋友可以參考下。2017-03-03oracle11g管理員密碼忘記怎么辦 sqlplus解決忘記密碼問題
oracle11g管理員密碼忘記了怎么辦?這篇文章主要介紹了oracle 11g管理員密碼忘記問題的解決方法,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-06-06詳解oracle中通過觸發(fā)器記錄每個語句影響總行數(shù)
這篇文章主要介紹了詳解oracle中通過觸發(fā)器記錄每個語句影響總行數(shù)的相關(guān)資料,需要的朋友可以參考下2017-06-06Oracle數(shù)據(jù)泵(Data Dump)使用過程當(dāng)中經(jīng)常會遇到一些奇奇怪怪的錯誤案例
從oracledatabase 10g開始引入了data pump(數(shù)據(jù)泵)工具,它提供了一種基于服務(wù)器的數(shù)據(jù)導(dǎo)出導(dǎo)入使用程序。 所有的data pump都作為一個服務(wù)器進(jìn)程,數(shù)據(jù)不再必須由一個客戶程序處理。Data Pump工具的導(dǎo)出和導(dǎo)入實(shí)現(xiàn)Oracle數(shù)據(jù)庫之間數(shù)據(jù)的傳輸。2014-09-09Oracle中查看正在運(yùn)行的SQL進(jìn)程腳本分享
這篇文章主要介紹了Oracle中查看正在運(yùn)行的SQL進(jìn)程腳本分享,本文使用腳本實(shí)現(xiàn)了類似mysql show processlist命令的功能,需要的朋友可以參考下2014-10-10ORACLE常用數(shù)值函數(shù)、轉(zhuǎn)換函數(shù)、字符串函數(shù)
本文并不準(zhǔn)備介紹全部的oracle函數(shù),當(dāng)前情勢下,俺也還沒這個時間,需要學(xué)習(xí)的東西太多了,要把多數(shù)時間花在學(xué)習(xí)經(jīng)常能用上的技術(shù)方面:),所以如果是準(zhǔn)備深入了解所有oracle函數(shù)的朋友,還是去關(guān)注:Oracle SQL Reference官方文檔更靠譜一些。2009-11-11