Find ORACLE logs

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 installationlog_locationauto generate CommentsTips
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_resourceslog fileauto generateComments
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

 
 ora.cssdmonitor

ohasd_cssdmonitor_root.trc

Y 
 ora.diskmonohasd_orarootagent_root.trc YThe 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

 It works for CHM and CHA.
 ora.cluster_interconnect.haipohasd_orarootagent_root.trc   Y 
 ora.crsd

ohasd_orarootagent_root.trc

crsd.trc  

 Y 
 ora.evmd

ohasd_orarootagent_root.trc  

evmd.trc 

 Y 
 ora.drivers.acfsohasd_orarootagent_root.trc   Y 

(3). log location for CRS_app_resources: $GI_HOME/diag/crs/'hostname'/crs/trace/~

app_resourceslog fileauto generateComments
 ora.net1.networkcrsd_orarootagent_root.trc  Y 
 ora.onscrsd_oraagent_$GI_USER.trcY 
 ora.<hostname>.vipcrsd_orarootagent_root.trc  Y 
 ora.scan1/2/3.vipcrsd_orarootagent_root.trc  Y 
 ora.listener_scan1/2/3.vip

crsd_oraagent_$GI_USER.trc

$GI_BASE/diag/tnslsnr/'hostname'/

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'/

 
 ora.asm

crsd_oraagent_$GI_USER.trc

$ORACLE_BASE/diag/asm/$ORACLE_INSTANCE/trace/alert <$ORACLE_INSTANCE>.trc

 Y 
 ora.<diskgroupname>.dgcrsd_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'/chadY 

 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 

Namelog_locationAuto generateComments
 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 
 APX instance $GI_BASE/diag Y 

4. Commands

Commandlog_locationauto generateComments
crsctl$GI_BASE/diag/crs/'hostname'/crs/trace/crsctl_pid.trcY 
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  
 oifcfg$GI_BASE/diag/crs/HOSTNAME/crs/trace/oifcfg_pid.trc 
 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/asmcaYFile 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 
 dbca$ORACLE_BASE/cfgtoollogs/dbca/$ORACLE_INSTANCE 
 dbua$ORACLE_BASE/cfgtoollogs/dbua/$ORACLE_INSTANCEY 
 rhpctl$GI_BASE/crsdata/'hostname'/rhpY 
 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 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章