Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Giving Grant on v$DATABASE Oracle
  • Find Command Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • Updated LCK.SQL file. Oracle
  • plan10g.sql Oracle
  • Good notes on Oracle Events Oracle
  • Create type and Grant on it. Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • find_longsql.sql Oracle
  • Sequence Resetting Oracle
  • Configure ssh authentications for RAC Oracle
  • Implementing Listener Security 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

  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • oracle fast start failover best practice Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • Ports used by Oracle Software Oracle
  • Resolving RMAN Hung Jobs 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Import and export statements Oracle
  • SQL_PROFILE – I explaination Oracle
  • create database link syntax Oracle
  • oracle Dba site Oracle
  • cache buffer chain latch Oracle
  • arch_configUOCIOTTO.ora Oracle
  • Find total file sizes Linux/Unix
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme