Im in need of finding all the refcurs in our system that have a specific field. Important to mention that all said cursors are outs of procedures that themselves are in packages.
ive located all of the candidates with
SELECT *
FROM user_arguments ua
WHERE ua.data_type = 'REF CURSOR';
but now im not sure how to continue.
Going over user_source, and finding the open and end of each refcur, then checking if between those lines for the field im searching for exists, then finding the start and finish of the procedure is a possibility but im trying to find a less brute force way to do it.
Ive tried to fiddle around with dbms_metadata.get_ddl
and dbms_sql.describe_columns
but to no avail.
Is there a way to do it without starting code journies around user_source? Thank you!