Last login: Fri Jun 27 22:50:36 2008 from 192.168.18.2[root@rac1 ~]# su oracle[oracle@rac1 root]$ crs_stat -tName Type Target State Host ------------------------------------------------------------ora.....CRM.cs application OFFLINE OFFLINE ora....db1.srv application OFFLINE OFFLINE ora.devdb.db application OFFLINE OFFLINE ora....b1.inst application OFFLINE OFFLINE ora....b2.inst application OFFLINE OFFLINE ora....SM1.asm application OFFLINE OFFLINE ora....C1.lsnr application OFFLINE OFFLINE ora.rac1.gsd application OFFLINE OFFLINE ora.rac1.ons application OFFLINE OFFLINE ora.rac1.vip application OFFLINE OFFLINE ora....SM2.asm application OFFLINE OFFLINE ora....C2.lsnr application OFFLINE OFFLINE ora.rac2.gsd application OFFLINE OFFLINE ora.rac2.ons application OFFLINE OFFLINE ora.rac2.vip application OFFLINE OFFLINE [oracle@rac1 root]$ crs_start -allAttempting to start `ora.rac1.vip` on member `rac1`Attempting to start `ora.rac2.vip` on member `rac2`Start of `ora.rac2.vip` on member `rac2` succeeded.Start of `ora.rac1.vip` on member `rac1` succeeded.Attempting to start `ora.rac2.ASM2.asm` on member `rac2`Attempting to start `ora.rac1.ASM1.asm` on member `rac1`Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded.Attempting to start `ora.devdb.devdb1.inst` on member `rac1`Start of `ora.rac2.ASM2.asm` on member `rac2` succeeded.Attempting to start `ora.devdb.devdb2.inst` on member `rac2`Start of `ora.devdb.devdb1.inst` on member `rac1` succeeded.Attempting to start `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`Start of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.Start of `ora.devdb.devdb2.inst` on member `rac2` succeeded.Attempting to start `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`Start of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'
Attempting to start `ora.devdb.CRM.devdb1.srv` on member `rac1`CRS-1002: Resource 'ora.rac2.ons' is already running on member 'rac2'
Attempting to start `ora.devdb.CRM.cs` on member `rac1`Attempting to start `ora.rac2.gsd` on member `rac2`Attempting to start `ora.rac1.gsd` on member `rac1`CRS-1002: Resource 'ora.devdb.db' is already running on member 'rac2'
Start of `ora.rac2.gsd` on member `rac2` succeeded.Start of `ora.devdb.CRM.cs` on member `rac1` succeeded.Start of `ora.devdb.CRM.devdb1.srv` on member `rac1` succeeded.Start of `ora.rac1.gsd` on member `rac1` succeeded.CRS-0223: Resource 'ora.devdb.db' has placement error.
CRS-0223: Resource 'ora.rac1.ons' has placement error.
CRS-0223: Resource 'ora.rac2.ons' has placement error.
[oracle@rac1 root]$ crs_stat -tName Type Target State Host ------------------------------------------------------------ora.....CRM.cs application ONLINE ONLINE rac1 ora....db1.srv application ONLINE ONLINE rac1 ora.devdb.db application ONLINE ONLINE rac2 ora....b1.inst application ONLINE ONLINE rac1 ora....b2.inst application ONLINE ONLINE rac2 ora....SM1.asm application ONLINE ONLINE rac1 ora....C1.lsnr application ONLINE ONLINE rac1 ora.rac1.gsd application ONLINE ONLINE rac1 ora.rac1.ons application ONLINE ONLINE rac1 ora.rac1.vip application ONLINE ONLINE rac1 ora....SM2.asm application ONLINE ONLINE rac2 ora....C2.lsnr application ONLINE ONLINE rac2 ora.rac2.gsd application ONLINE ONLINE rac2 ora.rac2.ons application ONLINE ONLINE rac2 ora.rac2.vip application ONLINE ONLINE rac2
从crs_start的结果来可以看出,启动的顺序是:vip->asm->inst->lsnr->CRM.devdb.srv->ora.devdb.CRM.cs->ora.rac.gsd,后面的应用组件对其前面的有依赖性,可以通过crs_stat -p得到[oracle@rac1 root]$ crs_stat -p ora.rac1.ASM1.asmNAME=ora.rac1.ASM1.asmTYPE=applicationACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrapACTIVE_PLACEMENT=0AUTO_START=1CHECK_INTERVAL=600DESCRIPTION=CRS application for ASM instanceFAILOVER_DELAY=0FAILURE_INTERVAL=0FAILURE_THRESHOLD=0HOSTING_MEMBERS=rac1OPTIONAL_RESOURCES=PLACEMENT=restrictedREQUIRED_RESOURCES=ora.rac1.vipRESTART_ATTEMPTS=5SCRIPT_TIMEOUT=600....
[oracle@rac1 root]$ crs_stat -p ora.devdb.devdb1.instNAME=ora.devdb.devdb1.instTYPE=applicationACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrapACTIVE_PLACEMENT=0AUTO_START=1CHECK_INTERVAL=600DESCRIPTION=CRS application for InstanceFAILOVER_DELAY=0FAILURE_INTERVAL=0FAILURE_THRESHOLD=0HOSTING_MEMBERS=rac1OPTIONAL_RESOURCES=PLACEMENT=restrictedREQUIRED_RESOURCES=ora.rac1.vip ora.rac1.ASM1.asm