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!

How to find corresponding row of V$SQL PROGRAM_ID

ronald_2017Jun 24 2022 — edited Jun 24 2022

Hello All,

Oracle 12c

Do you have any idea why there is no corresponding row to PROGRAM_ID?

SELECT 
    (SELECT a.OBJECT_NAME FROM DBA_OBJECTS a WHERE a.OBJECT_ID = V.PROGRAM_ID) OBJECT_NAME,
    V.PROGRAM_ID,
    V.PROGRAM_LINE#
FROM V$SQL V 
WHERE SQL_ID = 'lkjasd7843k';

OBJECT_NAME          PROGRAM_ID PROGRAM_LINE#
-------------------- ---------- -------------
                      525398476          2015


Thanks

This post has been answered by BEDE on Jun 24 2022
Jump to Answer
Comments
Post Details
Added on Jun 24 2022
4 comments
1,234 views