Q
Problem solve Get help with specific problems with your technologies, process and projects.

SQL trace for one session

I have a process that is taking a long time to execute. I don't have access to the source code, is there any way to turn on SQL trace for one session?


Try using the set_sql_trace_in_session package. After you determine the sid and serial# for the process, execute the trace package using the syntax:

execute sys.dbms_system.set_sql_trace_in_session(sid,serial#,true);


Dig Deeper on Oracle and SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close