oracledata-dictionary

Is there a way to do full text search of all oracle packages and procedures?


I would like to search through all of my procedures packages and functions for a certain phrase.

Since it is possible to retrieve the code for compiled procedures using toad I assume that the full text is stored in some data dictionary table. Does anyone know where that would be?


Solution

  • You can do something like

    SELECT name, line, text
      FROM dba_source
     WHERE upper(text) like upper('%<<your_phrase>>%') escape '\'