Q

How to export data by date in Oracle

Is there a way to export data by date?

Is there a way to export data by date? For example, I only want to export data for July 29th 2007 -- is there a way to do this?

You can use the QUERY parameter to help you. The QUERY parameter is a WHERE clause appended to the SELECT statement...

which pulls data out of all tables being exported. So if multiple tables are being exported, the WHERE clause will be applied to each table in the export dump. For example, consider the following:

exp userid=scott/tiger file=my_dump.dmp 
tables=dept,emp query='WHERE deptno=10'

In the above example, only those rows where DEPTNO=10 will be exported from the EMP and DEPT tables.

For more information on the exp utility, have a look at the Oracle docs where these parameters are described in more detail.

This was last published in August 2007

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

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close