Advanced Database Lab Module
Advanced Database Lab Module
-------------
• SQL> set AUTOTRACE off
TIMED_STATISTICS
•
The TIMED_STATISTICS parameter specifies whether Oracle should
measure the execution time for various internal operations. Without
this parameter set, there
is much less value to the trace file output. As with other parameters,
you can set
TIMED_STATISTICS either on an instance level (in INIT.ORA) or on a
session level.
• SQL> alter session set timed_statistics=true;
SQL_TRACE
• The SQL_TRACE facility is used to trace all SQL activity of a
specified database session or instance down to a trace file in
the database server operating system.
• To enable tracing for the current session, you should issue
ALTER SESSION, as
shown here: