I need to get list of all variables and constants defined in packages within given schema using data dictionary.
Couldn\'t find any information how to do it. Any su
PL/Scope can provide this, although it's a compiler option that you need to enable explicitly.
Enable PL/Scope
alter session set plscope_settings = 'IDENTIFIERS:ALL';
Recompile the schema or selected objects, e.g. (this will recompile all objects for the selected schema:
exec dbms_utility.compile_schema('MYSCHEMA',TRUE);
Now you can query for all identifiers in objects owned by the current user:
select * from user_identifiers;