Location of alert logs in Oracle 11g

Source: Internet
Author: User

Oracle 11g Alert Log location Oracle 11g Alert Log location 1. Obtain ADR-related information by querying the v $ diag_info View

ADR(Automatic Diagnostic Repository)--> A a file-based hierarchical data store for managing diagnostic information, including network tracing and logging.

 

Code:
sys@ora11g>select * from v$diag_info;INST_ID NAME VALUE------- ---------------------- ----------------------------------------------1 Diag Enabled TRUE1 ADR Base /oracle/u01/app/oracle1 ADR Home /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g1 Diag Trace /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace1 Diag Alert /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert1 Diag Incident /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/incident1 Diag Cdump /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/cdump1 Health Monitor /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/hm1 Default Trace File /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace/ora11g_ora_3968.trc1 Active Problem Count 01 Active Incident Count 011 rows selected.

 

2. The directory corresponding to Diag Trace is warning logs in text format, and the log code we often use:
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace$ls -l alert_ora11g.log-rw-r----- 1 oracle oinstall 72513 Feb 27 14:29 alert_ora11g.log

 

3. The directory corresponding to Diag Alert is the warning Log Code in XML format:
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert$ls -l log.xml-rw-r----- 1 oracle oinstall 327254 Feb 27 14:29 log.xml

 

4. I used to define the view warning log as the same name as alert and directly view the code on the operating system:
ora11g@RHEL53 /home/oracle$alias alertalias alert='tail -200f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log'

 

5. view the Code with the same name:
ora11g@RHEL53 /home/oracle$alert

 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.