DataPump - How to Specify a Query
Print this post
The examples below are based on the following demo schema's:
The Export Data Pump and Import Data Pump examples that are mentioned below are based on the directory my_dir. This directory object needs to refer to an existing directory on the server where the Oracle RDBMS is installed. Example:
-- for Windows platforms: 1. QUERY in Parameter file. Using the QUERY parameter in a parameter file is the preferred method. Put double quotes around the text of the WHERE clause. Example to export the following data with the Export Data Pump client:
File: expdp_q.par 2. QUERY on Command line. The QUERY parameter can also be used on the command line. Again, put double quotes around the text of the WHERE clause. Example to export the following data with the Export Data Pump client:
-- Example Windows platforms: -- Example Windows platforms: The QUERY can also be specified in the Oracle Enterprise Manager Database Console. E.g.:
Similar to previous examples with Export Data Pump, the QUERY parameter can also be used during the import. An example of how to use the QUERY parameter with Import Data Pump: -- In source database: |
No comments:
Post a Comment