oracle 00851,Oracle调整内存参后报ORA-00844和ORA-00851
alter system set sga_max_size=40960M scope=spfile;
SQL>alter system set sga_target=40960M scope=spfile;
SQL>alter system set pga_aggregate_target=10240M scope=spfile;
在重啟數(shù)據(jù)庫時出現(xiàn)如下報錯:
SQL> shutdownimmediate
數(shù)據(jù)庫已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關(guān)閉。
SQL>startup
ORA-00844: Parameter not taking MEMORY_TARGET intoaccount
ORA-00851: SGA_MAX_SIZE 42949672960 cannot be set to more than MEMORY_TARGET 6979321856.
該問題是由于memory_target小于sga_max_size導(dǎo)致的,通常memory_target值需為sga+pga內(nèi)存的和,因此需將memory_target值調(diào)大。
先備用的pfile啟動Oracle,重新創(chuàng)建spfile,并重啟數(shù)據(jù)庫。
C:\Users\Administrator>sqlplus / assysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期日 11月 11 17:22:34 2018Copyright (c)1982, 2013, Oracle. Allrights reserved.
已連接到空閑例程。
SQL> startup pfile=‘E:\app\admin\orcl\pfile\init.ora.7312017152243‘ORACLE 例程已經(jīng)啟動。
Total System Global Area6847938560bytes
Fixed Size2294256bytes
Variable Size3657436688bytesDatabase Buffers 3170893824bytes
Redo Buffers17313792bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL> create spfile from pfile=‘E:\app\admin\orcl\pfile\init.ora.7312017152243‘;
文件已創(chuàng)建。
SQL> shutdownimmediate
數(shù)據(jù)庫已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關(guān)閉。
SQL>startup
ORACLE 例程已經(jīng)啟動。
之后重新修改內(nèi)存參數(shù)值,并重啟數(shù)據(jù)庫即可
SQL>alter system set memory_target = 52430m scope =spfile;
SQL>alter system set sga_max_size=40960M scope=spfile;
SQL>alter system set sga_target=40960M scope=spfile;
SQL>alter system set pga_aggregate_target=10240M scope=spfile;
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 4.2758E+10 bytes
Fixed Size 2290648 bytes
Variable Size 3221228584 bytes
Database Buffers 3.9460E+10 bytes
Redo Buffers 74391552 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL>
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 40G
sga_target big integer 40G
SQL> show parameter pga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target big integer 10G
OK
Oracle調(diào)整內(nèi)存參后報ORA-00844和ORA-00851
標(biāo)簽:value???11.2???dba???iat???use???code???reserve???imm???get
本條技術(shù)文章來源于互聯(lián)網(wǎng),如果無意侵犯您的權(quán)益請點擊此處反饋版權(quán)投訴
本文系統(tǒng)來源:https://www.cnblogs.com/wang-xiaohui/p/9943354.html
總結(jié)
以上是生活随笔為你收集整理的oracle 00851,Oracle调整内存参后报ORA-00844和ORA-00851的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 7.1 openssl安装,介绍
- 下一篇: linux打包压缩命令有哪些,Linux