Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Check Oracle installed products using one command Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • To find explain plan for a statement that occurred in past. Oracle
  • Goog notes on X$ tables Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • Convert multiple rows to single column Oracle
  • FGA Part-I Oracle
  • configUOCIOTTO.ora Oracle
  • My Minimum Tuning Programs Oracle
  • .profile Linux/Unix
  • Display the top 5 salaries for each department using single SQL Oracle
  • Oracle 10g for solaris 10 Oracle
  • alter database backup controlfile to trace Oracle
  • Identical Dblink Issue… 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

  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • online_ts_bkup.sql Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Jai Shree Ram Oracle
  • CPU Core related projections AWS
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Database logon trigger issue Oracle
  • Library cahe Latches and internal explaination Oracle
  • PLSQL Table Syntax 2 Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Composite Index creation tip from Vivek Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • CPU speed on Linux Linux/Unix
  • plan10g.sql good Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme