久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

Oracle11g調整SGA方法詳解

瀏覽:255日期:2023-03-12 15:25:23

Oracle11gSGA調整方法

oracle11g修改sga要先修改memory_target等參數(shù),否則服務重啟時會出現(xiàn)錯誤ORA-00844: Parameter not taking MEMORY_TARGET into account, see alert log for mo

re information。

Oracle內存參數(shù)結構:

修改SGA必須保持的原則:
1.sga_target不能大于sga_max_size,可以設置為相等。
2.SGA加上PGA等其他進程占用的內存總數(shù)必須小于操作系統(tǒng)的物理內存。

具體命令操作如下:

C:UsersAdministrator>sqlplus/nologSQL*Plus: Release 11.1.0.6.0 - Production on 星期三 2月 22 10:51:08 2012Copyright (c) 1982, 2007, Oracle.  All rights reserved.SQL> conn sys/sys as sysdba;已連接。SQL> show sga;Total System Global Area  631926784 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytesSQL> 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 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytesSQL> shutdown immediate;數(shù)據(jù)庫已經關閉。已經卸載數(shù)據(jù)庫。ORACLE 例程已經關閉。SQL> startup;ORACLE 例程已經啟動。Total System Global Area  631926784 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已經打開。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ù)庫已經關閉。已經卸載數(shù)據(jù)庫。ORACLE 例程已經關閉。SQL> startup;ORACLE 例程已經啟動。Total System Global Area  686329856 bytesFixed Size  1335360 bytesVariable Size     205524928 bytesDatabase Buffers  473956352 bytesRedo Buffers5513216 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已經打開。SQL> show sga;Total System Global Area  686329856 bytesFixed Size  1335360 bytesVariable Size     205524928 bytesDatabase Buffers  473956352 bytesRedo Buffers5513216 bytes

附:ora-00844錯誤解決辦法:

SQL> create pfile='c:inittest.ora' from spfile;
文件已創(chuàng)建。

(手動修改文件中對應的memory_target參數(shù))

SQL> startup pfile="c:inittest.ora";ORACLE 例程已經啟動。Total System Global Area  631926784 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已經打開。SQL> create spfile from pfile="c:inittest.ora";文件已創(chuàng)建。SQL> shutdown immediate;數(shù)據(jù)庫已經關閉。已經卸載數(shù)據(jù)庫。ORACLE 例程已經關閉。SQL> startup;ORACLE 例程已經啟動。Total System Global Area  631926784 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已經打開。

到此這篇關于Oracle11gSGA調整方法的文章就介紹到這了,更多相關Oracle11g SGA調整內容請搜索以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持!

標簽: Oracle
主站蜘蛛池模板: 武川县| 上饶市| 阜康市| 清苑县| 云阳县| 通辽市| 通许县| 阿图什市| 剑河县| 九台市| 唐山市| 石嘴山市| 来安县| 安吉县| 宜黄县| 奈曼旗| 新宁县| 左权县| 乌兰县| 巩义市| 巴彦淖尔市| 墨竹工卡县| 正阳县| 德惠市| 莱西市| 山丹县| 丰原市| 齐齐哈尔市| 福州市| 左贡县| 景东| 瑞丽市| 宜君县| 周至县| 咸阳市| 宣威市| 孟村| 江北区| 青冈县| 贺兰县| 偃师市|