Skip to content

Commit 195b226

Browse files
authored
Fixed minor typos and added LiveLab link
1 parent 46b7602 commit 195b226

File tree

1 file changed

+11
-7
lines changed
  • samples/oci-load-file-into-adw-python

1 file changed

+11
-7
lines changed

samples/oci-load-file-into-adw-python/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Automatically load data from Object Storage into Autonomous Data Warehouse
2+
3+
Note: We also have a public LiveLab based on this sample. The LiveLab has more detailed steps and screenshots.
4+
See [Event-driven Functions with Autonomous Data Warehouse (ADW) hands-on lab | Adao Junior | August 2021](https://apexapps.oracle.com/pls/apex/dbpm/r/livelabs/view-workshop?wid=849).
5+
6+
## Introduction
27
We often have to extract data from various databases or applications and load it into a Data Warehouse to get analysed.
38
You can automate this process on OCI using Cloud Storage, Cloud Events, Functions and Autonomous Data Warehouse.
49

@@ -43,7 +48,7 @@ You need two buckets in Object Storage. The first bucket is the location where y
4348

4449
![user input icon](./images/userinput.png)
4550

46-
Create the two buckets, for example "input-bucket" and "processed-bucket". Check the *Emit Object Events* box for the first bucket (for input).
51+
Create the two buckets: "input-bucket" and "processed-bucket". Check the *Emit Object Events* box for the "input-bucket" bucket.
4752

4853
![create bucket](./images/create-bucket.png)
4954

@@ -58,8 +63,9 @@ Also, create a policy to allow the Object Storage service in the region to manag
5863

5964
Your policy should look something like this:
6065
```
61-
Allow dynamic-group <dynamic-group-name> to manage objects in compartment <compartment-name> where target.bucket.name=<input-bucket-name>
62-
Allow dynamic-group <dynamic-group-name> to manage objects in compartment <compartment-name> where target.bucket.name=<processed-bucket-name>
66+
Allow dynamic-group <dynamic-group-name> to manage objects in compartment <compartment-name> where target.bucket.name='input-bucket'
67+
68+
Allow dynamic-group <dynamic-group-name> to manage objects in compartment <compartment-name> where target.bucket.name='processed-bucket'
6369
6470
Allow service objectstorage-<region_identifier> to manage object-family in tenancy
6571
e.g., Allow service objectstorage-ap-sydney-1 to manage object-family in tenancy
@@ -189,10 +195,8 @@ Upload one or all CSV files from the current folder to your *input bucket*. Let'
189195
On the OCI console, navigate to *Autonomous Data Warehouse* and click on your database, click on *Service Console*, navigate to Development, and click on *SQL Developer Web*. Authenticate with your ADMIN username and password.
190196
Enter the following query in the *worksheet* of *SQL Developer Web*:
191197
```sql
192-
select json_serialize (
193-
json_data returning varchar2 pretty
194-
)
195-
from regionsnumbers;
198+
select json_serialize (JSON_DOCUMENT) from regionsnumbers;
199+
196200
```
197201
You should see the data from the CSV files. To learn more about JSON in Oracle Database, refer to Chris Saxon's blog [How to Store, Query, and Create JSON Documents in Oracle Database](https://blogs.oracle.com/sql/how-to-store-query-and-create-json-documents-in-oracle-database)
198202

0 commit comments

Comments
 (0)