Database Alert log, OUI log, ASM Alert log, CRS Log, OS Watcher log and OS Messages Location Listed at one Place
When working as Remote DBA log files plays very important role in day to day monitoring and trouble shooting. Log file checking starts from Software installation and continue through out life of database. Now a days, Database is not just a single s/w to work upon, Real Application Cluster and Automatic Storage Management has became an integral part of it.
Sometimes remote DBA also needs to look into OS level logs as well. Here, I am trying to give a central place for all database related log files like Database Alert log, OUI log, ASM Alert log, CRS Log, OS Watcher log and OS Messages Location.
Let's start from Oracle Database Software Installation. Oracle Universal Installer (OUI) is commonly used tool for s/w installation.
1. Oracle Universal Installer (OUI) log Files (Oracle 9.2.0.X.X, 10.1.0.X.X, 10.2.0.X.X and 11.2.0.X.X ): The log files are in
In Unix the location of central inventory (oraInventory) can be found from the oraInst.loc file, which exists in the /var/opt/oracle or /etc/ (By default).
[oracle@database etc]$ pwd
/etc
[oracle@etc]$ cat oraInst.loc
#Oracle Installer Location File Location
#Thu Oct 21 16:12:34 PDT 2010
inst_group=oracle
inventory_loc=/etc/oraInventory
Here, the inventory_loc is '/etc/oraInventory'
The log files are below:
For 10.2.0.X.X to 11.2.0.X.X only
2. Database alert log: Database Alter log are files, where every database related activities are recorded like instance start, stop, redo log switching, ORA error etc.
A DBA need to check this file for two reasons.
a. To check health of Database.
b. Check details of any error in Database.
In Oracle 11g Default path for Alter log files is
$ORACLE_BASE/diag/rdbms/{DBNAME}/{sid}/trace/alert_{sid}.log
Ex: /u01/app/oracle/diag/rdbms/db01/db001/trace/alert_db001.log
In Oracle 10g Environment, use below command to find path for alter log files.
SQL> show parameter background_dump_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
background_dump_dest string /etc/oracle/diag/rdbms/testdb/testdb/trace
3. Automatic Storage Management alert log files: ASM is used for providing redundancy and balancing data and load across different disks. Any issue related to ASM below is the path for alter log files (Oracle 11g).
$ORACLE_BASE/diag/asm/+asm/+ASM{instance number}/trace/ alert_+ASM {instance number}.log
Ex: /u01/app/oracle/diag/asm/+asm/+ASM2/trace/alert_+ASM2.log
4. Clusterware CRS alert log: Real application Cluster is used for high availability and work load distribution among diff-2 servers. To check health of cluster and trouble shooting below is path for alter log file.
The following sections describe the locations of the clusterware log files in Database Software Oracle 10g Release 1.
Cluster Ready Services Log Files
Cluster Ready Services (CRS) has daemon processes that generate log information. Log files for the CRS daemon (crsd) can be found in the following directories:
/crs/init
Oracle Cluster Registry Log Files
The Oracle Cluster Registry (OCR) records log information in the following location:
/srvm/log/
Cluster Synchronization Services (CSS) Log Files
You can find CSS information that the OCSSD generates in log files in the following locations:
Event Manager Log Files
Event Manager (EVM) information generated by evmd is recorded in log files in the following locations:
/evm/log/evmdaemon.log
Oracle High Availability Log Files
===========================The Oracle RAC high availability trace files are located in:
$ORACLE_BASE//admin/hdump
Where $ORACLE_BASE is configured and $ORACLE_HOME/racg/log when $ORACLE_BASE is not available.
In Oracle 11g Release 1 onwards logs can be found at this location.
$GRID_HOME/log/{node name}/alert{node name}.log
Ex: /u01/app/11.2.0/grid/log/db02/alertdb02.log
5. Diskmon log files : Disk mon log are basically to check any issue with the disk in the system.
$GRID_HOME/log/{node name}/diskmon/diskmon.lo*
Ex: /u01/app/11.2.0/grid/log/dmorldb02/diskmon/diskmon.log
6. OS Watcher output files : OS watcher logs are helpful for remote DBA when Database Server is hang or reboot automatically. Below is path for Linux/Unix env.
/opt/oracle.oswatcher/osw/archive/
To get OS watcher data of specific date :
cd /opt/oracle.oswatcher/osw/archive
find . -name '*12.01.13*' -print -exec zip /tmp/osw_`hostname`.zip {} \;
where 12- year 01- Month 13-day
7. Os message logfile: OS message log file are logs related to OS related messages. Path for Linux/Unix syatem is below.
/var/log/messages
$ORACLE_BASE/
Where $ORACLE_BASE is configured and $ORACLE_HOME/racg/log when $ORACLE_BASE is not available.
In Oracle 11g Release 1 onwards logs can be found at this location.
$GRID_HOME/log/{node name}/alert{node name}.log
Ex: /u01/app/11.2.0/grid/log/db02/alertdb02.log
5. Diskmon log files : Disk mon log are basically to check any issue with the disk in the system.
$GRID_HOME/log/{node name}/diskmon/diskmon.lo*
Ex: /u01/app/11.2.0/grid/log/dmorldb02/diskmon/diskmon.log
6. OS Watcher output files : OS watcher logs are helpful for remote DBA when Database Server is hang or reboot automatically. Below is path for Linux/Unix env.
/opt/oracle.oswatcher/osw/archive/
To get OS watcher data of specific date :
cd /opt/oracle.oswatcher/osw/archive
find . -name '*12.01.13*' -print -exec zip /tmp/osw_`hostname`.zip {} \;
where 12- year 01- Month 13-day
7. Os message logfile: OS message log file are logs related to OS related messages. Path for Linux/Unix syatem is below.
/var/log/messages
Ref:
http://www.dbas-oracle.com/2013/03/Database-Aler-log-OUI-log-ASM-Alert-log-CRS-Log-OS-Watcher-log-OS-Messges-Location-at-one-Place.html