oracle-- database log storage location

Original: https://blog.csdn.net/kepa520/article/details/7895786 Original Address: http://blog.csdn.net/a19881029/article/details/8158082

 

 

Original Address: http://blog.csdn.net/a19881029/article/details/8158082

1, by default, the log file records the oracle at $ ORACLE / rdbms / log directory

[plain]  view plain  copy
 
  1. [oracle@oracle log]$ pwd  
  2. /home/oracle/oracle/product/10.2.0/db_1/rdbms/log  

Log files (alert_ <ORACLE_SID> .log):

[plain]  view plain copy  
 
  1. [oracle@oracle log]$ ll  
  2. Total 848  
  3. -rw-rw-r-- 1  aaa  aaa    962 06-20 15:57 alert_TESTDB.log  

 

2, if not in the default location, you can pass sql query log file location:

[plain]  view plain copy  
 
  1. SQL> show parameter dump_dest  
  2.   
  3. NAME                                 TYPE  
  4. ------------------------------------ ----------------------  
  5. VALUE  
  6. ------------------------------  
  7. background_dump_dest                 string  
  8. /home/oracle/oracle/admin/TESTDB/bdump  
  9. core_dump_dest                       string  
  10. /home/oracle/oracle/admin/TESTDB/cdump  
  11. user_dump_dest                       string  
  12. /home/oracle/oracle/admin/TESTDB/udump  

Where value is the value of background_dump_dest log file location


----------------------------------------------------------------------------------------------

 

oracle11g modify the logging system is not in use oracle9 alert_ $ ORACLE_SID.log log, and modify Diag Alert Diag Trace two directories stored in xml format and text format log, the two were placed in the directories / oracle / oracle / diag / rdbms / rac / rac1 / trace and / oracle / oracle / diag / rdbms / rac / rac1 alert / directory, you can use
sql> select name, value from v $ diag_info command to query. You can also use Enterprise Manager, enter the Oracle database home page, click Alert Log Contents in the Related Links view.

Guess you like

Origin www.cnblogs.com/heymonkey/p/12074773.html