Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Restoring a user’s original password 1051962.101 Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • plan10g.sql good1 Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Important Script Method for tuning Oracle
  • Find nth max and min. Oracle
  • alter database backup controlfile to trace Oracle
  • block_ident.sql Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Very Good Oralce Internal Tuning Book Oracle
  • How to start CRS manually Oracle
  • get_vmstat.ksh Linux/Unix
  • proc.sql Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Export Oracle data and Compress at same time 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

  • oracle 11g RAC on vmware Oracle
  • Rman Notes -1 Oracle
  • good note for shared pool tunnig Oracle
  • Jai Shree Ram Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • fkwoind.sql fkwoindex.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • sess_server.sql Oracle
  • Unix command for system configuration Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • How to check current redo log progress redo_progress.sql Oracle
  • Explain Plan Output 2 Oracle
  • Parallel DML Oracle
  • Find All internal Parameters Oracle
  • How to set Processes Parameter Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme