DBMS_CLOUD.COPY (Upload Excel/CSV Data into Table on cloud)
1) Create Credential on Cloud
2) Login with sql developer
3) Create table in my case TVEH
4) Perform the below procedure
begin
DBMS_CLOUD.COPY_DATA(
table_name =>‘TVEH’,
credential_name =>‘DEV’,
file_uri_list =>‘https://objectstorage.us-ashburn-1.oraclecloud.com/n/<name space name >/b/BigData/o/file_name.csv’,
format => json_object(‘type’ value ‘CSV’,‘ignoremissingcolumns’ value ‘true’,‘rejectlimit’ value ‘100’)
);
Comments
Post a Comment