Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Issues Importing Data from Oracle 19c to Oracle 18c XE Using Data Pump (ORA-39002)

I am facing issues when trying to import data from an Oracle 19c SE (on Windows Server 2016) to an Oracle 18c XE (on Oracle Linux 8.10) using Oracle Data Pump.

Problem Details:

Export: I use the following expdp command to generate the dump file in Oracle 19c:

expdp system/password@BDPROD directory=dp_prod dumpfile=backup.dmp logfile=backup.log full=y version=18.0

Importing Metadata: I use the following impdp command to create the structure in Oracle 18c XE:

impdp system/password@pdb directory=dp_dir dumpfile=backup.dmp logfile=impbackup.log sqlfile=ddl.sql
The structure is created successfully.

I try to import only the data with the following impdp command:

impdp system/password@pdb schemas=esquema1 directory=dp_dir dumpfile=backup.dmp logfile=impbackup.log remap_tablespace=USERS:TBS content=DATA_ONLY

Errors Observed: When executing the import command, I encounter the following error:

ORA-39002: invalid operation

Troubleshooting Attempts:

  1. Verified that the timezones between the source and destination databases are consistent (+00:00).
  2. Generated and reviewed the dump file contents using the sqlfile parameter to ensure it contains the expected structure and data.
  3. Verified that the system user permissions and roles are correct (IMP_FULL_DATABASE and DBA).

Requesting Assistance For:

  1. Diagnosing the cause of the ORA-39002 error when importing data with impdp.
  2. Ensuring that the parameters and configurations used in expdp and impdp are correct for this migration scenario.
  3. Any additional recommendations to successfully complete the data import from Oracle 19c Standard Edition to Oracle 18c Express Edition.

Thank you for your help.

Comments
Post Details
Added on Jul 5 2024
5 comments
323 views