How can you tell if a PL/SQL Package, Procedure, or Function is being used? Is there an Oracle table or view that contains statistics on PL/SQL Package, Procedure, or Function usage?
相关问题
- Can I skip certificate verification oracle utl_htt
- Can I skip certificate verification oracle utl_htt
- how to calculate sum time with data type char in o
- keeping one connection to DB or opening closing pe
- System.Data.OracleClient not working with 64 bit O
相关文章
- node连接远程oracle报错
- oracle 11g expdp导出作业调用失败,提示丢包。
- 执行一复杂的SQL语句效率高,还是执行多少简单的语句效率高
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- Difference between FOR UPDATE OF and FOR UPDATE
- McNemar's test in Python and comparison of cla
- Is there an API to get statictics on Google Play d
- Oracle USING clause best practice
You can use Editors like Toad. They will directly list both the objects on which your procedure is dependent and objects which reference your procedure.
Not by default. But you can use the audit functionality of your Oracle database. At Ask Tom is a long thread about the auditing of procedure calls!
You might also find the pl/sql instrumentation package ILO useful for what you're trying to do.
You can also try querying USER/ALL_source:
or
You'll have to ignore self references, but that should be easy to spot.
You'll also need to check "view" source from user/all_views. See the other question about querying view source though.
you can also check if a package or top level function/procedure is used with
NB: switch user_ with all_/dba_ as needed
if you are specifically looking for uncalled functions then another option is to compiler your code with WARNINGS turned on and then look for PLW-06002 and LPW-06006
You can see if an object has any dependencies by querying the DBA_DEPENDENCIES table.
This query will return any dependencies in code stored inside the Oracle instance itself.
It will not reveal whether or not any object is called outside of the instance.
If you're on Oracle 11 (R2?), I'd give
PL/Scope
a chance.The docu states: PL/Scope is a compiler-driven tool that collects data about identifiers in PL/SQL source code at program-unit compilation time and makes it available in static data dictionary views. The collected data includes information about identifier types, usages (declaration, definition, reference, call, assignment) and the location of each usage in the source code.
PL/Scope enables the development of powerful and effective PL/Scope source code browsers that increase PL/SQL developer productivity by minimizing time spent browsing and understanding source code.
You can find more about it at http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_plscope.htm#g1010526