Skip to Main Content

Breadcrumb

XMAS_TREE

The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.

Question and Answer

Connor McDonald

Thanks for the question, Panneerselvam.

Asked: July 30, 2019 - 1:24 pm UTC

Last updated: August 01, 2019 - 8:14 am UTC

Version: 12.1.0.2.0

Viewed 1000+ times

You Asked

PL SQL package getting into performance issue when it's get executed usually run few seconds but sometimes it's run more then 40 seconds. Id we compile the package immediately performance back to normal in few seconds.

can you please advise what / how could be the reason after compiling the package the performance back to normal?

your reply high appreciated.

and Connor said...

The best way would be to trace it for both fast and slow executions

- dbms_monitor.session_trace_enable(waits=>true);
- run package
- dbms_monitor.session_trace_disable

and then look at the tkprof formatted trace file (or put relevant parts in here as a review).


We're not taking comments currently, so please try again later if you want to add a comment.

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database