Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dbms_system.set_sql_trace_in_session

user5863738Nov 17 2014 — edited Nov 20 2014

dbms_system.set_sql_trace_in_session

We have a slow running query, that stalls for about 30 seconds or so when run via some application using the JDBC driver.

When the same query is run in SQLPLUS it takes less than one second.

So, using the above dbms_system procedure, I turned tracing on for the session.

Whilst trace is on, the system runs this query in a second, and the application works as expected.

So, my question is:

What does the plsql procedure set, that could affect the running query?

This post has been answered by Christian Erlinger on Nov 17 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2014
Added on Nov 17 2014
4 comments
417 views