国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

Oracle11g調(diào)整SGA方法詳解

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

Oracle11gSGA調(diào)整方法

oracle11g修改sga要先修改memory_target等參數(shù),否則服務(wù)重啟時(shí)會(huì)出現(xiàn)錯(cuò)誤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/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ù)庫(kù)已經(jīng)關(guān)閉。已經(jīng)卸載數(shù)據(jù)庫(kù)。ORACLE 例程已經(jīng)關(guān)閉。SQL> startup;ORACLE 例程已經(jīng)啟動(dòng)。Total System Global Area  631926784 bytesFixed Size  1334996 bytesVariable Size     205521196 bytesDatabase Buffers  419430400 bytesRedo Buffers5640192 bytes數(shù)據(jù)庫(kù)裝載完畢。數(shù)據(jù)庫(kù)已經(jīng)打開(kāi)。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ù)庫(kù)已經(jīng)關(guān)閉。已經(jīng)卸載數(shù)據(jù)庫(kù)。ORACLE 例程已經(jīng)關(guān)閉。SQL> startup;ORACLE 例程已經(jīng)啟動(dòng)。Total System Global Area  686329856 bytesFixed Size  1335360 bytesVariable Size     205524928 bytesDatabase Buffers  473956352 bytesRedo Buffers5513216 bytes數(shù)據(jù)庫(kù)裝載完畢。數(shù)據(jù)庫(kù)已經(jīng)打開(kāi)。SQL> show sga;Total System Global Area  686329856 bytesFixed Size  1335360 bytesVariable Size     205524928 bytesDatabase Buffers  473956352 bytesRedo Buffers5513216 bytes

附:ora-00844錯(cuò)誤解決辦法:

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

(手動(dòng)修改文件中對(duì)應(yīng)的memory_target參數(shù))

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

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

標(biāo)簽: Oracle
主站蜘蛛池模板: 石城县| 武山县| 根河市| 新田县| 阿合奇县| 梅河口市| 合川市| 南和县| 湘潭县| 静安区| 珠海市| 婺源县| 绍兴市| 同心县| 贵阳市| 龙岩市| 松原市| 上蔡县| 灌云县| 庄浪县| 南通市| 澄城县| 云龙县| 社会| 嵊泗县| 永新县| 镇康县| 来凤县| 远安县| 隆尧县| 宜宾县| 乌拉特前旗| 海伦市| 镇江市| 阿鲁科尔沁旗| 平遥县| 江源县| 安乡县| 巴林右旗| 阿鲁科尔沁旗| 益阳市|