Show TOC

Error AnalysisLocate this document in the navigation structure

Definition

Information on all types of database problems can be found in the trace and ALERT files, where the actions in the database are recorded.

Structure
  • In the ALERT file, important system events and significant error messages are continually collected for the entire system. The ALERT file can inform you, for example, which of the online redo log groups is the current one.

    ALERT Files
    • Oracle 10g ALERT file: <SAPDATA_HOME>/saptrace/background/alert_<DBSID>.log

    • Oracle 11g ALERT file: <SAPDATA_HOME>/saptrace/diag/rdbms/<dbname>/<DBSID>/trace/alert_<DBSID>.log

  • Trace files are created by the individual background and user processes of the database system. Trace files thus offer more detailed information for error analysis than the ALERT file.

    Trace Files of the Background Processes
    • Oracle 10g

      <SAPDATA_HOME>/saptrace/background/<process>_<number>.trc

    • Oracle 11g

      <SAPDATA_HOME>/saptrace/diag/rdbms/<dbname>/<DBSID>/trace/<DBSID>_<process>_<number>.trc

    Trace Files of the User Processes
    • Oracle 10g

      <SAPDATA_HOME>/saptrace/usertrace/<process>.trc

    • Oracle 11g

      <SAPDATA_HOME>/saptrace/diag/rdbms/<dbname>/<DBSID>/trace/<DBSID>_<process>_<number>.trc

Note

In Oracle 11g, the trace file of the background and user processes are the same.

The directories where the ALERT and trace files are stored are defined by the following Oracle init.ora parameters:

  • Oracle 10g

    background_dump_destination and user_dump_destination

  • Oracle 11g

    diagnostic_dest

.

The naming conventions for the trace files depend on the operating system. Under UNIX, the name of the trace file contains the operating process number and the Oracle process number.

A trace file can contain the following information:

  • Date and timestamp

  • Version number

  • Process information

  • Error messages

  • Calling stack trace

  • Dumps from the System Global Area (SGA) and the Program Global Area (PGA).

For more information, see the Oracle documentation.