简体   繁体   中英

Is there a query that can retrieve all the tables involved in a certain package?

I have a package that stores different procedures and functions in a PLEedit document and I was wondering if there is anyway to see all the tables that are involved in that package? Or maybe there's a way to at least see all the tables that affected by that package (UPDATE, INSERT, DELETE or example)? The package is quite big and will take a lot of time to go through it and figure out all the tables involved.

In Oracle:

select *
from all_dependencies
where name = 'your_package'
  and referenced_type = 'TABLE'

Notice that this will not extract dependencies given by dynamic SQL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM