Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • VIvek Encryption Package and Its Usage Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • To see how much time or progress of long transaction Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • configUOCIOTTO.ora Oracle
  • alter database backup controlfile to trace Oracle
  • All About oracle password and security from metalink Oracle
  • Very clear article about oracle dataguard Oracle
  • Renaming Oracle Instance Name Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Find sort details from Db find_sort.sql Oracle
  • Find Stale DR Physical Standby Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Goog notes on X$ tables Oracle

crtgr.sql /* For creating trigger from data dictionary */

Posted on 02-Aug-2005 By Admin No Comments on crtgr.sql /* For creating trigger from data dictionary */

SET LONG 1000000

UNDEFINE trigger_name

SET PAGES 0

SET FEEDBACK OFF

SET LINES 132

set echo off

set numwidth 9

Set head off

set verify off

set time off

set timing off

COLUMN text FORMAT A302 word_wrapped

COLUMN spool_name NEW_VALUE spool_name NOPRINT

SELECT lower(trigger_name||’.ctr’) spool_name

FROM dba_triggers

WHERE trigger_NAME = UPPER(‘&&trigger_name’);

SPOOL &spool_name

select ‘CREATE OR REPLACE TRIGGER ‘

||DESCRIPTION

from dba_triggers

where trigger_NAME = UPPER(‘&&trigger_name’);

set lines 95

SELECT trigger_body text

FROM DBA_TRIGGERS

WHERE TRIGGER_NAME = UPPER(‘&&trigger_name’);

PROMPT /

SPOOL OFF

SET PAGES 80

SET FEEDBACK 1

set LINES 132

set echo on

Set head on

set feedback 1

set verify on

set time on

set timing on

Oracle, SQL scripts

Post navigation

Previous Post: eplan9i.sql
Next Post: Wait time tuning research

Related Posts

  • Oracle 10g for solaris 10 Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Index Range Scan Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • dbms_job.submit example Oracle
  • Ports used by Oracle Software 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
  • good note for shared pool tunnig Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • FGA Part-I Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme