Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_METADATA to extract triggers
Don,
Do each of your defined trigger's DDLs end with a forward slash? That's what's needed to create a trigger, since it's a PL/SQL block.
Do you have a sample or 2 of triggers that didn't get created?
What Oracle version?
It's been working fine for me, although my setup is a bit different. I extract each object into a separate file via dbms_metadata. Here's the settings I use:
SET ECHO off FEEDBACK off HEADING off LINESIZE 2047 LONGCHUNKSIZE 2047
SET LONG 200000 PAGESIZE 0 SCAN off
SET SQLBLANKLINES on TAB off TRIMSPOOL on
COLUMN stmt WORD_WRAPPED
ALTER SESSION SET CURSOR_SHARING=FORCE;
EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM
(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
Dave
If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system.
Thank You.
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Jan 03 2006 - 21:59:35 CST
![]() |
![]() |