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

When to use the WHERE parameter with the Oracle export utility

Expert Brian Peasland explains how to use the WHERE parameter with the Oracle export utility to take an Oracle backup of data from the last 15 days.

How can we complete an export backup of the previous 15 days' data? Is it possible by any backup mechanism?
The Oracle export utility is not "time aware," so it cannot do what you are asking by default. Just about the only way to accomplish this task with the export utility is to add a column to your tables which contains a date when the row was inserted or updated. You can then use the WHERE parameter of the exp utility to export where this column is less than 15 days old, similar to the following:

exp file=mydump.dmp owner=scott where='date_modified < sysdate-15'

This was last published in August 2009

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close