Error ORA-942 From DataPump With NETWORK_LINK And QUERY Parameters Using A Subquery

(Doc ID 1090934.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.2 - Release: 10.1 to 11.2
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/system parfile=imppar.par

imppar.par :

directory=data_pump_dir
logfile=impdplog.log
network_link=IMPTEST
include=(TABLE:"IN ('TE')")
schemas=ASH
remap_schema=(ASH:ASH1)
query=(ASH.TE:"WHERE A IN(select a from ASH.TEL)")

This fails with :

ORA-31693: Table data object "ASH1"."TE" 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

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms