Basic variables for installation:
a. $GI_BASE, $GI_HOME, $GI_USER
b. $ORACLE_BASE, $ORACLE_HOME, $ORACLE_USER
c. $ORACLE_INVENTORY
1. Installations
Stage of installation log_location auto generate Comments Tips
OUI installation /tmp/GridSetupActions<Timestamp> Y
a. installAction<Timestamp>.log for general information
b. In case hit Java exception, please refer to err log
increasing log level with out log by below example
"./gridSetup.sh -debug -logLevel detailed > /tmp/install_out.log"
Or with below option
-J-DTRACING.ENABLED=TRUE -J-DTRACING.LEVEL=2
Relink make log
$GI_HOME/install
$ORACLE_HOME/install
Y
file name : make.log,
a. relink error always happens when there are lacks of lib files
b. errors in "env_rdbms.mk" or "ins_rdbms.mk" in "$GI_HOME/rdbms/lib"
root script log $GI_BASE/crsdata/<hostname>/crsconfig Y file name: rootcrs<Timestamp>.log logs for other commands used by root script also can check this location.
Completed $ORACEL_INVENTORY/logs Y all installation logs will be moved here after installation from "/tmp"
Deconfig
$GI_BASE/crsdata/HOSTNAME/crsconfig/roothas_<timestamp>.log
$GI_BASE/crsdata/HOSTNAME/crsconfig/hadeconfig.log
Y
roothas.sh -deconfig -force
Deconfiguration logs.
2. Clusterware
(1). ohasd log: $GI_BASE/diag/crs/'hostname'/crs/trace/ohasd.trc
(2). log location for CRS_init_resources: $GI_BASE/diag/crs/'hostname'/crs/trace/~
init_resources log file auto generate Comments
ora.mdnsd
ohasd_oraagent_$GI_USER.trc
mdnsd.trc
Y
ora.gpnpd
ohasd_oraagent_$GI_USER.trc
gpnpd.trc
Y
ora.gipcd
ohasd_oraagent_$GI_USER.trc
gipcd.trc
Y
ora.cssd
ohasd_cssdagent_root.trc
ocssd.trc
Y
ora.cssdmonitor
ohasd_cssdmonitor_root.trc
Y
ora.diskmon ohasd_orarootagent_root.trc Y The daemon is only online on Exadata environment.
ora.ctssd
ohasd_cssdagent_root.trc
octssd.trc
Y
ora.crf
ohasd_orarootagent_root.trc
ologgerd.trc
osysmond.trc
Y It works for CHM and CHA.
ora.cluster_interconnect.haip ohasd_orarootagent_root.trc Y
ora.crsd
ohasd_orarootagent_root.trc
crsd.trc
Y
ora.evmd
ohasd_orarootagent_root.trc
evmd.trc
Y
ora.drivers.acfs ohasd_orarootagent_root.trc Y
(3). log location for CRS_app_resources: $GI_HOME/diag/crs/'hostname'/crs/trace/~
app_resources log file auto generate Comments
ora.net1.network crsd_orarootagent_root.trc Y
ora.ons crsd_oraagent_$GI_USER.trc Y
ora.<hostname>.vip crsd_orarootagent_root.trc Y
ora.scan1/2/3.vip crsd_orarootagent_root.trc Y
ora.listener_scan1/2/3.vip
crsd_oraagent_$GI_USER.trc
$GI_BASE/diag/tnslsnr/'hostname'/
Y
for example: if you want to track "listener_scan1"
cat crsd_oraagent_$GI_USER.trc | grep -i "ora.listener_scan1.vip" > /tmp/scan1.txt
ora.listener.lsnr
crsd_oraagent_$GI_USER.trc
$GI_BASE/diag/tnslsnr/'hostname'/
Y
ora.asm
crsd_oraagent_$GI_USER.trc
$ORACLE_BASE/diag/asm/$ORACLE_INSTANCE/trace/alert <$ORACLE_INSTANCE>.trc
Y
ora.<diskgroupname>.dg crsd_oraagent_$GI_USER.trc Y
ora.<dbname>.db
crsd_oraagent_$GI_USER.trc
$RAC_BASE/diag/rdbms/$DB_NAME/$ORACLE_INSTANCE/trace/alert_$ORACLE_INSTANCE.trc
Y
ora.cvu
$ORACLE_BASE/crsdata/'hostname'/cvu
For add node precheck, it should be in $ORACLE_INVENTORY/logs/GridSetupActions<timestamp>/
Y
ora.qosmserver
$GI_BASE'/crsdata/'hostname'/qos/logs Y
ora.*.acfs
crsd_orarootagent_root.trc
$GI_BASE/crsdata/<hostname>/acfs
Y
ora.gnsd
crsd_orarootagent_root.trc
gnsd.trc
Y increasing loglevel by "srvctl modify gns -loglevel 5"
ora.chad $ORACLE_BASE/crsdata/'hostname'/chad Y
ora.proxy_advm
crsd_orarootagent_root.trc
$ORACLE_BASE/apx/+apx/+APX1/trace
Y
ora.mgmtdb
$ORACLE_BASE/diag/rdbms/_mgmtdb
ologgerd.trc
osysmond.trc
Y
mgmtca
$GI_BASE/cfgtoollogs/mgmtca/mgmtca.trc.1
Y
ora.MGMTLSNR
crsd_orarootagent_root.trc
$GI_BASE/diag/tnslsnr/'hostname'/
Y
3. Instances
Name log_location Auto generate Comments
DB instance
$RAC_BASE/rdbms/log
$RAC_BASE/diag/rdbms/$DB_NAME/$ORACLE_INSTANCE/trace/alert_$ORACLE_INSTANCE.trc
Y
ASM instance $GI_BASE/diag Y
APX instance $GI_BASE/diag Y
4. Commands
Command log_location auto generate Comments
crsctl $GI_BASE/diag/crs/'hostname'/crs/trace/crsctl_pid.trc Y
srvctl
export SRVM_TRACE=true
export SRVCTL_TRACEFILE=srvctl_`date +%Y-%m-%d-%H-%M-%S`
N
asmcmd
$GI_HOME/diag/asmtool
$GI_HOME/log/diag/asmcmd
Y
olsnodes $GI_BASE/diag/crs/HOSTNAME/crs/trace/olsnodes_pid.trc Y
oifcfg $GI_BASE/diag/crs/HOSTNAME/crs/trace/oifcfg_pid.trc Y
ocrcheck
$GI_BASE/diag/crs/HOSTNAME/crs/trace/ocrcheck_pid.trc
Y
ocrconfig
$GI_BASE/diag/crs/HOSTNAME/crs/trace/ocrcheck_pid.trc
Y
asmca $GI_BASE/cfgtoollogs/asmca Y File a bug refer to two more directories:
$GI_BASE/diag/asm/+ASM1/…
$GI_HOME/rdbms/log
cluvfy $ORACLE_BASE/crsdata/'hostname'/cvu set directory by below commands
export CV_TRACELOC=/tmp/trace/
export CV_DESTLOC=/tmp/dest/
ocrdump
$GI_BASE/diag/crs/HOSTNAME/crs/trace/ocrdump_pid.trc
Y
netca $GI_BASE/cfgtoollogs/netca Y
dbca $ORACLE_BASE/cfgtoollogs/dbca/$ORACLE_INSTANCE Y
dbua $ORACLE_BASE/cfgtoollogs/dbua/$ORACLE_INSTANCE Y
rhpctl $GI_BASE/crsdata/'hostname'/rhp Y
tfactl $GI_BASE/tfa/'hostname'/log
kfod/kfed N
afd $GI_BASE/crsdata/'hostname'/afd
5.TFA
TFA collected logs will be put in this directory: $GI_BASE/tfa/repository/collection_<timestamp&nodes>/<timestamp&nodes>.zip
————————————————
版权声明:本文为CSDN博主「Voyager3」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/voyager3/java/article/details/80339433