Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Unix command for system configuration Linux/Unix
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Set Role explaination. Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • move_arch_files.ksh Linux/Unix
  • DB Console Mainenance. Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • restarting network in linux Linux/Unix
  • Oracle 10g Wait Model Oracle
  • find_pdbs.sql Uncategorized
  • JSON/XML Types in Oracle Oracle
  • CPU speed on Linux Linux/Unix
  • find the files that are 1 day old. Linux/Unix

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

  • refre.sql Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Good links for x$ tables in oracle. Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • plan10g.sql good1 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find sort details from Db find_sort.sql Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Privilege to describe the table. Oracle
  • Jai Shree Ram Oracle
  • Handling LOB data in Oracle Oracle
  • chk_space_SID.ksh Linux/Unix
  • perf_today.sql Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme