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

ORA-20401: Authorization failed for URI-dbms_cloud.put_object - Error While Creating Object

—Create Credential ;

BEGIN
DBMS_CLOUD.CREATE_CREDENTIAL(
credential_name => 'XXOBJ_CDN',
username => 'xxemail@oracle.com',
password => 'fjWXSIb_5;.N]nceHZ'
);
END;

—Put Object Procedure

declare
l_file blob;
begin
l_file := utl_raw.cast_to_raw('This is another test file');

dbms_cloud.put_object (
credential_name => 'XXOBJ_CDN',
object_uri => 'https://objectstorage.us-ashburn-1.oraclecloud.com/n/idagappbvjb0/b/bicc_bucket/o/SampleNotes.txt',
contents => l_file);
end; —-Exception while running the above procedure :

declare
*
ERROR at line 1:
ORA-20401: Authorization failed for URI - https://objectstorage.us-ashburn-1.oraclecloud.com/n/idagappbvjb0/b/bicc_bucket/o/SampleNotes.txt
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 2233

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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