Tracing GSD, SRVCTL, GSDCTL, VIPCA and SRVCONFIG (Doc ID 178683.1)
Tracing GSD, SRVCTL, GSDCTL, VIPCA and SRVCONFIG (Doc ID 178683.1)
PURPOSE
-------
The Purpose of this document is to assist in debugging SRVCTL, GSD, GSDCTL, VIPCA,
and SRVCONFIG problems.
SCOPE & APPLICATION
-------------------
This document is for support analysts to troubleshoot SRVCTL, GSD, GSDCTL, VIPCA,
and SRVCONFIG issues.
TRACING GSD, SRVCTL, GSDCTL, VIPCA, and SRVCONFIG
------------------------------------------
To provide verbose output for SRVCTL, GSD, GSDCTL, VIPCA, or SRVCONFIG, tracing can
be enabled to provide additional screen output.
--------------------------------------------------------------------------
10g:
Just set the environment variable SRVM_TRACE to true to trace all of the
SRVM files like gsd, srvctl, vipca, and ocrconfig.
--------------------------------------------------------------------------
9i:
To Trace GSD:
-------------
1. vi the gsd.sh file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\gsd.bat file and choose Edit.
2. At the end of the file, look for the following line:
exec $JRE -classpath $CLASSPATH oracle.ops.mgmt.daemon.OPSMDaemon $MY_OHOME
3. Add the following just before the -classpath in the 'exec $JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the gsd.sh file, the string should now look like this:
exec $JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running gsd.sh:
[opcbsol1]/u01/home/usupport> gsd.sh
[main][9:31:8:860] Daemon: argument is /u01/32bit/app/oracle/product/9.0.1
[main][9:31:8:893] tracing is true; at level 2
[main][9:31:8:893] trace file is /u01/32bit/app/oracle/product/9.0.1/srvm/log/gsdaemon.log
cont...
To Trace SRVCTL:
---------------
1. vi the srvctl file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\srvctl.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.opsctl.OPSCTLDriver "$@"
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the srvctl file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running srvctl:
[opcbsol1]/u01/home/usupport> srvctl status -p V90321
[main][9:33:2:968] srvctl: tracing is true at level 2
[main][9:33:3:38] Going into GetActiveNodes constructor...
[main][9:33:3:59] Detected Cluster
[main][9:33:3:60] Cluster existence = true
[main][9:33:3:95] loaded library
[main][9:33:3:108] Inside GetActiveNodes.initializeCluster
[main][9:33:3:264] The status string is: 1
[main][9:33:3:265] The result string is: Everything ok So Far 1
cont...
To Trace GSDCTL:
---------------
1. vi the gsdctl file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\gsdctl.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.mgmt.daemon.GSDCTLDriver...
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the gsdctl file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running gsdctl:
[opcbsol1]/u02/32bit/app/oracle/product/9.2.0/bin> gsdctl stat
[main] [15:41:34:849] [GetActiveNodes.create:Compile] Going into GetActiveNodes
[main] [15:41:34:918] [sQueryCluster.:Compile] Detected Cluster
[main] [15:41:34:922] [sQueryCluster.isCluster:Compile] Cluster existence = true
cont...
To Trace SRVCONFIG:
-------------------
1. vi the srvconfig file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\srvconfig.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.mgmt.rawdevice.RawDeviceUtil $*
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the srvconfig file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running srvconfig:
[opcbsol1]/u02/32bit/app/oracle/product/9.2.0/bin> srvconfig -version
[main] [16:0:58:395] [RawDeviceUtil.getDeviceName:Compile]
[main] [16:0:58:454] [sQueryCluster.:Compile] Detected Cluster
[main] [16:0:58:457] [sQueryCluster.isCluster:Compile] Cluster existence = true
cont...
RELATED DOCUMENTS
-----------------
Note 178435.1 PRK% Errors - Cause and Action Required
Note 169454.1 What to do with PRKR-1007, PRKR-1001, PRKO-2008, or PRKR-1020 errors
PURPOSE
-------
The Purpose of this document is to assist in debugging SRVCTL, GSD, GSDCTL, VIPCA,
and SRVCONFIG problems.
SCOPE & APPLICATION
-------------------
This document is for support analysts to troubleshoot SRVCTL, GSD, GSDCTL, VIPCA,
and SRVCONFIG issues.
TRACING GSD, SRVCTL, GSDCTL, VIPCA, and SRVCONFIG
------------------------------------------
To provide verbose output for SRVCTL, GSD, GSDCTL, VIPCA, or SRVCONFIG, tracing can
be enabled to provide additional screen output.
--------------------------------------------------------------------------
10g:
Just set the environment variable SRVM_TRACE to true to trace all of the
SRVM files like gsd, srvctl, vipca, and ocrconfig.
--------------------------------------------------------------------------
9i:
To Trace GSD:
-------------
1. vi the gsd.sh file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\gsd.bat file and choose Edit.
2. At the end of the file, look for the following line:
exec $JRE -classpath $CLASSPATH oracle.ops.mgmt.daemon.OPSMDaemon $MY_OHOME
3. Add the following just before the -classpath in the 'exec $JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the gsd.sh file, the string should now look like this:
exec $JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running gsd.sh:
[opcbsol1]/u01/home/usupport> gsd.sh
[main][9:31:8:860] Daemon: argument is /u01/32bit/app/oracle/product/9.0.1
[main][9:31:8:893] tracing is true; at level 2
[main][9:31:8:893] trace file is /u01/32bit/app/oracle/product/9.0.1/srvm/log/gsdaemon.log
cont...
To Trace SRVCTL:
---------------
1. vi the srvctl file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\srvctl.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.opsctl.OPSCTLDriver "$@"
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the srvctl file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running srvctl:
[opcbsol1]/u01/home/usupport> srvctl status -p V90321
[main][9:33:2:968] srvctl: tracing is true at level 2
[main][9:33:3:38] Going into GetActiveNodes constructor...
[main][9:33:3:59] Detected Cluster
[main][9:33:3:60] Cluster existence = true
[main][9:33:3:95] loaded library
[main][9:33:3:108] Inside GetActiveNodes.initializeCluster
[main][9:33:3:264] The status string is: 1
[main][9:33:3:265] The result string is: Everything ok So Far 1
cont...
To Trace GSDCTL:
---------------
1. vi the gsdctl file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\gsdctl.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.mgmt.daemon.GSDCTLDriver...
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the gsdctl file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running gsdctl:
[opcbsol1]/u02/32bit/app/oracle/product/9.2.0/bin> gsdctl stat
[main] [15:41:34:849] [GetActiveNodes.create:Compile] Going into GetActiveNodes
[main] [15:41:34:918] [sQueryCluster.:Compile] Detected Cluster
[main] [15:41:34:922] [sQueryCluster.isCluster:Compile] Cluster existence = true
cont...
To Trace SRVCONFIG:
-------------------
1. vi the srvconfig file in the $ORACLE_HOME/bin directory.
For Windows: Right click on the OraHome\bin\srvconfig.bat file and choose Edit.
2. At the end of the file, look for the following line:
$JRE -classpath $CLASSPATH oracle.ops.mgmt.rawdevice.RawDeviceUtil $*
3. Add the following just before the -classpath in the '$JRE' line:
-DTRACING.ENABLED=true -DTRACING.LEVEL=2
4. At the end of the srvconfig file, the string should now look like this:
$JRE -DTRACING.ENABLED=true -DTRACING.LEVEL=2 -classpath.....
5. Test this by running srvconfig:
[opcbsol1]/u02/32bit/app/oracle/product/9.2.0/bin> srvconfig -version
[main] [16:0:58:395] [RawDeviceUtil.getDeviceName:Compile]
[main] [16:0:58:454] [sQueryCluster.:Compile] Detected Cluster
[main] [16:0:58:457] [sQueryCluster.isCluster:Compile] Cluster existence = true
cont...
RELATED DOCUMENTS
-----------------
Note 178435.1 PRK% Errors - Cause and Action Required
Note 169454.1 What to do with PRKR-1007, PRKR-1001, PRKO-2008, or PRKR-1020 errors
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1097059/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC: SRVCTL and VIPCA 命令報錯解決方法PCA
- 在RAC 中解決 vipca 和 srvctl 無法執行的錯誤PCA
- 10gR2 RAC Install issues on Oracle EL5 or RHEL5 or SLES10 VIPCA/SRVCTL_414163.1OraclePCA
- 修改vip (Doc ID 276434.1)
- VIPCA無法執行PCA
- vipca報錯 Error 0PCAError
- HANGFG User Guide (Doc ID 362094.1)GUIIDE
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- oracle rac gsd 是什麼意思 ?Oracle
- Android開發簡單教程.docAndroid
- SQLT Diagnostic Tool (Doc ID 215187.1)SQL
- Oracle Text Health Check (Doc ID 823649.1)Oracle
- The DBMS_SUPPORT Package (Doc ID 62294.1)Package
- DBMS_REPAIR example (Doc ID 68013.1)AI
- Overview of Parameter Reference Notes (Doc ID 68462.1)View
- Linux OS Service 'ntpd' (Doc ID 551704.1)Linux
- ray tracing in one weekend - 5
- VIPCA failes with CRS-0215 ONSPCAAI
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- Backup and Recovery Scenarios (Doc ID 94114.1)iOS
- * Master Note: Database Performance Overview (Doc ID 402983.1)ASTDatabaseORMView
- HP-UX: Asynchronous i/o (Doc ID 139272.1)UX
- Troubleshooting Database Hang Issues (Doc ID 1378583.1)Database
- No Response from the Server, Does it Hang or Spin? (Doc ID 68738.1)Server
- Common Diagnostic Scripts for AUM problems (Doc ID 746173.1)
- How to Duplicate a Database in NOARCHIVELOG mode (Doc ID 275480.1)DatabaseHive
- Remote Diagnostic Agent (RDA) - RAC Cluster Guide (Doc ID 359395.1)REMGUIIDE
- Troubleshoot Grid Infrastructure Startup Issues (Doc ID 1050908.1)ASTStruct
- Oracle:srvctl 簡介Oracle
- SRVCTL命令介紹
- SRVCTL 命令參考
- Oracle ASH和Session Tracing(ZT)OracleSession
- Tracing the LSNRCTL Control Utility
- SQL*Net & Oracle Net Services - Tracing and Logging at a Glance [ID 219968.1]SQLOracle996
- backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)RESTASTStruct
- OHASD not Starting After Reboot on SLES (Doc ID 1325718.1)boot
- Oracle10G RMAN Database Duplication (Doc ID 259694.1)OracleDatabase
- Adaptive Cursor Sharing: Worked Example (Doc ID 836256.1)APT