Accessing Oracle Cloud Object Storage
Create a bucket in Object Storage
To set up access to the Oracle Object Storage Service, you need to create a bucket for Object Storage.
- Select Storage from the menu on the left side of the
display and Select Object Storage & Archive
Storage.
- Select the Compartment in which to create the
bucket.
- Supply a descriptive name.
- Under the Default Storage Tier, select
Standard.
- Choose your desired Encryption and click
Create.
There is no need to create any other files. Once the bucket is created, all you need to do is specify the name of the bucket in the configuration, along with the bucket’s compartment, and the utility will take it from there; creating objects with names derived from the table being copied.
For example, if the name of the bucket you created is nosql-to-adw
and
the name of the table you wish to copy to ADW is myTable
, and you
direct the utility to use the Oracle NoSQL Migrator , then the utility will
retrieve data from the NoSQL table named myTable
, convert it to Parquet
format, and copy the Parquet data to the nosql-to-adw
bucket as
objects having names of the form, myTable_2021_07_22/Data/000000.parquet,
myTable_2021_07_22/Data/000001.parquet, etc.
Generate an authorization token for Object Storage.
After creating the bucket, if you wish to authenticate ADW with the Object Storage service using a user specified authorization token (AUTH_TOKEN), and if your system administrator has not already generated one for you, then you must generate that token yourself so that files written to the Object Storage bucket can be accessed. Communication between ADW and Object Storage will rely on this AUTH_TOKEN as well as the database's username/password authentication mechanism.
- In the OCI Console, go to User Settings
in your Profile menu.
- Under Resources, select Auth
Tokens . Click Generate
Token.
- If you, rather than the system administrator, generate the AUTH_TOKEN, then copy it to a file for safekeeping. Whether generated by you or the system administrator, the AUTH_TOKEN must then be stored in the ADW database. For details on how to do this, see Enable the OCI Resource Principal Credential or Store/Enable the User's Object Storage AUTH_TOKEN in the ADW Database