FIND WORDS IN DATABASE

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
Carlos Sérgio
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Tue, 27 Dec 2005 10:16 am
Location: SÃO PAULO

Good morning people !

I need to locate a certain word within objects of an Oracle database. Could anyone help me about it, please?

Thanks to all,

Carlos Sergio
Carlosergio631@yahoo.com.br
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

You can search for all_source

See this SELECT:

Select all

select * 
from all_source 
where upper(text) like '%SELECT%'
is searching for all rows that has the word SELECT at the base.
Carlos Sérgio
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Tue, 27 Dec 2005 10:16 am
Location: SÃO PAULO

Thank you very much brother! Thanks for the tip !

A hug!

Carlos
Carlos Sérgio
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Tue, 27 Dec 2005 10:16 am
Location: SÃO PAULO

For me to locate a word within oracle b.dado objects, the command worked perfectly. However in Trigger's it was not found. Will I have to hold other commands to track trigger's codes? Could you answer me, please?
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

At all_source has the triggers as well.
See example:

Select all

SQL> select DISTINCT TYPE 
  2  from user_source 
  3  / 
 
TYPE 
------------ 
FUNCTION 
PACKAGE 
PACKAGE BODY 
PROCEDURE 
TRIGGER 
 
SQL>  
Remember that all_source shows everything you have privileges to look at your user ... If you want to look all over the bank, you must do SELECT on DBA_SOURCE. (Obviously, you need a DBA privilege to access these tables)

: -O
Carlos Sérgio
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Tue, 27 Dec 2005 10:16 am
Location: SÃO PAULO

Thanks Brother ....

Valeu!

A great and happy New Year!
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests