Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • logminer and my_lbu Oracle
  • New OFA for 11g Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • Specify the Rollback segment to use in Transaction Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Finding locked objects Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Goldengate document from Porus Oracle
  • Rman Notes -1 Oracle
  • sql_doing_fts.sql 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

  • plan10g.sql good Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • ext#.sql Oracle
  • oracle Dba site Oracle
  • USER_TABLES.Freelists Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • get_vmstat_solaris Oracle
  • Jai Shree Ram Linux/Unix
  • cif crons Linux/Unix
  • Checking SQL Server Version SQL Server
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • online_ts_bkup.sql Oracle
  • Another Tuning Article for subheap of shared pool Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme