My Oracle Support Banner

Error ORA-942 From DataPump With NETWORK_LINK And QUERY Parameters Using A Subquery (Doc ID 1090934.1)

Last updated on FEBRUARY 27, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2 [Release 10.1 to 11.2]
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
Information in this document applies to any platform.
***Checked for relevance on 22-FEB-2012***


Symptoms

DataPump with NETWORK_LINK and QUERY parameter fails with error ORA-942.

QUERY Parameter Syntax :

QUERY = [schema.][table_name:] query_clause


This error occurs when QUERY clause has a subquery. The error can occur when using expdp or impdp with the above options.

Example :

#> impdp system/<PASSWORD> parfile=imppar.par


imppar.par :

directory=data_pump_dir
logfile=impdplog.log
network_link=<LINK_NAME>
include=(TABLE:"IN ('<TABLE_NAME>')")
schemas=<SCHEMA_NAME>
remap_schema=(<SCHEMA_NAME>:<SCHEMA_NAME1>)
query=(<SCHEMA_NAME>.<TABLE_NAME>:"WHERE A IN(select a from <SCHEMA_NAME>.<TABLE_NAME1>)")


This fails with :

ORA-31693: Table data object "<SCHEMA_NAME>"."<TABLE_NAME>" failed to load/unload and is being
skipped due to error:
ORA-942: table or view does not exist
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" completed with 1 error(s) at 13:09:28

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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