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!

Find out PL/SQL Programs that use a Specific SQL ID

Migs_IsipDec 26 2014 — edited Jan 15 2015

Hi, i'm trying to tune some of our SQL inside of our custom PL/SQL Programs.

i have the query below:

select rownum, aa.*

from    (select sql_id, SQL_TEXT, ELAPSED_TIME, CPU_TIME, BUFFER_GETS, DISK_READS, PARSE_CALLS, SHARABLE_MEM, fetches, executions

     from v$sql

     order by CPU_TIME desc) aa

where rownum < 10;

/

I want to find the PL/SQL programs that refer to these SQL by their SQL_ID or something similar.

But i do not want to use DBA_SOURCE.

Does anyone have an idea how?

thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2015
Added on Dec 26 2014
9 comments
2,520 views