Query to search all packages for table and/or column

后端 未结 4 1359
心在旅途
心在旅途 2020-12-01 01:37

Is there a query I can run to search all packages to see if a particular table and/or column is used in the package? There are too many packages to open each one and do a fi

4条回答
  •  粉色の甜心
    2020-12-01 02:17

    you can use the views *_DEPENDENCIES, for example:

    SELECT owner, NAME
      FROM dba_dependencies
     WHERE referenced_owner = :table_owner
       AND referenced_name = :table_name
       AND TYPE IN ('PACKAGE', 'PACKAGE BODY')
    

提交回复
热议问题