ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together
2013-09-21 10:29
579 查看
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3620 214 0 26 3157
-/+ buffers/cache: 435 3398
Swap: 4095 1341 2754
SQL> show parameter lock_sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 60
dg-primary:~ # su - oracle
dg-primary:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 10:25:08 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter system set lock_sga=true scope=spfile;
System altered.
SQL> alter system checkpoint;
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>
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3620 214 0 26 3157
-/+ buffers/cache: 435 3398
Swap: 4095 1341 2754
dg-primary:/oracle/product/11gR2/db/dbs> vi initebai.ora
dg-primary:/oracle/product/11gR2/db/dbs> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:45:40 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create spfile from pfile;
File created.
SQL> exit
Disconnected
dg-primary:/oracle/product/11gR2/db/dbs> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:46:05 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5845798912 bytes
Fixed Size 2238976 bytes
Variable Size 2868905472 bytes
Database Buffers 2969567232 bytes
Redo Buffers 5087232 bytes
Database mounted.
Database opened.
SQL> select count(*) from v$session;
COUNT(*)
----------
30
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
dg-primary:/oracle/product/11gR2/db/dbs> exit
logout
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3705 128 0 1 3398
-/+ buffers/cache: 306 3528
Swap: 4095 771 3324
dg-primary:~ # cat /proc/meminfo |grep swap
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 60
dg-primary:~ # vi /etc/sysctl.conf
dg-primary:~ # /sbin/sysctl -p
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.inotify.max_user_watches = 65536
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
kernel.shmmax = 4128348160
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
vm.swappiness = 0
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 0
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3697 136 0 2 3402
-/+ buffers/cache: 293 3540
Swap: 4095 771 3324
dg-primary:~ #
dg-primary:~ # su - oracle
dg-primary:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:51:11 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
total used free shared buffers cached
Mem: 3834 3620 214 0 26 3157
-/+ buffers/cache: 435 3398
Swap: 4095 1341 2754
SQL> show parameter lock_sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 60
dg-primary:~ # su - oracle
dg-primary:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 10:25:08 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter system set lock_sga=true scope=spfile;
System altered.
SQL> alter system checkpoint;
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>
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3620 214 0 26 3157
-/+ buffers/cache: 435 3398
Swap: 4095 1341 2754
dg-primary:/oracle/product/11gR2/db/dbs> vi initebai.ora
dg-primary:/oracle/product/11gR2/db/dbs> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:45:40 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create spfile from pfile;
File created.
SQL> exit
Disconnected
dg-primary:/oracle/product/11gR2/db/dbs> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:46:05 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5845798912 bytes
Fixed Size 2238976 bytes
Variable Size 2868905472 bytes
Database Buffers 2969567232 bytes
Redo Buffers 5087232 bytes
Database mounted.
Database opened.
SQL> select count(*) from v$session;
COUNT(*)
----------
30
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
dg-primary:/oracle/product/11gR2/db/dbs> exit
logout
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3705 128 0 1 3398
-/+ buffers/cache: 306 3528
Swap: 4095 771 3324
dg-primary:~ # cat /proc/meminfo |grep swap
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 60
dg-primary:~ # vi /etc/sysctl.conf
dg-primary:~ # /sbin/sysctl -p
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.inotify.max_user_watches = 65536
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
kernel.shmmax = 4128348160
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
vm.swappiness = 0
dg-primary:~ # sysctl -q vm.swappiness
vm.swappiness = 0
dg-primary:~ # free -m
total used free shared buffers cached
Mem: 3834 3697 136 0 2 3402
-/+ buffers/cache: 293 3540
Swap: 4095 771 3324
dg-primary:~ #
dg-primary:~ # su - oracle
dg-primary:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat Sep 21 20:51:11 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
相关文章推荐
- ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together
- ORA-00851:SGA_MAX_SIZE 1577058304 cannot be set to more than MEMORY_TARGET 855638016 (816M)
- ORA-00849: SGA_TARGET 8589934592 cannot be set to more than MEMORY_MAX_TARGET 0.
- ORA-00824: cannot set SGA_TARGET or MEMORY_TARGET due to existing internal settings, see alert log f
- 解决ORA-00824: cannot set sga_target due to existing
- memory_max_target/memory_target/sga_max_size/sga_target
- ORA-00824: cannot set sga_target due to existing internal settings, see alert log for more information
- ORA-00824: cannot set sga_target due to existing internal settings
- can not startup. ORA-00824: cannot set sga_target due to existing internal settings
- 手工建库启动实例时一个小错误:ORA-00824: cannot set sga_target due to existing internal settings
- Oracle的memory_max_target和memory_target修改和ORA-00845: MEMORY_TARGET not supported on this system错误解决
- Oracle的memory_max_target和memory_target修改和ORA-00845: MEMORY_TARGET not supported on this system错误解决
- SGA_MAX_SIZE超过MEMORY_TARGET 导致无法启动
- ORA-00821: Specified value of sga_target 3072M is too small, needs to be at least 12896M
- ORA-00823: Specified value of sga_target greater than sga_max_size
- ORACLE数据库修改sga_max_size和sga_target后重启报ORA-00821错
- SGA_MAX_SIZE>MEMORY_TARGET???
- ORA-00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET
- Ora-27102: Out Of Memory: Linux Error: 12: Cannot Allocate Memory with LOCK_SGA=TRUE[ID 401077.1]
- MEMORY_TARGET/MEMORY_MAX_TARGET