首页 > Linux操作系统 > Linux操作系统 > RAC Troubleshoot
RAC Troubleshoot
###############################################################
1.CRS log directory
$ORA_CRS_HOME/crs/log => CRS resource
$ORA_CRS_HOME/crs/init
$ORA_CRS_HOME/css/log
$ORA_CRS_HOME/css/init
$ORA_CRS_HOME/evm/log
$ORA_CRS_HOME/evm/init
$ORA_CRS_HOME/srvm/log
$ORA_CRS_HOME/log
2.DB log directory
$ORACLE_HOME/admin/udump
$ORACLE_HOME/admin/cdump
3.Crsctl Usage:
crsctl check crs - checks the viability of the CRS stack
crsctl check cssd - checks the viability of CSS
crsctl check crsd - checks the viability of CRS
crsctl check evmd - checks the viability of EVM
crsctl set css
crsctl get css
crsctl unset css
crsctl query css votedisk - lists the voting disks used by CSS
crsctl add css votedisk
crsctl delete css votedisk
crsctl enable crs - enables startup for all CRS daemons
crsctl disable crs - disables startup for all CRS daemons
crsctl start crs - starts all CRS daemons.
crsctl stop crs - stops all CRS daemons. Stops CRS resources in case of cluster.
crsctl start resources - starts CRS resources.
crsctl stop resources - stops CRS resources.
crsctl debug statedump evm - dumps state info for evm objects
crsctl debug statedump crs - dumps state info for crs objects
crsctl debug statedump css - dumps state info for css objects
crsctl debug log css [module:level]{,module:level} ...
- Turns on debugging for CSS
crsctl debug trace css - dumps CSS in-memory tracing cache
crsctl debug log crs [module:level]{,module:level} ...
- Turns on debugging for CRS
crsctl debug trace crs - dumps CRS in-memory tracing cache
crsctl debug log evm [module:level]{,module:level} ...
- Turns on debugging for EVM
crsctl debug trace evm - dumps EVM in-memory tracing cache
crsctl debug log res
crsctl query crs softwareversion [
crsctl query crs activeversion - lists the CRS software operating version
crsctl lsmodules css - lists the CSS modules that can be used for debugging
crsctl lsmodules crs - lists the CRS modules that can be used for debugging
crsctl lsmodules evm - lists the EVM modules that can be used for debugging
If necesary any of these commands can be run with additional tracing by adding a "trace" argument at the very front.
Example: crsctl trace check css
4.ocrconfig
Name:
ocrconfig - Configuration tool for Oracle Cluster Registry.
Synopsis:
ocrconfig [option]
option:
-export
-import
-upgrade [
- Upgrade cluster registry from previous version
-downgrade [-version
- Downgrade cluster registry to the specified version
-backuploc
-showbackup - Show backup information
-restore
-replace ocr|ocrmirror [
-overwrite - Overwrite OCR configuration on disk
-repair ocr|ocrmirror
-help - Print out this help information
Note:
A log file will be created in
$ORACLE_HOME/log/
you have file creation privileges in the above directory before running this tool.
5.ocrdump
ocrdump -help
Name:
ocrdump - Dump contents of Oracle Cluster Registry to a file.
Synopsis:
ocrdump [
Description:
Default filename is OCRDUMPFILE. Examples are:
prompt> ocrdump
writes cluster registry contents to OCRDUMPFILE in the current directory
prompt> ocrdump MYFILE
writes cluster registry contents to MYFILE in the current directory
prompt> ocrdump -stdout -keyname SYSTEM
writes the subtree of SYSTEM in the cluster registry to stdout
prompt> ocrdump -stdout -xml
writes cluster registry contents to stdout in xml format
Notes:
The header information will be retrieved based on best effort basis.
A log file will be created in
ORACLE_HOME/log/
Make sure you have file creation privileges in the above directory before
6.srvctl
Usage: srvctl
7.crs_stat
Usage: crs_stat [resource_name [...]] [-v] [-l] [-q] [-c cluster_member]
crs_stat [resource_name [...]] -t [-v] [-q] [-c cluster_member]
crs_stat -p [resource_name [...]] [-q]
crs_stat [-a] application -g
crs_stat [-a] application -r [-c cluster_member]
crs_stat -f [resource_name [...]] [-q] [-c cluster_member]
crs_stat -ls [resource_name [...]] [-q]
8.Cluvfy
Usage:
cluvfy [ -help ]
cluvfy stage { -list | -help }
cluvfy stage {-pre|-post}
cluvfy comp { -list | -help }
cluvfy comp
9.cluvfy stage ¨Clist
Usage: cluvfy stage {-pre|-post}
Valid stage options and stage names are:
-post hwos : post-check for hardware and operating system
-pre cfs : pre-check for CFS setup
-post cfs : post-check for CFS setup
-pre crsinst : pre-check for CRS installation
-post crsinst : post-check for CRS installation
-pre dbinst : pre-check for database installation
-pre dbcfg : pre-check for database configuration
10.cluvfy stage -help
Usage: cluvfy stage {-pre|-post}
SYNTAX (for Stages):
cluvfy stage -post hwos -n
cluvfy stage -pre cfs -n
cluvfy stage -post cfs -n
cluvfy stage -pre crsinst -n
[ -c
[ -osdba
[ -orainv
cluvfy stage -post crsinst -n
cluvfy stage -pre dbinst -n
[ -osdba
cluvfy stage -pre dbcfg -n
11.Cluvfy comp -list
Usage: cluvfy comp
Valid components are:
nodereach : checks reachability between nodes
nodecon : checks node connectivity
cfs : checks CFS integrity
ssa : checks shared storage accessibility
space : checks space availability
sys : checks minimum system requirements
clu : checks cluster integrity
clumgr : checks cluster manager integrity
ocr : checks OCR integrity
crs : checks CRS integrity
nodeapp : checks node applications existence
admprv : checks administrative privileges
peer : compares properties with peers
12.Cluvfy comp -help
Usage :
cluvfy comp
SYNTAX (for Components):
cluvfy comp nodereach -n
cluvfy comp nodecon -n
cluvfy comp cfs [ -n
cluvfy comp ssa [ -n
cluvfy comp space [ -n
-z
cluvfy comp sys [ -n
[ -osdba
verbose]
cluvfy comp clu [ -n
cluvfy comp clumgr [ -n
cluvfy comp ocr [ -n
cluvfy comp crs [ -n
cluvfy comp nodeapp [ -n
cluvfy comp admprv [ -n
-o user_equiv [-sshonly]
-o crs_inst [-orainv
-o db_inst [-osdba
-o db_config -d
cluvfy comp peer [ -refnode
[ -orainv
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/658698/viewspace-664452/ ,如需转载,请注明出处,否则将追究法律责任。