This example shows you how to load data from Amazon S3 object storage to Autonomous Database.
You have various options to perform data loading into Autonomous Database, such as:
Using UI options: You can use the
Data Studio Load tool user interface to create credentials for the
cloud store location, select files containing data, and run data
load jobs.
All these methods use the
same PL/SQL package DBMS_CLOUD for loading data.
However, Data Studio provides additional benefits over SQL commands.
It not only helps to analyze the source and create table definitions
but also performs validation checks.
You require AWS access credentials for user account authentication and
an object URL for accessing the object in Amazon S3
bucket.
To load
data from an Amazon S3 bucket:
Create credentials for AWS user account in the Autonomous Database.
Copy data from the Amazon S3 bucket
to the database.
Run these steps to load data from Amazon S3 to Autonomous Database.
Store the AWS access credentials in your Autonomous Database and specify a credential name. This enables the
database to authenticate with your AWS user account and access the items in the
S3 bucket.
SET DEFINE OFF
BEGIN
DBMS_CLOUD.CREATE_CREDENTIAL(
credential_name => 'AWS_CRED_NAME',
username => 'username',
password => 'password'
);
END;
/
Note
Here, the
username is your AWS Access key ID and the password is
your user access key.