Importing Data using Oracle Data Pump
You can import data from Data Pump files into your on-premises or cloud database.
With Oracle Data Pump Import, you can load an export dump file set into a target database, or load a target database directly from a source database with no intervening files.
For more information about Data Pump import, see Data Pump Import in Oracle Database Utilities.
Topics:
Requirements
You need to set up a resource prinicipal to access the Oracle Cloud Infrastructure Storage Object:
-
Log in as the ADMIN user in Database Actions and enable resource principal for the Autonomous Database:
In the SQL worksheet page, enter:
EXEC DBMS_CLOUD_ADMIN.ENABLE_RESOURCE_PRINCIPAL();
-
Obtain the resource.id.
In the Oracle Cloud Infrastructure console, select Oracle Database and then select Autonomous Databases. In the Database tab, click the Actions icon (three dots) and select Copy OCID. This is applicable for all database instances in all the compartments.
-
Create a dynamic group.
-
In the Oracle Cloud Infrastructure console, click Identity and Security and click Dynamic Groups.
-
Click Create Dynamic Group and enter all the required fields. Create matching rules using the following format for all your databases:
any { resource.id = ' here goes the OCID of your database 1', resource.id =' here goes the OCID of your database 2' }
Note:
For managing dynamic groups, you must have one of the following privileges:- You are a member of the Administrators group.
- You are granted the Identity Domain Administrator role or the Security Administrator role.
- You are a member of a group that is granted manage identity-domains or manage dynamic-groups.
-
-
Create a new policy.
The ObjectStorageReadersPolicy allows users in the ObjectStorageReaders group to download objects from any Object Storage bucket in the tenancy. You can also narrow the scope to a specific compartment. The policy includes permissions to list the buckets, list objects in the buckets, and read existing objects in a bucket.
-
In the Oracle Cloud Infrastructure console, click Identity, and then click Policies.
-
Click Create Policy.
-
For the policy name, enter ObjectStorageReadersPolicy.
-
For the description, enter Allow ObjectStorageReaders group to read objects and buckets.
-
From the Compartment list, select your root compartment.
-
Add the following policy statement, which allows ObjectStorageReaders to read buckets:
Allow dynamic-group ObjectStorageReaders to read buckets in tenancy
-
Add a second policy statement that allows ObjectStorageReaders to read objects in a bucket:
Allow dynamic-group ObjectStorageReaders to read objects in tenancy
-
Click Create.
-