In this Document
APPLIES TO:Enterprise Manager for Oracle Database - Version 10.1.0.2 and laterOracle Database Backup Service - Version N/A and later Oracle Database Cloud Service - Version N/A and later Oracle Database - Standard Edition - Version 10.1.0.2 and later Oracle Database Exadata Cloud Machine - Version N/A and later Information in this document applies to any platform. PURPOSEThis article describes issues related to the compatibility of the different versions of the Oracle Export Data Pump and Import Data Pump utilities. SCOPEThe article is intended for users of the Oracle10g and Oracle11g databases who wish to use Export Data Pump (expdp) and Import Data Pump (impdp) to export data from an Oracle database release x and import this data into an Oracle database release y. The article gives information how to create an Export Data Pump dumpfile that can be imported into a higher or lower release database, and how the compatibility applies when Data Pump is used over a database link.
DETAILS1. SummaryThe following are the most important guidelines regarding Data Pump compatibility: 1. The compatibility level of the Data Pump dumpfile set is determined by the compatibility level of the source database. Overview of Data Pump dumpfile compatibility. Export Use Export Data Pump parameter VERSION=...
From if dumpfile needs to be imported into a Source Target Database with compatibility level Database (value of init.ora/spfile parameter COMPATIBLE): With COMPATIBLE 10.1.0.x.y 10.2.0.x.y 11.1.0.x.y 11.2.0.x.y 12.1.0.x.y 12.2.0.x.y 18.x.y.z 19.x.y.z ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 10.1.0.x.y - - - - - - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 10.2.0.x.y VERSION=10.1 - - - - - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 11.1.0.x.y VERSION=10.1 VERSION=10.2 - - - - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 11.2.0.x.y VERSION=10.1 VERSION=10.2 VERSION=11.1 - - - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 12.1.0.x.y VERSION=10.1 VERSION=10.2 VERSION=11.1 VERSION=11.2 - - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 12.2.0.x.y VERSION=10.1 VERSION=10.2 VERSION=11.1 VERSION=11.2 VERSION=12.1 - - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 18.x.y.z VERSION=10.1 VERSION=10.2 VERSION=11.1 VERSION=11.2 VERSION=12.1 VERSION=12.2 - - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ 19.x.y.z VERSION=10.1 VERSION=10.2 VERSION=11.1 VERSION=11.2 VERSION=12.1 VERSION=12.2 VERSION=18.x - ---------- ------------- ------------- ------------- ------------- ------------- ------------- ------------ ------------ Overview of Data Pump client/server compatibility. Data Pump client compatibility.
=============================== expdp and Connecting to Database version impdp client 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c version 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 10.1.0.x supported supported supported supported no no no no 10.2.0.x no supported supported supported supported no no no 11.1.0.x no supported supported supported supported no no no 11.2.0.x no no no supported supported supported supported supported 12.1.0.x no no no no supported supported supported supported 12.2.0.x no no no no no supported supported supported 18.x.y.z no no no no no supported supported supported 19.x.y.z no no no no no no no supported For details about generic interoperability between Oracle client and server versions, see also: Overview of Data Pump dumpfile set file versions. Data Pump file version.
======================= Version Written by Can be imported into Target: Data Pump database with 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c Dumpfile Set compatibility 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ------------ --------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 0.1 10.1.x supported supported supported supported supported supported supported supported 1.1 10.2.x no supported supported supported supported supported supported supported 2.1 11.1.x no no supported supported supported supported supported supported 3.1 11.2.x no no no supported supported supported supported supported 4.1 12.1.x no no no no supported supported supported supported 5.1 12.2.x no no no no no supported supported supported 5.1 18.x.y no no no no no no supported supported 5.1 19.x.y no no no no no no no supported Overview of Data Pump client/feature compatibility. Data Pump New Features.
======================= Version New Feature Remark: --------- --------------------------------- ---------------------------------------------- 10.1.0.1 Data Pump Technology Introduction of high-speed data movement. --------- 10.2.0.1 COMPRESSION Compress metadata in export dumpfile. 10.2.0.1 ENCRYPTION_PASSWORD Allows encrypted column data in dumpfile. 10.2.0.1 SAMPLE Specify a percentage of data to be unloaded. 10.2.0.1 TRANSFORM Change DDL for OID's and space allocation. 10.2.0.1 VERSION Create file compatible with earlier release. --------- 11.1.0.1 COMPRESSION Both data and metadata can be compressed. 11.1.0.1 DATA_OPTIONS (expdp) Specify handling of XMLType columns. 11.1.0.1 DATA_OPTIONS (impdp) Specify handling of constraint violations. 11.1.0.1 ENCRYPTION Both data and metadata can be encrypted. 11.1.0.1 ENCRYPTION_ALGORITHM Specify a specific encryption algorithm. 11.1.0.1 ENCRYPTION_MODE Specify the type of security to be used. 11.1.0.1 PARTITION_OPTIONS Specify how to handle partitioned tables. 11.1.0.1 REMAP_DATA Change column values based on a function. 11.1.0.1 REMAP_TABLE Rename tables during an import operation. 11.1.0.1 REUSE_DUMPFILES Option to overwrite existing dumpfiles. 11.1.0.1 TRANSPORTABLE Transfer table data by copying datafiles. --------- 11.2.0.1 Legacy mode: accept exp and imp parameters. 11.2.0.1 ABORT_STEP Stop job after initializing to query master. 11.2.0.1 ACCESS_METHOD Specify a particular method to (un)load data. 11.2.0.1 CLUSTER Control whether workers use all RAC instances. 11.2.0.1 DATA_OPTIONS (impdp) Specify to disable the APPEND hint. 11.2.0.1 KEEP_MASTER Specify whether to retain master table. 11.2.0.1 MASTER_ONLY Only import the master table. 11.2.0.1 METRICS Report additional information in logfile. 11.2.0.1 SERVICE_NAME Use with CLUSTER to specify a service name. 11.2.0.1 SOURCE_EDITION (expdp) Specify the edition from which to exp objects. 11.2.0.1 TABLES Now specify tables in multiple schemas. 11.2.0.1 TABLES Now specify % for multiple tables and part. 11.2.0.1 TARGET_EDITION (impdp) Specify the edition from which to exp objects. 11.2.0.2 Default first segment now 8M for part. table. 11.2.0.2 TRANSFORM Specify how to handle SEGMENT CREATION. --------- 12.1.0.1 Support for CDB and Pluggable db's (PDB). 12.1.0.1 COMPRESSION_ALGORITHM Specify the algorithm when compressing data. 12.1.0.1 ENCRYPTION_PWD_PROMPT Specify whether Data to prompt for password. 12.1.0.1 FULL Can now be used together with TRANSPORTABLE. 12.1.0.1 LOGTIME Provide timestamp for messages in the logfile. 12.1.0.1 TRANSFORM Specify to disable logging during import. 12.1.0.1 TRANSFORM Specify to change the LOB storing on import. 12.1.0.1 TRANSFORM Specify to change table compression type. 12.1.0.1 VIEWS_AS_TABLES Export views as tables. --------- 12.2.0.1 12.2.0.1 REMAP_DIRECTORY Let you remap directories when you move databases between platforms. 12.2.0.1 TRUST_EXISTING_TABLE_PARTITIONS Enable data from multiple partitions to be loaded in parallel into a pre-existing table. This is a flag on Data Pump Import DATA_OPTIONS 12.2.0.1 VALIDATE_TABLE_DATA Verify the format number and date data types in table data columns. This is a flag on Data Pump Import DATA_OPTIONS 12.2.0.1 ENABLE_NETWORK_COMPRESSION Tell Data Pump to compress data before sending it over the network. This is a flag on DATA_OPTIONS parameter. 12.2.0.1 GROUP_PARTITION_TABLE_DATA Enable data for all partitions to be loaded at once and in parallel. This is a flag on the Data Pump Export DATA_OPTIONS parameter. 12.2.0.1 VERIFY_STREAM_FORMAT Validate the format of a data stream before it is written to the Data Pump dump file. This is a flag on the Data Pump Export DATA_OPTIONS parameter. --------- 18.1.X.X CONTINUE_LOAD_ON_FORMAT_ERROR This is a new value for the DATA_OPTIONS parameter for impdp. When it is set, Data Pump jumps ahead and continue loading from the next granule when an inconsistency is found. --------- 19c Use Document 2457955.1 19c DataPump New Features are described in this document. 2. Introduction2.1. Data Pump.
col value for a20
col description for a49 select * from database_compatible_level; col value clear col description clear -- Sample output: VALUE DESCRIPTION -------------------- ------------------------------------------------- 12.1.0.0.0 Database will be completely compatible with this software version -- or: show parameter compatible NAME TYPE VALUE --------------------- ----------- ------------- compatible string 12.1.0.0.0 When checking for compatibility, Data Pump examins the major database release number and the database maintenance release number (i.e.: 11.1 in the example output above).
SELECT * FROM v$version;
BANNER CON_ID ----------------------------------------------------------------------------- ---------- Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production 0 PL/SQL Release 12.1.0.1.0 - Production 0 CORE 12.1.0.1.0 Production 0 TNS for Linux: Version 12.1.0.1.0 - Production 0 NLSRTL Version 12.1.0.1.0 - Production 0 -- And for the Data Pump clients: %expdp HELP=Y Export: Release 12.1.0.1.0 - Production on Wed May 28 09:58:07 2014 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. ... (other output) and: %impdp HELP=Y Import: Release 12.1.0.1.0 - Production on Wed May 28 09:59:53 2014 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. ... (other output) For details, see also:
SET serveroutput on SIZE 1000000
exec show_dumpfile_info(p_dir=> 'my_dir', p_file=> 'expdp_f.dmp') ---------------------------------------------------------------------------- Purpose..: Obtain details about export dumpfile. Version: 18-DEC-2013 Required.: RDBMS version: 10.2.0.1.0 or higher . Export dumpfile version: 7.3.4.0.0 or higher . Export Data Pump dumpfile version: 10.1.0.1.0 or higher Usage....: execute show_dumfile_info('DIRECTORY', 'DUMPFILE'); Example..: exec show_dumfile_info('MY_DIR', 'expdp_s.dmp') ---------------------------------------------------------------------------- Filename.: ftest.dmp Directory: dpdir Disk Path: <DIRECTORY_PATH>/expdp Filetype.: 1 (Export Data Pump dumpfile) ---------------------------------------------------------------------------- ...Database Job Version..........: 12.02.00.00.00 ...Internal Dump File Version....: 5.1 ...Creation Date.................: Tue Jun 06 11:04:57 2017 ...File Number (in dump file set): 1 ...Master Present in dump file...: 1 (Yes) ...Master in how many dump files.: 1 ...Master Piece Number in file...: 1 ...Operating System of source db.: x86_64/Linux 2.4.xx ...Instance Name of source db....: db4 ...Characterset ID of source db..: 873 (AL32UTF8) ...Language Name of characterset.: AL32UTF8 ...Job Name......................: "<SCHEMA_NAME>"."SYS_EXPORT_FULL_01" ...GUID (unique job identifier)..: 51470FA2BE241FE4E0539395400A4A02 ...Block size dump file (bytes)..: 4096 ...Metadata Compressed...........: 1 (Yes) ...Data Compressed...............: 0 (No) ...Compression Algorithm.........: 3 (Basic) ...Metadata Encrypted............: 0 (No) ...Table Data Encrypted..........: 0 (No) ...Column Data Encrypted.........: 0 (No) ...Encryption Mode...............: 2 (None) ...Internal Flag Values..........: 514 ...Max Items Code (Info Items)...: 23 ---------------------------------------------------------------------------- PL/SQL procedure successfully completed. In the example above, the dumpfile set has the compatibility level 12.2 (12.02.00.00.00) and is using a file version format 5.1. This dumpfile set can only be imported into a database with the same or a higher compatibility level. 3. Basic Data Pump Compatibility3.1. Data Pump dumpfile file version versus Data Pump job version.
Note that the version of Data Pump dumpfile set is used internally to keep track of Data Pump specific features that result in a change of the internal structure of the dumpfile. With the VERSION parameter you can specify the Data Pump job version and indirectly control the version of the dumpfile set. E.g.: if you specify VERSION=11.2 then Data Pump will create a dumpfile set that can be imported into an Oracle11g Release 2 database (dumpfile version: 3.1). When specified, you also determine which version of the objects will be exported. Database objects or attributes that are incompatible with the specified version will not be exported. During the initial stage of an Import Data Pump job, the header block of each file in the dumpfile set is examined. We compare the value of the dumpfile version to the server's current file_version to make sure that the version of the dumpfile is equal to or less than that of the server.
An overview of the Data Pump dumpfile versions: Version Written by Can be imported into Target:
Data Pump database with 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c Dumpfile Set compatibility 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ------------ --------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 0.1 10.1.x supported supported supported supported supported supported supported supported 1.1 10.2.x no supported supported supported supported supported supported supported 2.1 11.1.x no no supported supported supported supported supported supported 3.1 11.2.x no no no supported supported supported supported supported 4.1 12.1.x no no no no supported supported supported supported 5.1 12.2.x no no no no no supported supported supported 5.1 18.x.y no no no no no no supported supported 5.1 19.x.y no no no no no no no supported Remark:
Data Pump versus original export/import clients:
1. Export dumpfiles created with the Export Data Pump client (expdp) can only be read by the Import Data Pump client (impdp). 2. Export dumpfiles created with the original Export client (exp) cannot be read by the Import Data Pump (impdp) client. For details about the compatibility of the original export and import clients (exp resp. imp), see: 4. Export Data Pump Compatibility4.1. Export Data Pump Compatibility Details. Export Data Pump compatibility:
1. The compatibility level of the Data Pump dumpfile set is determined by the compatibility level of the source database. 2. When exporting data, use the same version Export Data Pump client as the version of the source database (up to one major version lower expdp client is possible, but this is not recommended). 3. If the dumpfile needs to be imported into a lower version target database, use the Export Data Pump parameter VERSION to match the compatibility level of the target database. Client/server compatibility: Export Data Connecting to Source Database:
Pump client 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c version 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 10.1.0.x supported supported supported supported no no no no 10.2.0.x no supported supported supported supported no no no 11.1.0.x no no supported supported supported supported no no 11.2.0.x no no no supported supported supported supported supported 12.1.0.x no no no no supported supported supported supported 12.2.0.x no no no no no supported supported supoprted 18.x.y.z no no no no no supported supported supported 19.x.y.z no no no no no no no supported Remarks:
2. Connecting with a higher version Export Data Pump client (e.g. 11.2.0.4.0) to a lower version source database (e.g. 10.2.0.4.0) is not supported. Attempting to run such a job, will fail with UDE-18 (Data Pump client is incompatible with database version 11.2.0.4.0).
3. In a downgrade scenario, perform the Export Data Pump job with the same version Export Data Pump client as the version of the source database (recommended), and specify the VERSION parameter which is set to the lower compatibility level of the target database.
4. If the source database is a read-only database, then an Export Data Pump job that is started on that database will fail because Data Pump cannot create its so-called Master table. To workaround this, consider the read-only source database as a remote database and start the export Data Pump job on a different local database which has a database link to the remote read-only source database. Specify the NETWORK_LINK parameter when connecting with the Export Data Pump client to that different local database. The data from the remote read-only source database instance is transferred over the database link and written to a dump file set on the connected (local) database instance. See also section 4.3. "Export Data Pump NETWORK_LINK compatibility." below.
Syntax Export Data Pump parameter: VERSION
VERSION={COMPATIBLE | LATEST | version_string} COMPATIBLE = The version of the metadata corresponds to the database compatibility level. Database compatibility must be set to 9.2 or higher. This is the default value. LATEST = The version of the metadata corresponds to the database release version. version_string = A specific database version (e.g.: 11.1.0). Remarks: 2. The maximum value of 'version_string' that can be specified is equal to the release version of the source database. Note that this would be similar to specifying: VERSION=LATEST 3. If you specify a VERSION for an Export Data Pump job that is older than the current database version, certain Export Data Pump features may be unavailable. For example, specifying VERSION=10.1 will cause an error if data compression is also specified for the job (e.g.: COMPRESSION=all), because compression was not supported in 10.1. See also section 8.6. "ORA-39055 (The AAA feature is not supported in version xx.yy.zz)" below. 4. If you specify a VERSION for an Export Data Pump job that is older than the source database version, then a dumpfile set is created that you can import into that older version target database. However, this dumpfile set will not contain any objects that the older specified version does not support. For example, if you export from a version 10.2 database in order to import into a version 10.1 database (i.e. by specifying VERSION=10.1), comments on indextypes will not be exported into the dumpfile set. 5. For an overview of the new database features introduced, see:
Example:
Export Data Pump NETWORK_LINK compatibility:
1. The compatibility level of the Data Pump dumpfile set is determined by the compatibility level of the (remote) source database or the (local) connected database, whichever is the lowest. 2. When exporting data, use the same version Export Data Pump client as the version of the (local) connected database (up to one major version lower expdp client can be used, but this is not recommended). 3. The compatibility level of the (remote) source database can differ from the (local) connected database. 4. If the dumpfile needs to be imported into a lower version target database, use the Export Data Pump parameter VERSION to match the compatibility level of the target database. Remarks: 2. Exporting data over a database link that connects to a remote source database with a lower compatibility level is supported.
3. Exporting data over a database link that connects to a remote source database with a higher compatibility level is also supported.
4. When you perform an export over a database link, the data from the remote source database instance is written to dump files on the connected local database instance. The remote source database can be a read-only database. 5. Export Data Pump supports the following types of database links: public, fixed-user, and connected-user. Current-user database links are not supported. 6. If an export operation is performed over an unencrypted network link, then all data is transferred over the database link without any encryption, even if the data was encrypted in the remote source database. Restrictions: 2. Tables with object_type columns are not supported in an Export Data Pump job with NETWORK_LINK parameter. An ORA-22804 error will be generated and the export will move on to the next table. See also section 8.12. "ORA-22804 (remote operations not permitted on object tables or user-defined type columns)" below. 3. When both the NETWORK_LINK and the TABLES parameters are used, then only whole tables can be exported (not partitions of tables). Trying to export a partition of a table over a database link will fail with ORA-39203 (Partition selection is not supported over a network link) or in older releases with ORA-14100 (partition extended table name cannot refer to a remote object). See also section 8.13. "ORA-39203 (Partition selection is not supported over a network link)" below. 5. Import Data Pump Compatibility5.1. Import Data Pump Compatibility Details. Import Data Pump compatibility:
1. When importing data, use the same version Import Data Pump client as the version of the target database (up to one major version lower impdp client is possible, but this is not recommended). 2. Import Data Pump can always read Export Data Pump dumpfile sets created by older versions of the database. 3. Import Data Pump cannot import dumpfile sets if the compatibility level of the dumpfile set is higher than the the compatibility level of the target database. Client/server compatibility: Import Data Connecting to Target Database:
Pump client 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c version 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 10.1.0.x supported supported supported supported no no no no 10.2.0.x no supported supported supported supported no no no 11.1.0.x no no supported supported supported supported no no 11.2.0.x no no no supported supported supported supported supported 12.1.0.x no no no no supported supported supported supported 12.2.0.x no no no no no supported supported supported 18.x.y.z no no no no no supported supported supported 19.x.y.z no no no no no no no supported Remarks:
2. Connecting with a higher version Import Data Pump client (e.g. 11.1.0.6.0) to a lower version target database (e.g. 10.2.0.3.0) is not supported. Attempting to run such a job, will fail with UDI-18 (Data Pump client is incompatible with database version 10.2.0.4.0).
3. Import Data Pump can always import from Export Data Pump dumpfile sets created by older versions of the database. I.e.: an export Data Pump dumpfile set created on 10.1.0.2.0 can be imported into any higher release database. 4. Import Data Pump cannot import dumpfile sets with a higher compatibility level than the target database. I.e.: an export Data Pump dumpfile created with VERSION=COMPATIBLE (default) from a 11.1.0.6.0 source database with COMPATIBLE=11.1.0 can never be imported into a 10.2.0.4.0 target database.
An overview of the Data Pump dumpfile versions: Version Written by Can be imported into Target:
Data Pump database with 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2 18c 19c Dumpfile Set compatibility 10.1.0.x 10.2.0.x 11.1.0.x 11.2.0.x 12.1.0.x 12.2.0.x 18.x.y.z 19.x.y.z ------------ --------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 0.1 10.1.x supported supported supported supported supported supported supported supported 1.1 10.2.x no supported supported supported supported supported supported supported 2.1 11.1.x no no supported supported supported supported supported supported 3.1 11.2.x no no no supported supported supported supported supported 4.1 12.1.x no no no no supported supported supported supported 5.1 12.2.x no no no no no supported supported supported 5.1 18.x.y no no no no no no supported supported 5.1 19.x.y no no no no no no no supported
Syntax Import Data Pump parameter: VERSION
VERSION={COMPATIBLE | LATEST | version_string} COMPATIBLE = The version of the metadata corresponds to the database compatibility level. Database compatibility must be set to 9.2 or higher. This is the default value. LATEST = The version of the metadata corresponds to the database release version. version_string = A specific database version (e.g.: 11.1.0). Remarks: 2. The minimum value of 'version_string' that can be specified is: 9.2.
Import Data Pump NETWORK_LINK compatibility:
1. The compatibility level of the imported objects is determined by the compatibility level of the (remote) source database or the (local) target database, whichever is the lowest. 2. When importing data, use the same version Import Data Pump client as the version of the (local) target database (up to one major version lower impdp client can be used, but this is not recommended). 3. The compatibility level of the (remote) source database can differ from the (local) target database. 4. Use the Import Data Pump parameter VERSION if a lower version of the objects need to be exported and imported. Remarks: 2. Importing data over a database link that connects to a remote source database with a lower compatibility level is supported.
3. Importing data over a database link that connects to a remote source database with a higher compatibility level is also supported.
4. If the USERID that is executing the Import Data Pump job has the IMP_FULL_DATABASE role on the local target database, then that user must also have the EXP_FULL_DATABASE role on the remote source database. 5. If the remote source database is read-only, then the connected user must have a locally managed tablespace assigned as the default temporary tablespace on the remote source database. Otherwise, the job will fail. 6. Import Data Pump supports the following types of database links: public, fixed-user, and connected-user. Current-user database links are not supported. 7. If an import operation is performed over an unencrypted network link, then all data is transferred over the database link without any encryption, even if the data was encrypted in the remote source database. Restrictions: 2. Tables with evolved object_type columns are not supported in an Import Data Pump job with NETWORK_LINK and TABLE_EXISTS_ACTION parameters (i.e.: in case those tables and types already exist in the target database). An ORA-22804 error will be generated and the import will move on to the next table. See also section 8.12. "ORA-22804 (remote operations not permitted on object tables or user-defined type columns)" below. 3. When both the NETWORK_LINK and the TABLES parameters are used, then only whole tables can be imported (not partitions of tables). Trying to import a partition of a table over a database link will fail with ORA-39203 (Partition selection is not supported over a network link) or in older releases with ORA-14100 (partition extended table name cannot refer to a remote object). The only exception to this is if TRANSPORTABLE=ALWAYS is also specified, in which case single or multiple partitions of a specified table can be imported. See also section 8.13. "ORA-39203 (Partition selection is not supported over a network link)" below. 6. Database Migration with a Full Database Data Pump Export/Import6.1. Upgrade Method with Data Pump.
For details about the latest patchsets and an overview of known issues, see also:
Migration with Data Pump to 10gR2 (10.2.0.x.0) if source is:
============================================================ Oracle10g Release 1: 10.1.0.2.0 (10.1.0.5.0 recommended) Note that we also recommend that the latest patchset is installed on the target database. For the 10.2.0.3.0 patchset see: Patch:5337014 and for the 10.2.0.4.0 patchset see: Patch:6810189.
Migration with Data Pump to 11gR1 (11.1.0.x.0) if source is:
============================================================ Oracle10g Release 1: 10.1.0.2.0 (10.1.0.5.0 recommended) Oracle10g Release 2: 10.2.0.1.0 (10.2.0.4.0 recommended) 7. Examples
7.1. Import data into a target database with a higher compatibility level. Sample configuration 1:
Source database: 10.1.0.5.0 with COMPATIBLE=10.1.0 Target database: 10.2.0.4.0 with COMPATIBLE=10.2.0 Solution:
-- Step 1: export from 10.1.0.5 source database
-- with 10.1.0.5 Export Data Pump client: % expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> -- Step 2: transfer dumpfile to target server -- Step 3: import into 10.2.0.4 target database -- with 10.2.0.4 Import Data Pump client: % impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Remarks: 2. Note that an alternative solution would be to create a database link (e.g.: my_dblink) from the 10.2.0.4.0 target database to the 10.1.0.5.0 source database and start the export job using the 10.2.0.4.0 Export Data Pump client that connects to the 10.2.0.4.0 target database with NETWORK_LINK=my_dblink VERSION=10.1 parameters (the VERSION parameter is not required here as it defaults to 10.1 (lowest compatible version)). The dumpfile will be written on the server where the target database is located, and can be imported with the 10.2.0.4.0 Import Data Pump client that connects to the 10.2.0.4.0 target database. Example: -- Step 1: create database link on local 10.2.0.4 target
-- database that connects to remote 10.1.0.5 source database: CONNECT <LOGIN>/<PASSWORD> CREATE DATABASE LINK my_dblink CONNECT TO <USER_NAME> IDENTIFIED BY <PASSWORD> USING '<HOST_NAME>'; -- Step 2: export with 10.2.0.4 Export Data Pump client -- from 10.1.0.5 source database over database link: % expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink -- Step 3: import into 10.2.0.4 target database -- with 10.2.0.4 Import Data Pump client: % impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> 3. It is also possible to import without any dumpfile set: create a database link (e.g.: my_dblink) from the 10.2.0.4.0 target database to the 10.1.0.5.0 source database and start the import job using the 10.2.0.4.0 Import Data Pump client that connects to the 10.2.0.4.0 target database with NETWORK_LINK=my_dblink VERSION=10.1 parameters (the VERSION parameter is not required here as it defaults to 10.1 (lowest compatible version)). The data will be imported directly into the 10.2.0.4.0 target database. Example: -- Step 1: create database link on local 10.2.0.4 target
-- database that connects to remote 10.1.0.5 source database: CONNECT <LOGIN>/<PASSWORD> CREATE DATABASE LINK my_dblink CONNECT TO <USERNAME> IDENTIFIED BY <PASSWORD> USING '<HOSTNAME>'; -- Step 2: import with 10.2.0.4 Import Data Pump client -- from 10.1.0.5 source database over database link: % impdp <LOGIN>/<PASSWORD> LOGFILE=my_dir:impdp_s.log \ SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink
Sample configuration 2:
Source database: 11.1.0.6.0 with COMPATIBLE=11.1.0 Target database: 10.2.0.4.0 with COMPATIBLE=10.2.0 Solution:
-- Step 1: export from 11.1.0.6 source database
-- with 11.1.0.6 Export Data Pump client and specify VERSION: % expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> VERSION=10.2 -- Step 2: transfer dumpfile to target server -- Step 3: import into 10.2.0.4 target database -- with 10.2.0.4 Import Data Pump client: % impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Remarks: 2. Note that an alternative solution would be to create a database link (e.g.: my_dblink) from the 10.2.0.4.0 target database to the 11.1.0.6.0 source database and start the export job using the 10.2.0.4.0 Export Data Pump client that connects to the 10.2.0.4.0 target database with NETWORK_LINK=my_dblink VERSION=10.2 parameters. The VERSION parameter is required here to workaround two defects; see also section 8.9. "ORA-39022 (Database version xx.yy.zz is not supported)" below. The dumpfile will be written on the server where the target database is located, and can be imported with the 10.2.0.4.0 Import Data Pump client that connects to the 10.2.0.4.0 target database. See previous section for a detailed example of the statements. 3. It is also possible to import without any dumpfile set: create a database link (e.g.: my_dblink) from the 10.2.0.4.0 target database to the 11.1.0.6.0 source database and start the import job using the 10.2.0.4.0 Import Data Pump client that connects to the 10.2.0.4.0 target database with NETWORK_LINK=my_dblink VERSION=10.2 parameters. The VERSION parameter is required here to workaround two defects; see also section 8.9. "ORA-39022 (Database version xx.yy.zz is not supported)" below. The data will be imported directly into the 10.2.0.4.0 target database. See previous section for a detailed example of the statements. 4. Note that due to several defects, a Data Pump job with NETWORK_LINK parameter will fail if the remote source database has a higher compatibility level. These defects are fixed in 10.2.0.3.0 and higher, and as a result of that, it is only possible to transfer data over a database link that connects to a remote source database with a higher compatibility level if the release version of the local database is 10.2.0.3.0 or higher. In addition the VERSION parameter has to be specified to workaround two of these defects. See also section 8.9. "ORA-39022 (Database version xx.yy.zz is not supported)." below.
Sample configuration 3:
Source database: 10.2.0.4.0 with COMPATIBLE=10.2.0 which is READ-ONLY Target database: 10.1.0.5.0 with COMPATIBLE=10.1.0 Local database : 11.1.0.6.0 with COMPATIBLE=11.1.0 Solution:
-- Step 1: create database link on local 11.1.0.6 database
-- that connects to remote 10.2.0.4 read-only source database: CONNECT <LOGIN>/<PASSWORD> CREATE DATABASE LINK my_dblink CONNECT TO <USERNAME> IDENTIFIED BY <PASSWORD> USING '<HOSTNAME>'; -- Step 2: export with 11.1.0.6 Export Data Pump client -- from 10.2.0.4 read-only source database over database link: % expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink \ VERSION=10.1 -- Step 3: transfer dumpfile to target server -- Step 4: import into 10.1.0.5 target database -- with 10.1.0.5 Import Data Pump client: % impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Remarks: 2. Note that it is not possible to start the export job by connecting directly to the 10.2.0.4.0 source database as we cannot create the internal Data Pump master table for this job because the source database is read-only. 3. Also note that a Data Pump job with NETWORK_LINK and VERSION=10.1.0 that is started on the 10.1.0.5.0 target database is not possible as the remote read-only source database has a higher compatibility level (10.2.0) and Bug 5115034 "NETWORK INTEROPERABILITY WON'T WORK FOR VERSIONS MORE THAN A MINOR RELEASE APART" (not a public bug) is not fixed in 10.1.0.5. 8. Possible Error Messages8.1. UDE-18 (Data Pump client is incompatible with database version xx.yy). %expdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir \
DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 14:46:22 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options UDE-00018: Export utility version can not be more recent than the Data Pump server. or: %expdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir \ DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> Export: Release 11.1.0.6.0 - Production on Tuesday, 26 February, 2008 14:49:43 Copyright (c) 2003, 2007, Oracle. All rights reserved. UDE-00018: Data Pump client is incompatible with database version 10.2.0.3.0 Cause: An attempt was made to connect with a higher version Export Data Pump client (e.g. 11.1.0.6.0) to a lower version database (e.g. 10.2.0.3.0), where the Export Data Pump client used Oracle Net to connect to the lower version database. This is not supported. 8.2. UDI-18 (Data Pump client is incompatible with database version xx.yy). %impdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir \
DUMPFILE=expdp_s.dmp LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Import: Release 11.1.0.6.0 - Production on Tuesday, 26 February, 2008 14:56:16 Copyright (c) 2003, 2007, Oracle. All rights reserved. UDI-00018: Data Pump client is incompatible with database version 10.2.0.3.0 Cause: An attempt was made to connect with a higher version Import Data Pump client (e.g. 11.1.0.6.0) to a lower version database (e.g. 10.2.0.3.0), where the Import Data Pump client used Oracle Net to connect to the lower version database. This is not supported. 8.3. ORA-39142 (Incompatible version number xx.yy in dump file "zzz"). %impdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Import: Release 10.1.0.2.0 - Production on Tuesday, 26 February, 2008 15:02:16 Copyright (c) 2003, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-31619: invalid dump file "/expdp/expdp_s.dmp" or: %impdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \ LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Import: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 15:07:27 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-39142: incompatible version number 2.1 in dump file "/expdp/expdp_s.dmp" Cause: An attempt was made to import an Export Data Pump dumpfile into a lower version target database (e.g. 10.2.0.3.0) while the export dumpfile was created from a higher version source database (e.g. 11.1.0.6.0) which had a higher compatibility level (e.g. COMPATIBLE=11.1.0), and the Export Data Pump job was down without the VERSION parameter. 8.4. ORA-39083 (Object type PROCACT_SCHEMA failed to create with error). %impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Import: Release 11.1.0.6.0 - Production on Tuesday, 26 February, 2008 15:09:24 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Master table "<LOGIN_SCHEMA>"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "<LOGIN_SCHEMA>"."SYS_IMPORT_FULL_01": <LOGIN>/******** DIRECTORY=my_dir DUMPFILE=expdp_s.dmp LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA ORA-39083: Object type PROCACT_SCHEMA failed to create with error: ORA-06550: line 2, column 1: PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_BEG' must be declared ORA-06550: line 2, column 1: PL/SQL: Statement ignored ORA-06550: line 3, column 1: PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_LOOP' must be declared ORA-06550: line 3, column 1: PL/SQL: Statement ignored ORA-06550: line 7, column 1: PLS-00201: identifier 'DBMS_CUBE_EXP.SCHEMA_INFO_IMP_END' must be declared ORA-06550: line 7, c Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA ... Cause: An attempt was made to import an Export Data Pump dumpfile back into an 11.1.0.6.0 database, but the 11gR1 source database had COMPATIBLE=11.1.0 and the 11gR2 target database had the COMPATIBLE=10.2.0 8.5. ORA-39023 (Version xx.yy.zz is not supported). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> VERSION=11.1.0 Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 15:11:09 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options ORA-39001: invalid argument value ORA-39023: Version 11.1.0 is not supported. Cause: An attempt was made to specify a dumpfile set version (e.g. VERSION=11.1.0) and this value was higher than the compatible level of the source database (e.g.: 10.2.0.3.0). Note that a similar error would be reported, if the version that is specified is too low (lower than 9.2.0). 8.6. ORA-39055 (The AAA feature is not supported in version xx.yy.zz). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink \ COMPRESSION=all Export: Release 11.1.0.6.0 - Production on Tuesday, 26 February, 2008 15:26:43 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-39005: inconsistent arguments ORA-39055: The COMPRESSION feature is not supported in version 10.1.0.5.0. Cause: An attempt was made to specify an Export Data Pump parameter (COMPRESSION=all) that was not supported in the earlier version of the dumpfile set (e.g.: an Export Data Pump job with NETWORK_LINK is started on a local 11.1.0.6 database and the database link connects to a remote 10.1.0.5.0 source database). 8.7. LRM-101 (unknown parameter name 'aaa'). %expdp <LOGIN>/<PASSWORD>@<SERVICE_NAME> DIRECTORY=my_dir \
DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> COMPRESSION=all LRM-00101: unknown parameter name 'COMPRESSION' or: LRM-00121: 'all' is not an allowable value for 'COMPRESSION' Cause: An attempt was made to specify an Export Data Pump parameter or parameter value that is not known be that specific Data Pump client release. E.g.: the value 'all' for parameter COMPRESSION was introduced in Oracle11g and is not known by a 10.2.0.3.0 Export Data Pump client. 8.8. ORA-39143 (dump file xxx may be an original export dump file). %impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=exp_s.dmp \
LOGFILE=impdp_s.log SCHEMAS=<SCHEMA_NAME> Import: Release 11.1.0.6.0 - Production on Tuesday, 26 February, 2008 15:33:48 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-39143: dump file "D:\exp_s.dmp" may be an original export dump file Cause: An attempt was made to use the Import Data Pump client (impdp) to import a dumpfile that was created with the original Export client (exp). 8.9. ORA-39022 (Database version xx.yy.zz is not supported). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink -- when expdp/impdp is connected to a local 10.1.0.x database ... ORA-39006: internal error ORA-39022: Database version 11.1.0.6.0 is not supported. -- when expdp/impdp is connected to a local 10.2.0.1 database ... ORA-39001: invalid argument value ORA-39169: Local version of 10.2.0.1.0 cannot work with remote version of 11.1.0.6.0. -- when expdp/impdp is connected to a local 10.2.0.3 database ... ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('<SCHEMA>',1,1,'11.01.00.00.00',newblock) ORA-37118: The OLAP API library was not preloaded. ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205 ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280 ORA-06512: at line 1 ORA-06512: at "SYS.DBMS_METADATA", line 5980 ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB [TABLE_STATISTICS] ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275 ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: at "SYS.KUPW$WORKER", line 6234 ... -- when expdp/impdp is connected to a local 10.2.0.4.0 database ... ORA-39126: Worker unexpected fatal error in KUPW$WORKER.MAIN [INSERT INTO sys.ku$_list_filter_temp@my_dblink1 SELECT process_order, duplicate, object_name, base_process_order FROM "<LOGIN_SCHEMA>"."SYS_EXPORT_SCHEMA_01" WHERE process_order = :1] ORA-00947: not enough values ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPW$WORKER", line 6345 ... Cause: An attempt was made to export data over a database link that connects to a database with a higher compatibility level (e.g.: an Export Data Pump job with NETWORK_LINK is started on a local 10.x database and the database link connects to a remote 11.x source database). If the local connecting database is 10.2.0.4 or below, then the Data Pump job may fail due to several defects: 8.10. ORA-39139 (Data Pump does not support XMLSchema objects. TABLE_DATA:"aaa"."bbb" will be skipped). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 16:12:21 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options FLASHBACK automatically enabled to preserve database integrity. Starting "<LOGIN_SCHEMA>"."SYS_EXPORT_SCHEMA_01": <LOGIN>/******** DIRECTORY=my_dir DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA ORA-39139: Data Pump does not support XMLSchema objects. TABLE_DATA:"OE"."PURCHASEORDER" will be skipped. Total estimation using BLOCKS method: 4.937 MB ... Cause: An attempt was made to export a table with an XMLSchema object. This is not supported in Oracle10g Release 2 and below. 8.11. ORA-31679 (Table data object "aaa"."bbb" has long columns, and longs can not be loaded/unloaded using a network link). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 16:14:11 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Starting "<LOGIN_SCHEMA>"."SYS_EXPORT_TABLE_01": <LOGIN>/******** DIRECTORY=my_dir DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink ... ORA-31679: Table data object "<SCHEMA_NAME>"."MYTAB" has long columns, and longs can not be loaded/unloaded using a network link ... or: ORA-31693: Table data object "<SCHEMA_NAME>"."MYTAB" failed to load/unload and is being skipped due to error: ORA-00997: illegal use of LONG datatype Cause: An attempt was made to export a table with a LONG column over a database link. This is not supported as you cannot create a table while selecting from a different table which has a LONG column. Reference: 8.12. ORA-22804 (remote operations not permitted on object tables or user-defined type columns). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 16:37:42 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options FLASHBACK automatically enabled to preserve database integrity. Starting "<LOGIN_SCHEMA>"."SYS_EXPORT_FULL_01": <LOGIN>/******** DIRECTORY=my_dir DUMPFILE=expdp_s.dmp LOGFILE=expdp_s.log SCHEMAS=<SCHEMA_NAME> NETWORK_LINK=my_dblink ... ORA-31693: Table data object "<SCHEMA_NAME>"."MGMT_JOB_CRED_PARAMS" failed to load/unload and is being skipped due to error: ORA-22804: remote operations not permitted on object tables or user- defined type columns ... Cause: An attempt was made to export a table (SYSMAN.MGMT_JOB_CRED_PARAMS) with an object type column (SYSMAN.MGMT_JOB_VECTOR_PARAMS) over a database link. This is not supported: you cannot access a table that contains a user defined type across a database link. Reference: 8.13. ORA-39203 (Partition selection is not supported over a network link). %expdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=expdp_s.log TABLES=<SCHEMA_NAME>.<TABLE_NAME>:<PARTITION_NAME> NETWORK_LINK=my_dblink Export: Release 10.2.0.3.0 - Production on Tuesday, 26 February, 2008 17:44:26 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options ORA-39001: invalid argument value ORA-39203: Partition selection is not supported over a network link. Cause: An attempt was made to export a specific partition of a table over a database link. This is not supported as only whole tables can be exported (not partitions of tables). Note that in older releases a different error can be reported: ORA-14100 (partition extended table name cannot refer to a remote object). This also explains the main reason why partition names cannot be specified for the TABLES parameter when used in conjunction with the NETWORK_LINK parameter: ORA-14100 will be reported for a select statement like: SELECT * FROM tc.ptab@my_dblink PARTITION (p1);
8.14. ORA-904 (invalid identifier ORIGINAL_OBJECT_NAME) %impdp <LOGIN>/<PASSWORD> DIRECTORY=my_dir DUMPFILE=expdp_s.dmp \
LOGFILE=imdp_s.log SCHEMAS=<SCHEMA> Import: Release 11.1.0.6.0 - Production on Mittwoch, 28 November, 2008 8:47:41 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 11g Release 11.1.0.6.0 - Production ORA-39002: invalid operation ORA-31694: master table "<LOGIN_SCHEMA>"."SYS_IMPORT_SCHEMA_01" failed to load/unload ORA-02354: error in exporting/importing data ORA-02373: Error parsing insert statement for table "<LOGIN_SCHEMA>"."SYS_IMPORT_SCHEMA_01". ORA-00904: "ORIGINAL_OBJECT_NAME": invalid identifier Cause: An attempt was made to import a Data Pump dumpfile that was created from an 11.1.0.7.0 source database into an 11.1.0.6.0 target database. Reference of defect: bash-4.1$ impdp <LOGIN>/<PASSWORD> directory=dpdir dumpfile=tc.dmp full=yes
Import: Release 12.2.0.1.0 - Production on Tue Jul 31 02:14:25 2018 Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production ORA-39002: invalid operation ORA-39358: Export dump file version 18.1.0 not compatible with target version 12.2.0.0 Cause: An attempt was made to import a Data Pump dumpfile that was created from an 18.1.0.0.0 source database into an 12.2.0 target database. 9. Known Defects9.1. Bug 5115034 - ORA-39022 or ORA-39169 when exporting higher release over NETWORK_LINK 9.2. Bug 6630677 - IMPDP may skip table if export was done with NETWORK_LINK 9.3. Bug 6749942 - ORA-942 when exporting 10.2.0.3 with 11.1.0.6.0 expdp client over NETWORK_LINK ...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE ORA-39126: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS [PROCACT_SCHEMA] TABLE:"<SCHEMA>"."LOGSTDBY$APPLY_PROGRESS" ORA-00942: table or view does not exist ORA-02063: preceding line from MY_DBLINK ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: at "SYS.KUPW$WORKER", line 7715 ----- PL/SQL Call Stack ----- object line object handle number name 2877E134 18051 package body SYS.KUPW$WORKER 2877E134 7736 package body SYS.KUPW$WORKER 2877E134 6945 package body SYS.KUPW$WORKER 2877E134 2519 package body SYS.KUPW$WORKER 2877E134 8342 package body SYS.KUPW$WORKER 2877E134 1477 package body SYS.KUPW$WORKER 286B2130 2 anonymous block Job "<LOGIN_SCHEMA>"."SYS_EXPORT_FULL_01" stopped due to fatal error at 13:52:15 - Defect: Bug:6749942 "ATTEMPTING TO EXPORT 10.2.0.3 DATABASE FAILS WHEN USING 11.1.0.6 DATA PUMP" 9.4. Bug 7489698 - Schema Export with 10.2.0.4.0 expdp client from 10.2.0.3.0 or lower source fails @ 10. For Support: Enhancement Requests.
Additional ResourcesCommunity: Database Utilities REFERENCESNOTE:291024.1 - Compatibility and New Features when Transporting Tablespaces with Export and Import BUG:6788714 - IS DATA PUMP EXPORT CERTIFIED TO BE BACKWARD COMPATIBLE ? BUG:6936831 - 10.2.0.4 DATA PUMP WITH NETWORK_LINK TO ORACLE11G FAILS WITH ORA-947 BUG:7489698 - EXPDP 10204 CAN'T EXPORT FROM 10203 DB WITHOUT USING FULL=Y NOTE:2457955.1 - 19c DataPump New Features NOTE:454507.1 - ALERT: Oracle 11g Release 1 (11.1) Support Status and Alerts BUG:6630677 - IMPDP SKIPS TABLE EXPORTED JUST BEFORE TABLE WITH LONG COLUMN USING NETWORK_LINK NOTE:2249901.1 - Data Pump: Oracle Database 12c Release 2 (12.2) New Features NOTE:132904.1 - Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] NOTE:207303.1 - Client / Server Interoperability Support Matrix for Different Oracle Versions BUG:7590679 - 11.1.0.6 IMPDP OF A 11.1.0.7 DUMP FAILS WITH ORA-904 ORIGINAL_OBJECT_NAME NOTE:752374.1 - 11.1.0.6 DataPump Import Of An 11.1.0.7 Dump Fails With Error ORA-904 ORIGINAL_OBJECT_NAME NOTE:30699.1 - Init.ora Parameter "COMPATIBLE" Reference Note NOTE:341733.1 - Export/Import DataPump Parameters INCLUDE and EXCLUDE - How to Load and Unload Specific Objects NOTE:462488.1 - How to Gather the Header Information and the Content of an Export Dumpfile ? BUG:6749942 - ATTEMPTING TO EXPORT 10.2.0.3 DATABASE FAILS WHEN USING 11.1.0.6 DATA PUMP NOTE:2422236.1 - Alert - Regression in DataPump After Applying 12.1.0.2.180417DBBP or Higher BUG:5714205 - DATAPUMP IS NOT UPWARD COMPATIBLE TO EXP NOTE:351598.1 - Export/Import DataPump: The Minimum Requirements to Use Export DataPump and Import DataPump (System Privileges) NOTE:175627.1 - How to Find the Database and Export/Import Version NOTE:316900.1 - ALERT: Oracle 10g Release 2 (10.2) Support Status and Alerts NOTE:39691.1 - VERSION NUMBER - Oracle version numbers explained NOTE:263719.1 - ALERT: Oracle 10g Release 1 (10.1) Support Status and Alerts |