We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error while fetching data from an external table ( for a file from OCI object storage)

Received Response
4
Views
1
Comments
edited Jan 20, 2022 12:19AM in Autonomous Database 1 comment

Content

Hello,

 

I followed the instructions from the below link 

https://docs.oracle.com/en/cloud/paas/autonomous-data-warehouse-cloud/user/load-data.html#GUID-07900054-CB65-490A-AF3C-39EF45505802

Scripts used 
 
SET DEFINE OFF
BEGIN
 
dbms_cloud.create_credential (
    'pramod_obj_store_cred',
    ‘[email protected]',
    'r4u.tH{BT_t(JePKkI6X’); — token from the OCI object store user 
END;
/
 
 
BEGIN  
   DBMS_CLOUD.CREATE_EXTERNAL_TABLE(   
      table_name =>'happiness_report_2019_ext',   
      credential_name =>'pramod_obj_store_cred',   
      format => json_object('type' value 'csv', 'skipheaders' value '1'),   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!