allow group <group_name> to use object-family in compartment <compartment-name>
allow any-user to read buckets in compartment <compartment-name> where ALL {request.principal.type = 'disworkspace', request.principal.id = '<workspace_ocid>', request.operation = 'GetBucket'}
allow any-user to manage objects in compartment <compartment-name> where ALL {request.principal.type = 'disworkspace', request.principal.id = '<workspace_ocid>'}
To use Oracle Autonomous Data Warehouse or Oracle Autonomous Transaction Processing as a target:
Copy
allow any-user to manage buckets in compartment <compartment-name> where ALL {request.principal.type = 'disworkspace', request.principal.id = '<workspace_ocid>', request.permission = 'PAR_MANAGE'}
Access to an Autonomous Data Warehouse database, including credentials and the wallet file. See Download a Wallet.
The user name and password to establish connection while creating a new data asset. You create the user name and password in this tutorial.
1. Creating the Source Data Asset 🔗
For the purposes of this tutorial, Oracle Cloud Infrastructure Object Storage serves as the source
data asset.
To create a data asset for Oracle Cloud Infrastructure Object Storage:
On the workspace Home page, click Create data asset on the Design tile.
On the Select Data asset type panel, with All selected under Connector Type, click the OCI Object Storage icon.
If you don't see OCI Object Storage, enter obj in the search field.
On the Create data asset page, complete the fields in the General information section:
For Name, enter Data_Lake without any spaces. You can use alphanumeric characters, hyphens, periods, and underscores only.
For Description, enter a description about the data asset.
The Type menu shows OCI Object Storage selected.
The Tenancy OCID and Namespace fields are automatically filled for you.
Note
This procedure assumes that the workspace and Object Storage resources are within the same tenancy.
The namespace value is based on the tenancy OCID value. If the Namespace field isn't automatically filled, you can enter the tenancy name.
For OCI region, select the region for the Object Storage resource, or start typing a name to filter the list and then select a region from the filtered list.
Important
The Object Storage data source that you set up as a Source or Target data asset in Data Integration is identified using the region ID, namespace, and bucket name. You don't encounter issues if the Source and Target data assets have different region IDs, different namespaces, and different bucket names. If the Source and Target have the same bucket name but different region IDs and namespaces, or if they have the same namespace but different region IDs and different bucket names, then also you won't encounter any issues. However, if only the Source and Target data asset region ID is different and the namespace and bucket name are the same, the Data Integration tasks would fail.
Ignore the Enable policies to use data asset information box, if you have already added the required policies. Otherwise, click Show more information to view the details of the policy name and policy statements required to use the Object Storage data asset. Add or copy the policies, specifying the group name and compartment in the statements.
In the Default connection information section, enter a name and description (optional).
(Optional) Click Test connection.
A successful test isn't required to create the data asset.
Click Create.
2. Preparing the Target Database 🔗
To complete all the tutorials in this series, configure the target autonomous database to add a schema and a table.
To prepare the target autonomous database with the BETA schema:
In the Oracle Cloud InfrastructureConsole navigation menu, go to Oracle Database, and then click Autonomous Data Warehouse.
Select the compartment that has the autonomous database you're going to use.
From the list of autonomous databases, select the database.
On the database details page, click Database Actions.
When prompted, log in with the administrator credentials for the autonomous database.
Under Development, click SQL.
To create the BETA user, enter and then run the following script in the SQL worksheet:
Copy
create user BETA identified by "<example-password>";
grant DWROLE to BETA;
alter user BETA quota 200M on data;
Note
Ensure that you enter a password in place of <example-password>.
Run the following SQL statements to create the CUSTOMERS_TARGET table.
In the Navigator tab on the left side, switch to the BETA schema to verify that the table was created successfully.
You might have to log out and then log in again.
Log out of the SQL page.
3. Creating the Target Data Asset 🔗
Navigate back to Data Integration to create the target data asset.
To create a data asset for the target:
In the Oracle Cloud InfrastructureConsole navigation menu, go to Analytics & AI, then click Data Integration.
Click Workspaces.
Navigate to the compartment where you created the workspace, and select the workspace.
On the workspace Home page, click Create data asset from the Quick actions tile.
You can also click Open tab (plus icon) in the tab bar and select Data assets. Then on the Data assets page, click Create data asset.
On the Create data asset page, for General information, set the
following:
Name:Data_Warehouse (You can use alphanumeric characters,
hyphens, periods, and underscores only).
Identifier: A generated identifier based on the value you enter for Name. You can change the generated value, but after you save the data asset, you aren't allowed to update the identifier.
Description: Optional
Type: Oracle Autonomous Data Warehouse
Upload wallet and Wallet file: Drop or browse to select the wallet file. See Download a Wallet.
In the Default connection information section, enter or select the
following:
Name: Default connection (Optionally, you can rename the
connection)
Description: Optional (For example, Connect with BETA
user)
Username: BETA
Password: The password you created for BETA
TNS alias: The database service to use
In the Default staging location section, enter or select the
following:
Object Storage data asset: The Object Storage data asset that has
the bucket you want to use as the default staging location
Connection: The connection
Compartment: The compartment
Bucket: The bucket name
(Optional) Click Test connection.
A successful test isn't required to create the data asset.