By
Published: 19 Oct 2005
I'm facing a problem. Some of the triggers are deleted from one schema, so I want to import a trigger from another schema. Is it possible in Oracle? Please help me.
If you are using Oracle 9i or 10g, then you can go to the source schema and reverse engineer the DDL to re-create the trigger. Simply issue the following query in SQL*Plus in the source schema:
SELECT DBMS_METADATA.GET_DDL('TRIGGER','TRIG_NAME','OWNER') FROM dual;
You will have to supply the trigger name and the trigger owner. The output from this command can be saved to a text file and used to re-create the trigger.
Dig Deeper on Oracle database backup and recovery
Oracle expert Brian Peasland answers one reader's question about common pitfalls when connecting Oracle to outside programs.
Continue Reading
One reader asks expert Brian Peasland a question about datafile sizes with the Oracle RMAN duplicate 10g command.
Continue Reading
Managing parent table-child table relations in Oracle SQL environments is key to efficient programming.
Continue Reading