环境:RHEL5.6_X86_64 Oracle 10g10205 RAC
[oracle@jason1 ~]$ crs_start -all
Attempting to start `ora.jason1.ASM1.asm` on member `jason1`
Attempting to start `ora.jason1.vip` on member `jason1`
Attempting to start `ora.jason2.ASM2.asm` on member `jason2`
Attempting to start `ora.jason2.vip` on member `jason2`
Start of `ora.jason1.vip` on member `jason1` succeeded.
Start of `ora.jason2.vip` on member `jason2` succeeded.
Attempting to start `ora.jason1.LISTENER_JASON1.lsnr` on member `jason1`
Attempting to start `ora.jason2.LISTENER_JASON2.lsnr` on member `jason2`
Start of `ora.jason1.LISTENER_JASON1.lsnr` on member `jason1` succeeded.
Start of `ora.jason2.LISTENER_JASON2.lsnr` on member `jason2` succeeded.
Start of `ora.jason1.ASM1.asm` on member `jason1` succeeded.
Attempting to start `ora.JASON.JASON1.inst` on member `jason1`
Start of `ora.jason2.ASM2.asm` on member `jason2` succeeded.
Attempting to start `ora.JASON.JASON2.inst` on member `jason2`
Start of `ora.JASON.JASON2.inst` on member `jason2` succeeded.
Start of `ora.JASON.JASON1.inst` on member `jason1` succeeded.
CRS-1002: Resource 'ora.jason1.ons' is already running on member 'jason1'
Attempting to start `ora.jason1.gsd` on member `jason1`
CRS-1002: Resource 'ora.jason2.ons' is already running on member 'jason2'
Start of `ora.jason1.gsd` on member `jason1` succeeded.
Attempting to start `ora.jason2.gsd` on member `jason2`
Attempting to start `ora.JASON.db` on member `jason2`
Start of `ora.JASON.db` on member `jason2` succeeded.
Start of `ora.jason2.gsd` on member `jason2` succeeded.
CRS-0223: Resource 'ora.jason1.ons' has placement error.
CRS-0223: Resource 'ora.jason2.ons' has placement error.
[oracle@jason1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....N1.inst application ONLINE ONLINE jason1
ora....N2.inst application ONLINE ONLINE jason2
ora.JASON.db application ONLINE ONLINE jason2
ora....SM1.asm application ONLINE ONLINE jason1
ora....N1.lsnr application ONLINE ONLINE jason1
ora.jason1.gsd application ONLINE ONLINE jason1
ora.jason1.ons application ONLINE ONLINE jason1
ora.jason1.vip application ONLINE ONLINE jason1
ora....SM2.asm application ONLINE ONLINE jason2
ora....N2.lsnr application ONLINE ONLINE jason2
ora.jason2.gsd application ONLINE ONLINE jason2
ora.jason2.ons application ONLINE ONLINE jason2
ora.jason2.vip application ONLINE ONLINE jason2
[oracle@jason1 ~]$
使用crs_start -all命令启动集群时报如上错误,但是查看状态一切正常。查看mos给出以下解决方法:
crs_start -all Reports: "CRS-0223 Resource 'ora.<node name>.ons' has placement error" (文档 ID 1290224.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.2.0.2 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 11-Mar-2013***
SYMPTOMS
RAC is well installed, but when attempting to start CRS resources by crs_start all the following errors occur:
CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'
CRS-1002: Resource 'ora.rac2.ons' is already running on member 'rac2'
Attempting to start `ora.rac1.gsd` on member `rac1`
Attempting to start `ora.rac2.gsd` on member `rac2`
Start of `ora.rac1.gsd` on member `rac1` succeeded.
Start of `ora.rac2.gsd` on member `rac2` succeeded.
CRS-0223 Resource 'ora.rac1.ons' has placement error
Here 'rac1' and 'rac2' are RAC node names.
crs_stat shows ons is 'ONLINE'.
CAUSE
crs_start -all should not be used in managing CRS/RAC database resources.
Do not use Oracle Clusterware commands prefixed with crs_ (except for crs_stat) on resources that have names beginning with the prefix ora unless Oracle Support Services asks you to. Instead, use the Server Control (SRVCTL) utility on Oracle resources.
This is addressed in :
Oracle Clusterware Administration and Deployment Guide 11g Release 1 (11.1)
Note that 'crs_start' is described in Chapter 5 "Making Applications Highly Available Using Oracle Clusterware".
This chapter explains how you can extend the high availability of the Oracle Clusterware framework to your applications. This means crs_start -all is suitable to manage customized application HA, but no RAC/CRS resources beginning with 'ora.' like 'ora.<node name>.ons' .
SOLUTION
Instead use the commands:
srvctl stop nodeapps -n <node name>
srvctl start nodeapps -n <node name>