Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • move_arch_files.ksh Linux/Unix
  • Oracle Material from OTN Oracle
  • Changing default shell Linux/Unix
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Oracle 11g Environment Setup Oracle
  • Find_planinfo.sql Oracle
  • plan10g.sql Oracle
  • SAN Linux/Unix
  • UNderstand and eliminate Latch contention. Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Processes Parameter decision Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • Important Solaris Commands Linux/Unix

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

  • USER_TABLES.Freelists Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Create type and Grant on it. Oracle
  • SQL_PROFILE – I explaination Oracle
  • Wait Based Tuning Step by step with SQL statement 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to sort list of files on basis of their sizes. Linux/Unix
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • kill all processes from specific user in solaris. Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • sqlnet.ora paramters Oracle
  • How to calculate PROCESSES parameter Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme