重庆思庄Oracle、Redhat认证学习论坛

标题: diagnosing Oracle Clusterware issue所需要收集日志的操作步骤 [打印本页]

作者: 郑全    时间: 2013-12-11 13:53
标题: diagnosing Oracle Clusterware issue所需要收集日志的操作步骤

Linux/UNIX 11gR2/12cR1

1. Execute the following as root user:

# script /tmp/diag.log
# id
# env
# cd <temp-directory-with-plenty-free-space>
# $GRID_HOME/bin/diagcollection.sh
# exit 

The following .gz files will be generated in the current directory and need to be uploaded along with /tmp/diag.log:
 
crsData_<hostname>.tar.gz,
ocrData_<hostname>.tar.gz,
oraData_<hostname>.tar.gz,
coreData_<hostname>.tar.gz (only --core option specified)
os_<hostname>.tar.gz

Please ensure all above information are provided from all the nodes.

 

Linux/UNIX 10gR2/11gR1

1. Execute the following as root user:


# script /tmp/diag.log
# id
# env
# cd <temp-directory-with-plenty-free-space>
# export OCH=<CRS_HOME>
# export ORACLE_HOME=<DB_HOME>
# export HOSTNAME=<host>
# $OCH/bin/diagcollection.pl -crshome=$OCH --collect
# exit


The following .gz files will be generated in the current directory and need to be uploaded along with /tmp/diag.log:  

crsData_<hostname>.tar.gz,
ocrData_<hostname>.tar.gz,
oraData_<hostname>.tar.gz,
coreData_<hostname>.tar.gz (only --core option specified)


2. For 10gR2 and 11gR1, if getting an error while running root.sh, please collect /tmp/crsctl.*

Please ensure all above information are provided from all the nodes.

 

Windows 11gR2/12cR1:


set GRID_HOME=<11gR2_GRID_HOME>
%GRID_HOME%\perl\bin\perl %GRID_HOME%\bin\diagcollection.pl --collect

The following .zip files will be generated in the current directory and need to be uploaded:  

crsData_<timestamp>.zip,
ocrData_<timestamp>.zip,
oraData_<timestamp>.zip,
coreData_<timestamp>.zip (only --core option specified)

 

Windows 10gR2/11gR1


set ORACLE_HOME=<DB_HOME>
set OCH=<CRS_HOME>
set ORACLE_BASE=<oracle-base>
$OCH%\perl\bin\perl %OCH%\bin\diagcollection.pl --collect 






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2