Query to search all packages for table and/or column

后端 未结 4 1365
心在旅途
心在旅途 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 01:57

    You can do this:

    select *
    from user_source
    where upper(text) like upper('%SOMETEXT%');
    

    Alternatively, SQL Developer has a built-in report to do this under:

    View > Reports > Data Dictionary Reports > PLSQL > Search Source Code
    

    The 11G docs for USER_SOURCE are here

提交回复
热议问题