Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • on IBM-AIX for display Linux/Unix
  • Formatter Explain plan Output 1 Oracle
  • Important Script Method for tuning Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • New OFA for 11g Oracle
  • Removing first line Linux/Unix
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Temporary tablespace explaination Oracle
  • create database syntax Oracle
  • All About oracle password and security from metalink Oracle
  • Important Solaris Commands Linux/Unix
  • Good Doc 28-JUN-2006 Oracle
  • ipcs -l Linux/Unix
  • Mutating Table Error while using database trigger Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle

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 Plan Hash value fphv.sql Oracle
  • Wait time tuning research Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • Find Stale DR Physical Standby Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • metalink all dynamic view reference notes. 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • 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
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • ORA-01220 Oracle
  • Complete Git Tutorial for Beginners GIT
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Backup and Recovery Scenarios Oracle
  • Good links for x$ tables in oracle. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme