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;
declare
l_file blob;
begin
l_file := utl_raw.cast_to_raw('This is another test file');
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:
0