ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together
1、问题描述
将Oracle LOCK_SGA参数设置为TRUE之后,报错;
SQL> show parameter LOCK_SGA; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ lock_sga boolean FALSE SQL> alter system set LOCK_SGA=TRUE SCOPE=SPFILE; System altered. SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together SQL> select open_mode from v$database;= 2 ; select open_mode from v$database;= * ERROR at line 1: ORA-01034: ORACLE not available Process ID: 0 Session ID: 191 Serial number: 3 SQL> select open_mode from v$database; select open_mode from v$database * ERROR at line 1: ORA-01034: ORACLE not available Process ID: 0 Session ID: 191 Serial number: 3 SQL> startup mount; ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together SQL>
2、解决办法
(a)、cp $ORACLE_BASE/admin/SID/pfile/init.ora.*********** $ORACLE_HOME/dbs/
(b)、mv init.ora.******** initSID.ora
(c)、create spfile from pfile;
(d)、alter database open;
(e)、ok