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 AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: to - Release: 10.1 to 11.2
Information in this document applies to any platform.
***Checked for relevance on 22-FEB-2012***


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 :

include=(TABLE:"IN ('TE')")
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


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

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