| Oracle8i Server and Tools Administrator's Guide Release 3 (8.1.7) for Alpha OpenVMS Part Number A86712-01 |
|
This chapter describes how to use Oracle8i Enterprise Edition trace files when dealing with exception conditions.
This chapter contains the following major sections:
Whenever Oracle8i encounters an exception condition, such as an access violation or an attempt to divide a value by zero, Oracle8i writes a trace file, also called a dump file.
A trace file can contain any of the following:
The first few lines of the trace file include the time and date when the trace file was created and might contain other information about the creating process, including the following:
Trace files are created by processes running the image ORACLE.EXE. These are the database processes, dedicated server processes, dispatchers and shared servers.
The INIT.ORA parameter, BACKGROUND_DUMP_DEST, sets the directory where trace files will be sent. Logical names can be used with this parameter rather than actual directory specifications. If the name is a logical name, then it is translated during instance startup in context of the process that starts up the instance.
The foreign command TRC is defined when the Oracle8i Enterprise Edition is installed. Use this symbol to display the trace files created in the ORA_DUMP directory on any given day.
Trace file names use the following convention:
<nodename>_<sid>_<FG/BG>_<image>_<process_id>.TRC
For example, a trace file created by process 005 running SQL*Plus against instance MKT1 might create a trace file called HARPO_MKT1_BG_ORACLE_005.TRC.
In addition to the above trace files, a file called <nodename>_<sid>_ALERT.LOG is stored in the background process dump directory and updated each time a number of different activities related to the database occur. You should be aware of the growth in size of the file over time. For more information about this file, see the README file.
In addition to the existing messages in <nodename>_<sid>_ALERT.LOG, the following messages result from the 64-bit feature:
The trace file format allows stack dumps to look similar on all implementations of Oracle8i Enterprise Edition and above. Trace files are also now preformatted.
Trace files are created so that they are not world-readable. While this is secure, for those who are not administrating sensitive data the new protections may be overly restrictive. For example, a user tho attempts to use SQL*Trace to analyze code behavior will find that the results are in a trace file that they cannot read.
When the internal INIT.ORA parameter _TRACE_FILES_PUBLIC is set to TRUE, trace files will be created world-readable. In this case, trace data is available and a user can use SQL*Trace to analyze code behavior. However, this is not a secure thing to do. Setting the parameter to FALSE is secure.
|
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|