Manage Learn to apply best practices and optimize your operations.

How to disable Oracle constraints and triggers during an import in 10g

An Oracle user asks expert Brian Peasland if constraints and triggers can be disabled on an Oracle import in Oracle 10g and how to complete this task.

I am using Oracle 10g and importing a dump file to a new schema created in another machine.

Can I disable the constraints and triggers while importing? What are the commands to disable the constraints and...

triggers? How do I enable them after the import process?

You cannot disable the constraints and triggers on import. What you can do is to not import the constraints or not import the triggers. This can be accomplished with the CONSTRAINTS=N and TRIGGERS=N parameters for the import utility. If you use these parameters, you will manually have to add the constraints and triggers later.
This was last published in October 2008

Dig Deeper on Oracle database administration

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.