Searching for Text within Oracle Stored Procedures

前端 未结 3 1706
無奈伤痛
無奈伤痛 2021-01-31 15:51

I need to search through all of the stored procedures in an Oracle database using TOAD. I am looking for anywhere that the developers used MAX + 1 instead of the NEXTVAL on the

相关标签:
3条回答
  • 2021-01-31 16:02
     SELECT * FROM ALL_source WHERE UPPER(text) LIKE '%BLAH%'
    

    EDIT Adding additional info:

     SELECT * FROM DBA_source WHERE UPPER(text) LIKE '%BLAH%'
    

    The difference is dba_source will have the text of all stored objects. All_source will have the text of all stored objects accessible by the user performing the query. Oracle Database Reference 11g Release 2 (11.2)

    Another difference is that you may not have access to dba_source.

    0 讨论(0)
  • 2021-01-31 16:15

    I allways use UPPER(text) like UPPER('%blah%')

    0 讨论(0)
  • 2021-01-31 16:24

    If you use UPPER(text), the like '%lah%' will always return zero results. Use '%LAH%'.

    0 讨论(0)
提交回复
热议问题