My Oracle Support Banner

Export/Import DataPump Parameter QUERY - How to Specify a Query (Doc ID 277010.1)

Last updated on FEBRUARY 27, 2020

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.
Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Goal

This document demonstrates how the QUERY parameter can be used with Export Data Pump (expdp) and Import Data Pump (impdp). It also shows where quotes must be used in the WHERE clause.

Incorrect usage of single or double quotes (or a space between the colon and the double quote) for the QUERY parameter can result in parse errors or errors such as:

LRM-00101: unknown parameter name 'empno'
ORA-39001: invalid argument value
ORA-39035: Data filter SUBQUERY has already been specified
ORA-31693: Table data object "SCOTT"."DEPT" failed to load/unload and is being skipped due to error:
ORA-00933: SQL command not properly ended
LRM-00111: no closing quote for value '' 
EXP-19: failed to process parameters, type 'EXP HELP=Y' for help
EXP-0: Export terminated unsuccessfully
ORA-31693: Table data object "SCOTT"."DEPT" failed to load/unload and is being skipped due to error:
ORA-06502: PL/SQL: numeric or value error
ORA-31605: the following was returned from LpxXSLSetTextVar in routine kuxslSetParam:
LPX-314: an internal failure occurred
...
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-31693: Table data object "<SCHEMA_NAME>"."<TABLE_NAME>" failed to load/unload and is being skipped due to error:
ORA-00911: invalid character

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 
1. QUERY in Parameter file.
 2. QUERY on Command line.
 3. QUERY in Oracle Enterprise Manager Database Console.
 4. Import Data Pump parameter QUERY.
 5. Known Issues.
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.