ORA-00847: MEMORY_TARGET/MEMORY_MAX_TARGET and LOCK_SGA cannot be set together




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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值