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!

SP to find top 20 worse SQL's

981609Apr 29 2015 — edited Apr 30 2015


I know this can probably be done through OEM but a lot of my the clients I support dont know how to use nor and some dont have access.

Therefore, I would like to some help on putting together to find the 20 worse performing SQL's.

By worse, I mean longest running.

I am thinking the report should have have the following columns

SQL ID, hash value start date, start time, end date, end time and the full SQL text of the query.

Anything else that may be pertinent to help debug the issue. If the output can be generated in HTML format

for ease of reading that would be excellent.

Thanks in advance to all who answer. If the output can be posted so I can review that would be great.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2015
Added on Apr 29 2015
12 comments
518 views