Oracle - SQL_TRACE

Articles Related

Alter

ALTER session SET sql_trace = TRUE;

Connection Pool

With a typical connection pool, a database session (the level at which we generally trace) is shared across multiple unrelated end-user sessions. Without a connection pool, the application would own a database connection, the level at which Oracle is built to “trace” at from start to finish.

With a connection pool, that one connection is shared by perhaps every end-user session in the system. We end up with a trace file that hase not only the trace information we are interested in, but the trace information from any-end user session that used the connection. The resulting trace file would be intermingled with my SQL, and with their SQL, and with everyone's SQL.

With a connection pool :

  • we must have the ability to turn on tracing for a specific user of for a specific module
  • when the connection pool grab a connection, it should issue alter session set sql_trace = true;
  • prior to returning the connection to the pool, it should issue set sql_trace = false;

Reference

  • Bookmark "Oracle - SQL_TRACE" at del.icio.us
  • Bookmark "Oracle - SQL_TRACE" at Digg
  • Bookmark "Oracle - SQL_TRACE" at Ask
  • Bookmark "Oracle - SQL_TRACE" at Google
  • Bookmark "Oracle - SQL_TRACE" at StumbleUpon
  • Bookmark "Oracle - SQL_TRACE" at Technorati
  • Bookmark "Oracle - SQL_TRACE" at Live Bookmarks
  • Bookmark "Oracle - SQL_TRACE" at Yahoo! Myweb
  • Bookmark "Oracle - SQL_TRACE" at Facebook
  • Bookmark "Oracle - SQL_TRACE" at Yahoo! Bookmarks
  • Bookmark "Oracle - SQL_TRACE" at Twitter
  • Bookmark "Oracle - SQL_TRACE" at myAOL
 
database/oracle/sql_trace.txt · Last modified: 2010/01/31 18:54 by gerardnico