December 2002
Intermediate to advanced
928 pages
85h 29m
English
You can start collecting SQL trace information either by running the DBMS_SESSION.SET_SQL_TRACE procedure or by issuing the statement:
ALTER SESSION SET SQL_TRACE = TRUE;
You can turn SQL tracing off by setting SQL_TRACE to FALSE.
You can turn on SQL Trace for a session other than your current one with the DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION procedure.
To turn on SQL Trace for the entire instance, you can either set the SQL_TRACE initialization parameter to TRUE or issue the following statement:
ALTER SYSTEM SET SQL_TRACE = TRUE;
Use this method with care, because collecting trace information does add overhead to the operation of the instance.
For more detailed information on Oracle Trace, the statistics it collects, and how it can be used by itself, see the Oracle documentation.