Q
Problem solve Get help with specific problems with your technologies, process and projects.

Importing a trigger from another schema

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?

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.
This was last published in October 2005

Dig Deeper on Oracle database backup and recovery

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close