If required, download the dump files from Cloud Object Store and use Oracle Data Pump Import to import the dump file set to the target database. Then perform any required clean up.
- Download the dump files from Cloud Object Store.
This step is not needed if you are importing the data to an Autonomous Data Warehouse database, to an Autonomous Transaction Processing database, or to Autonomous JSON Database.
If you export directly to Object Store using Oracle Data Pump, as shown in Move Data with Data Pump Export to Object Store, then the dump files on Object Store show size 0. Oracle Data Pump divides each dump file part into smaller chunks for faster uploads. The Oracle Cloud Infrastructure Object Storage console shows multiple files for each dump file part that you export. The size of the actual dump files will be displayed as zero (0) and its related file chunks as 10mb or less. For example:
exp01.dmp exp01.dmp_aaaaaa exp02.dmp exp02.dmp_aaaaaa
Downloading the zero byte dump file from the Oracle Cloud Infrastructure console or using the Oracle Cloud Infrastructure CLI will not give you the full dump files. To download the full dump files from the Object Store, use a tool that supports Swift such as curl, and provide your user login and Swift auth token.
curl -O -v -X GET -u 'email@example.com:auth_token' \ https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/namespace-string/bucketname/exp01.dmp
The cURL command does not support wildcards or substitution characters in its URL. You need to use multiple cURL commands to download the dump file set from your Object Store. Alternatively, you can use a script that supports substitution characters to download all the dump files from your Object Store in a single command. See How To: Download all files from an export to object store job in Autonomous Database using cURL for an example.
- Run Data Pump Import to import the dump file set to the target database.
If you are importing the data to another Autonomous Database, see Import Data Using Oracle Data Pump on Autonomous Database.
- Perform post import clean up tasks. If you are done importing the dump files to your target database then drop the bucket containing the data or remove the dump files from the Cloud Object Store bucket, and remove the dump files from the location where you downloaded the dump files to run Data Pump Import.
For detailed information on Oracle Data Pump Import parameters see Oracle Database Utilities.