I have a procedure name, catalog name and the schema name and iām trying to find list of tables that are associated with the procedure
Tried several different ways but nothing worked..
I have a procedure name, catalog name and the schema name and iām trying to find list of tables that are associated with the procedure
Tried several different ways but nothing worked..
Try this:
SELECT NAME,REFERENCED_NAME,REFERENCED_TYPE
FROM USER_DEPENDENCIES
WHERE TYPE IN ('PROCEDURE','PACKAGE','FUNCTION') AND REFERENCED_TYPE = 'TABLE'
ORDER BY REFERENCED_OWNER, REFERENCED_NAME, REFERENCED_TYPE;