Home >Operation and Maintenance >Linux Operation and Maintenance >How to query oracle error log in linux
Linux method of querying Oracle error logs: 1. Use the "show parameter background_dump_dest" command to obtain the directory of the error log, and query the error log through the directory; 2. Use the PID of the error prompt to fuzzy query the corresponding error log , the syntax is "find -name "*ora* error prompt PID*.trc"".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
1 View the error log directory through the command:
show parameter background_dump_dest /usr/oracle/app/diag/rdbms/orcl/orcl/trace
2 According to the PID of the error prompt: 3159, fuzzy query the corresponding error log
find -name "*ora*3159*.trc" more orcl_ora_3159.trc
Expand knowledge:
Query the archive log
select * from v$recovery_file_dest;
Delete archive log
Warning log
Query the full name of the warning log: find -name "alert*.log"
View the warning log content
Recommended learning: Linux video tutorial
The above is the detailed content of How to query oracle error log in linux. For more information, please follow other related articles on the PHP Chinese website!