Skip to Main Content

Oracle Database Discussions

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!

how to query sql execution time by sql_id

2690604Sep 29 2015 — edited Sep 29 2015

Hi guys

When I want to get the elapsed time for a sql statement in 10g, I prefer to take snapshots before and after executing the sql and then make an AWR report to find the elapsed time for the certain sql. Howerver, when it comes to get elapsed time list for a sql(or get the long-running sqls) in a period of time, it is difficult for me.

Could you please help to give some scripts on how to find the sql execution time by sql_id? Thanks!

Regads

Li

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2015
Added on Sep 29 2015
1 comment
5,709 views