Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good Link from metalink 1 Oracle
  • Rename Tablespace Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Checking SQL Server Version SQL Server
  • Caching sequence in Memory Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • get_vmstat.ksh Linux/Unix
  • set_env_dba Linux/Unix
  • Resolving RMAN Hung Jobs Oracle
  • To see how much time or progress of long transaction Oracle
  • Implementation of key based authentications Linux/Unix
  • Jai Shree Ram Oracle
  • Drop tempfiles from database Oracle
  • Sending email with file attachment. Linux/Unix

find_string_in_database.sql

Posted on 02-Jun-2009 By Admin No Comments on find_string_in_database.sql

set lines 120 pages 2000

accept pvm prompt “Enter The String You Want to Search -> ”

select distinct owner, name, type from dba_source where

instr(upper(text), upper(‘&pvm’)) != 0 ;

set serveroutput on

DECLARE

CURSOR cur_triggers IS

SELECT owner, trigger_name, table_name, trigger_body

FROM dba_triggers;

v_position INTEGER;

BEGIN

DBMS_OUTPUT.ENABLE(NULL);

DBMS_OUTPUT.PUT_LINE(‘OWNER TABLE NAME TRIGGER NAME ‘);

DBMS_OUTPUT.PUT_LINE(‘===================================================================================================’)

;

FOR pvm1 IN cur_triggers LOOP

v_position := INSTR(upper(pvm1.trigger_body), upper(‘&pvm’));

IF v_position > 0 THEN

DBMS_OUTPUT.PUT_LINE(rpad(pvm1.owner,30, ‘ ‘) || ‘ ‘|| rpad(pvm1.table_name, 30, ‘ ‘) || ‘ ‘|| rpad(pvm1.trigger_name,

30, ‘ ‘));

END IF;

END LOOP;

END;

/

Oracle, SQL scripts

Post navigation

Previous Post: How to Make Trace Files Created by Oracle Readable by All Users ?
Next Post: check_copy_progress.sh

Related Posts

  • find_idle_cpu.sql Oracle
  • ext#.sql Oracle
  • ORACLE_SID in sqlplus Oracle
  • Implementing Listener Security Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Very Good Oralce Internal Tuning Book Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (402)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Order by with ROWNUM Oracle
  • Find total file sizes Linux/Unix
  • plan10g.sql good1 Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Updated LCK.SQL file. Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme