oracle 12C RAC在安装完后,启动实例的时候一直报错如下:
[grid@node01 ~]$ srvctl start database -d cloud -verbose
PRCR-1079 : Failed to start resource ora.cloud.db
CRS-5017: The resource action "ora.cloud.db start" encountered the following error:
ORA-00845: MEMORY_TARGET not supported on this system
. For details refer to "(:CLSN00107:)" in "/oracle/app/12.0.1/grid/log/node01/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-5017: The resource action "ora.cloud.db start" encountered the following error:
ORA-00845: MEMORY_TARGET not supported on this system ----------关键问题,说明target值超过了某一个范围无法调整。
. For details refer to "(:CLSN00107:)" in "/oracle/app/12.0.1/grid/log/node02/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.cloud.db' on 'node01' failed ----------两个实例均启动失败
CRS-2674: Start of 'ora.cloud.db' on 'node02' failed
CRS-2632: There are no more servers to try to place resource 'ora.cloud.db' on that would satisfy its placement policy
查看该报错的官方解释:
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
Starting with Oracle Database 12c, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer. If MEMORY_MAX_TARGET or MEMORY_TARGET is set to a non zero value, and an incorrect size is assigned to the shared memory, it will result in an ORA-00845 error at startup.
解决方法,因服务器资源不多,同时memory_max_size=2G,暂且就将/dev/shm调整为4G:
[root@node01 ~]# vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults ,size=4G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/xvdc1 /oracle ext3 defaults 0 0
[root@node01 ~]# mount -o remount,size=4G /dev/shm
保存后重新启动RAC:
[grid@node01 ~]$ srvctl start database -d cloud -verbose
检查资源情况,顺便观察下12C rac 资源与11g的差异:
[grid@node01 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.ARCH.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE node01
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE node01
ora.MGMTLSNR ora....nr.type 0/0 0/0 ONLINE ONLINE node01
ora.OCR.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE node01
ora.cloud.db ora....se.type 0/2 0/1 ONLINE ONLINE node01
ora.cvu ora.cvu.type 0/5 0/0 ONLINE ONLINE node01
ora.mgmtdb ora....db.type 0/2 0/1 ONLINE ONLINE node01 ----资源库
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE node01
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE node01
ora....01.lsnr application 0/5 0/0 ONLINE ONLINE node01
ora.node01.ons application 0/3 0/0 ONLINE ONLINE node01
ora.node01.vip ora....t1.type 0/0 0/0 ONLINE ONLINE node01
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE node02
ora....02.lsnr application 0/5 0/0 ONLINE ONLINE node02
ora.node02.ons application 0/3 0/0 ONLINE ONLINE node02
ora.node02.vip ora....t1.type 0/0 0/0 ONLINE ONLINE node02
ora.oc4j ora.oc4j.type 0/1 0/2 ONLINE ONLINE node01 ----正常online
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE node01
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE node01
[grid@node01 ~]$ srvctl start database -d cloud -verbose
PRCR-1079 : Failed to start resource ora.cloud.db
CRS-5017: The resource action "ora.cloud.db start" encountered the following error:
ORA-00845: MEMORY_TARGET not supported on this system
. For details refer to "(:CLSN00107:)" in "/oracle/app/12.0.1/grid/log/node01/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-5017: The resource action "ora.cloud.db start" encountered the following error:
ORA-00845: MEMORY_TARGET not supported on this system ----------关键问题,说明target值超过了某一个范围无法调整。
. For details refer to "(:CLSN00107:)" in "/oracle/app/12.0.1/grid/log/node02/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.cloud.db' on 'node01' failed ----------两个实例均启动失败
CRS-2674: Start of 'ora.cloud.db' on 'node02' failed
CRS-2632: There are no more servers to try to place resource 'ora.cloud.db' on that would satisfy its placement policy
查看该报错的官方解释:
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
Starting with Oracle Database 12c, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer. If MEMORY_MAX_TARGET or MEMORY_TARGET is set to a non zero value, and an incorrect size is assigned to the shared memory, it will result in an ORA-00845 error at startup.
解决方法,因服务器资源不多,同时memory_max_size=2G,暂且就将/dev/shm调整为4G:
[root@node01 ~]# vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults ,size=4G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/xvdc1 /oracle ext3 defaults 0 0
[root@node01 ~]# mount -o remount,size=4G /dev/shm
保存后重新启动RAC:
[grid@node01 ~]$ srvctl start database -d cloud -verbose
检查资源情况,顺便观察下12C rac 资源与11g的差异:
[grid@node01 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.ARCH.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE node01
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE node01
ora.MGMTLSNR ora....nr.type 0/0 0/0 ONLINE ONLINE node01
ora.OCR.dg ora....up.type 0/5 0/ ONLINE ONLINE node01
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE node01
ora.cloud.db ora....se.type 0/2 0/1 ONLINE ONLINE node01
ora.cvu ora.cvu.type 0/5 0/0 ONLINE ONLINE node01
ora.mgmtdb ora....db.type 0/2 0/1 ONLINE ONLINE node01 ----资源库
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE node01
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE node01
ora....01.lsnr application 0/5 0/0 ONLINE ONLINE node01
ora.node01.ons application 0/3 0/0 ONLINE ONLINE node01
ora.node01.vip ora....t1.type 0/0 0/0 ONLINE ONLINE node01
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE node02
ora....02.lsnr application 0/5 0/0 ONLINE ONLINE node02
ora.node02.ons application 0/3 0/0 ONLINE ONLINE node02
ora.node02.vip ora....t1.type 0/0 0/0 ONLINE ONLINE node02
ora.oc4j ora.oc4j.type 0/1 0/2 ONLINE ONLINE node01 ----正常online
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE node01
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE node01
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28612416/viewspace-1351661/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28612416/viewspace-1351661/