skip to main | skip to sidebar

Sam's Oracle BLOG

Aug 29, 2008

trace query

use the following to trace another session:

dbms_system.set_bool_param_in_session(sid, serial#, 'timed_statistics',true);
dbms_system.set_sql_trace_in_session(sid,serial#,truefalse);

note: There are plenty of other options, and the above are just defaults.
Posted by Sam
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: database, performance
Newer Post Older Post Home

My Blog List

  • Oracle Scratchpad
    Pagination Cost – 2
    4 weeks ago
  • The Momen Blog
    Oracle Database In-Memory Advisor Released
    10 years ago
  • The Tom Kyte Blog
    Upcoming Events...
    11 years ago

www.xobni.com

Xobni outlook add-in for your inbox

Archive

  • ►  2012 (1)
    • ►  Mar (1)
  • ►  2011 (13)
    • ►  Nov (5)
    • ►  Aug (3)
    • ►  May (3)
    • ►  Feb (2)
  • ►  2010 (7)
    • ►  Nov (1)
    • ►  Sep (2)
    • ►  Jun (2)
    • ►  Apr (1)
    • ►  Feb (1)
  • ►  2009 (17)
    • ►  Dec (2)
    • ►  Oct (5)
    • ►  Jul (3)
    • ►  May (3)
    • ►  Apr (1)
    • ►  Mar (2)
    • ►  Jan (1)
  • ▼  2008 (44)
    • ►  Dec (5)
    • ►  Nov (1)
    • ►  Oct (1)
    • ►  Sep (20)
    • ▼  Aug (17)
      • trace query
      • changing tab stops in unix editors
      • counting cpu's
      • add / create redo logs
      • putting standby database into readonly
      • pl/sql and roles
      • set roles
      • current database privileges
      • at
      • locked statistics
      • slow query
      • buffer busy waits
      • ORA-27300: OS system dependent operation:semget fa...
      • vnc setup
      • PUSH_SUBQ hint
      • group by and having options
      • v$parameter2
  • ►  2007 (21)
    • ►  Dec (4)
    • ►  Nov (6)
    • ►  Oct (7)
    • ►  Sep (4)