Export Your Existing Oracle AI Database to Import into Autonomous AI Database

Use Oracle Data Pump to export your existing Oracle AI Database as the first step to migrate to Autonomous AI Database.

Oracle recommends using Oracle Data Pump schema mode to migrate your database to Autonomous AI Database. You can list the schemas you want to export by using the schemas parameter.

For a faster migration, export your schemas into multiple Data Pump files and use parallelism. You can specify the dump file name format you want to use with the dumpfile parameter. Set the parallel parameter to at least the number of CPUs you have in your database.

You can use other Data Pump Export parameters, such as compression, depending on your requirements. For more information on Oracle Data Pump Export see Oracle AI Database Utilities.

You have two options to export data with Data Pump, depending on the Data Pump version and whether you include the CREDENTIAL parameter:

Export Your Existing Oracle AI Database to a Local Database File (Export without Credential Parameter)

Use Oracle Data Pump to export your existing Oracle AI Database and specify an optional directory object and file name in directory-object-name:file-name format, as the first step to migrate to Autonomous AI Database.

Oracle recommends using the following Data Pump parameters for faster and easier migration to Autonomous AI Database:

exclude=cluster,indextype,db_link
parallel=n
schemas=schema_name
dumpfile=export%l.dmp

The exclude parameters ensure that these object types are not exported.

With encryption_pwd_prompt=yes Oracle Data Pump export prompts for an encryption password to encrypt the dump files.

The following example exports the SH schema from a source Oracle AI Database for migration to a database with 16 CPUs:

expdp sh/sh@orcl \
exclude=cluster,indextype,db_link \
parallel=16 \
schemas=sh \
dumpfile=export%l.dmp \
encryption_pwd_prompt=yes

After you create the dumpfile(s), upload the dumpfile(s) to Cloud Object Storage. For example use DBMS_CLOUD.PUT_OBJECT to upload the dumpfiles.

See PUT_OBJECT Procedure for more information.

Notes for Data Pump parameters:

Export Your Existing Oracle AI Database Directly to Cloud Object Storage (Export with Credential Parameter)

Use Oracle Data Pump to export your existing Oracle AI Database directly to Cloud Object Storage, as the first step to migrate to Autonomous AI Database.

Note: This option is supported for Oracle Data Pump Export 19.9 or later versions.

Oracle recommends using the following Data Pump parameters for faster and easier migration to Autonomous AI Database:

exclude=cluster,indextype,db_link
parallel=n
schemas=schema_name
dumpfile=https://objectstorage.example.com/schema_name.dmp
credential=credential_name

The exclude parameters ensure that these object types are not exported.

The following example exports the SH schema from a source Oracle AI Database for migration to a database with 16 CPUs:

expdp sh/sh@orcl \
exclude=cluster,indextype,db_link \
parallel=16 \
schemas=sh \
dumpfile=https://objectstorage.example.com/%l.dmp \
credential=sales-dept

Notes for Data Pump parameters: