Oracle: search though all saved procs / triggers / other db code?

Is it possible to search all program objects (functions, stored procedures, triggers, etc.) by several schemes in Oracle?

There are several tables in my code that are not used in my code, but I do not want to break anything by deleting them without checking first.

+5
source share
4 answers

You can search by object codes - usually you use the DBMS_METADATA package to generate DDL for the object, and then to search for the CLOB. However, this is not like what you want to do.

, - , DBA_DEPENDENCIES ( ALL_DEPENDENCIES USER_DEPENDENCIES , ). -

SELECT *
  FROM dba_dependencies
 WHERE referenced_owner = 'SCOTT'
   AND referenced_name  = 'EMP'
   AND referenced_type  = 'TABLE'

, EMP SCOTT.

, , DBA_DEPENDENCIES, , , SQL, . .

+9

DBA_SOURCE:

SELECT *
  FROM dba_source
 WHERE UPPER(text) LIKE '%YOUR_TABLE_NAME%';
+2

Toad, :

= >

+1

Toad, . ( ) Toad search

0

All Articles