Get all variable and constant names declared in a package

后端 未结 1 991
梦如初夏
梦如初夏 2021-01-07 12:46

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

相关标签:
1条回答
  • PL/Scope can provide this, although it's a compiler option that you need to enable explicitly.

    1. Enable PL/Scope

      alter session set plscope_settings = 'IDENTIFIERS:ALL';
      
    2. Recompile the schema or selected objects, e.g. (this will recompile all objects for the selected schema:

      exec dbms_utility.compile_schema('MYSCHEMA',TRUE);
      
    3. Now you can query for all identifiers in objects owned by the current user:

      select * from user_identifiers;
      
    0 讨论(0)
提交回复
热议问题