Home > Database > Oracle > body text

Where is the oracle stored procedure execution log?

下次还敢
Release: 2024-04-19 07:18:13
Original
1069 people have browsed it

Oracle stored procedure execution logs are located in the following folder: Windows: %ORACLE_BASE%\diag\rdbms[ORACLE_SID][ORACLE_SID]\trace\Unix: $ORACLE_BASE/diag/rdbms/[ORACLE_SID]/[ORACLE_SID] /trace/log file naming format: alert_[ORACLE_SID].logtrace_[ORACLE_SID]_[SEQUENCE_NUMBER].trc

Where is the oracle stored procedure execution log?

##Oracle stored procedure execution log location

Oracle stored procedure execution logs are located in the following location:

  • Windows: %ORACLE_BASE%\diag\rdbms[ORACLE_SID]\[ORACLE_SID]\ trace\
  • Unix: $ORACLE_BASE/diag/rdbms/[ORACLE_SID]/[ORACLE_SID]/trace/

Log file naming convention:

The log file is named in the following way:

    alert_[ORACLE_SID].log
  • trace_[ORACLE_SID]_[SEQUENCE_NUMBER].trc
Where: [ORACLE_SID] is the database instance name, [SEQUENCE_NUMBER] is an increasing number used to distinguish different log files.

Specific steps:

To find the stored procedure execution log file, please follow these steps:

    Navigate to the directory provided above .
  1. Open the file starting with "alert_[ORACLE_SID].log".
  2. Search for lines containing the stored procedure name.

Example:

Assume the stored procedure is named "GET_ALL_EMPLOYEES". To find its execution log, you can perform the following steps:

    Open the "alert_[ORACLE_SID].log" file.
  1. Search for the following line:
  2. <code class="text">BEGIN GET_ALL_EMPLOYEES;</code>
    Copy after login
    After this line, information about the execution of the stored procedure is displayed, including execution time, status, and other details.

The above is the detailed content of Where is the oracle stored procedure execution log?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template