Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Clean up Oracle
  • Sending email with file attachment. Linux/Unix
  • Temporary tablespace explaination Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Jai Shree Ram Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Oracle Metalink useful notes Oracle
  • TRUNCATE Privs Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • ORA-01220 Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • v$backup.status information 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

  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Multiple listeners Oracle
  • Key Management in Oracle: The Core Issue: Missing Master Key Oracle
  • ext#.sql Oracle
  • Oracle Connections expire_time and firewall Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • S3 Basic info AWS
  • sql_plan9i.sql Oracle
  • Generating XML from SQLPLUS Oracle
  • Alter procedure auditing Oracle
  • Oracle Data Direct to TAPE Oracle
  • sql_doing_fts.sql Oracle
  • Important Solaris Commands Linux/Unix
  • move_arch_files.ksh /* Good One */ Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme