SELECT * FROM all_source -- or user_source or dba_source WHERE upper(text) LIKE upper('%My Text%') ORDER BY owner, name, type, line;