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
- [oracle@oracle log]$ pwd
- /home/oracle/oracle/product/10.2.0/db_1/rdbms/log
Log files (alert_ <ORACLE_SID> .log):
- [oracle@oracle log]$ ll
- Total 848
- -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:
- SQL> show parameter dump_dest
- NAME TYPE
- ------------------------------------ ----------------------
- VALUE
- ------------------------------
- background_dump_dest string
- /home/oracle/oracle/admin/TESTDB/bdump
- core_dump_dest string
- /home/oracle/oracle/admin/TESTDB/cdump
- user_dump_dest string
- /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.