How does one trace SQL statement execution?
• Run the PLUSTRCE.SQL script from the SYS database user. This script is located the in $ORACLE_HOME/sqlplus/admin. • Create a PLAN_TABLE using the UTLXPLAN.SQL script. This script is in $ORACLE_HOME/rdbms/admin. • Use the “SET AUTOTRACE ON” command to trace SQL execution. This will print the result of your query, an explain plan and high level trace information.