CRS: Resource in UNKNOWN state and srvctl Cannot Start/Stop Resource_845709.1
CRS: Resource in UNKNOWN state and srvctl Cannot Start/Stop the Resource (Doc ID 845709.1)
In this Document
Goal |
Solution |
Community Discussions |
References |
Applies to:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.7 [Release 10.2 to 11.1]
Information in this document applies to any platform.
Goal
A resource status is showing as UNKNOWN in crs_stat -t output :
Name Type Target State Host
------------------------------------------------------------
ora....d1.inst application ONLINE UNKNOWN <<< ora....d2.inst application ONLINE ONLINE stella2
ora.prod.db application ONLINE ONLINE stella2
ora....od1.srv application OFFLINE OFFLINE
...
When the resource state is UNKNOWN, srvctl cannot start or stop the resource. It fails with the following errors:
PRKP-1001 : Error starting instance prod1 on node oradb1
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.prod.prod1.inst' has placement error.
After the failed srvctl command, the crsd.log will show an error:
Even running srvctl status on the resource can error:
PRKO-2015 : Error in checking condition of instance on node: oradb1
PRKO-2015 : Error in checking condition of instance on node: oradb2
These errors are all due to the resource state of UNKNOWN.
Solution
The UNKNOWN state can often be resolved by bringing the resource offline using crs_stop.
Improper use of crs_stop and crs_start can corrupt your OCR.
Any CRS resource can be in an UNKNOWN state, including vip, gsd, database, or instances. The following uses an instance resource as an example.
1. Find the proper name for your instance resource. To find it, do "crs_stat -u | grep inst", this will give the names of all instance resources in the OCR.
NAME=ora.V102.V1021.inst
NAME=ora.V102.V1022.inst
NAME=ora.prod.prod1.inst
NAME=ora.prod.prod2.inst
Pick the instance associated with the node and database in question.
For example, for a database named prod and instance named prod1, the resource name will be "ora.prod.prod1.inst".
2. Before you go any further, make sure that you have a recent backup of your OCR.
You can check on your OCR automatic backups with the command "ocrconfig -showbackup":
oradb1 2009/06/19 07:35:28 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/19 03:35:26 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/18 23:35:25 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/18 03:35:20 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/02 07:01:26 /u01/app/oracle/product/10gR2/crs/cdata/temp
If no backup exists, then create one using ocrconfig -export, following the instructions in the documentation:
Oracle??? Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide - 10g Release 2 (10.2)
3. Restore the instance resource to OFFLINE with this command:
crs_stop [instance resource name]
eg:
4. Check that instance status is now OFFLINE instead of UNKNOWN
NAME=ora.prod.prod1.inst
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
5. If the instance status is OFFLINE, then you can try again to start it with srvctl.
6. If the startup fails again, then open a SR and provide Oracle Support with the following information:
a) Gather a trace by using the following script:
env
crs_stat -u ora.prod.prod1.inst
crs_stop ora.prod.prod1.inst
crs_stat -u ora.prod.prod1.inst
export SRVM_TRACE=TRUE
srvctl start instance -d prod -i prod1
export SRVM_TRACE=
crs_stat -u ora.prod.prod1.inst
exit
(Replace "ora.prod.prod1.inst" with the name of your actual instance resource; replace prod with the name of your database and prod1 with the name of your instance).
The trace log will be found in /tmp/trace1.out.
b) latest crsd.log from this node
c) the resource log for this instance from $CRS_HOME/log/<>/racg
d) ls -l of $ORACLE_HOME/log/<>/racg
Community Discussions
Still have questions? Use the communities window below to search for similar discussions or start a new discussion on this subject.
Note: Window is the LIVE community not a screenshot.
Click here to open in main browser window
ReferencesNOTE:1469600.1 - CRS-2503: Resource 'ora.' is in UNKNOWN state and must be stopped first |
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1372906/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- crsctl start/stop crs and crsctl start/stop cluster 區別
- rac中 crsctl start/stop crs and crsctl start/stop cluster 區別
- 【kingsql分享】解決RAC大量UNKNOWN和CRS-0216: Could not stop resourceSQL
- [ZT]crs_stop -all 命令後遇到 UNKNOWN
- CRS-1205:Auto-start failed for the CRS resourceAI
- CRS-215 Srvctl unable to start ASM, Listener, RDBMS ResourcesASM
- oracle10g rac(rhel)_srvctl star執行出錯_crs_stop出錯Oracle
- stop/start The CRS, OHAS, ASM, RDBMS & ACFS Services on RAC 11.2_1355977.1ASM
- crs_stop -all 命令後遇到 UNKNOWN解決及RAC資源啟動順序
- RAC中的srvctl和crs命令
- oracle10g rac(rhel4)__CRS-0215_srvctl start出錯一則Oracle
- crs之上的resource管理總結(CRS_PROFILE)
- oracle多例項start-stop指令碼Oracle指令碼
- CRS-0184 Cannot communicate with the CRS daemon
- CRS-0184: Cannot communicate with the CRS daemon
- crs之上的resource管理總結
- Python標準庫:內建函式slice(stop) slice(start, stop[, step])Python函式
- Oracle 10g isqlplus start/stopOracle 10gSQL
- crs_stat -t CRS-0184: Cannot communicate with the CRS daemon
- CRS-0184: Cannot communicate with the CRS daemon.
- Start of resource “ora.asm -init” failed -ASMAI
- srvctl stop database超過60秒會abort資料庫Database資料庫
- 如何去掉crs服務和srvctl命令幫助
- 解決 CRS-2640: Required resourceUI
- hyperf 服務管理指令碼 start、restart、stop、status指令碼REST
- 10g dbconsole start/stop/status
- 神奇的CRS-0184: Cannot communicate with the CRS daemon
- Change AUTO_START in ASM Resource Oracle ClusterwareASMOracle
- shut down and start crs for Oracle10GOracle
- CRS-0184: Cannot communicate with the CRS daemo的診斷
- 解決:CRS-0184: Cannot communicate with the CRS daemon.
- rac02 : CRS-1019: Resource ora.rac01.ons(application) cannot run on rac02APP
- cannot set user id: Resource temporarily unavailableAI
- CRS-4534: Cannot communicate with Event Manager
- Troubleshooting when srvctl can't start RAC instance, but sqlplus can start it [ID 844272.1]SQL
- [fabric]Cannot start service orderer: Mounts denied: In MacMac
- CRS-2765: Resource 'ora.crsd' has failed on serverAIServer
- Weblogic and Component(OVD/OID/Web) start, stop和restartWebREST