The Data Load using PL/SQL prcoedure DBMS_CLOUD failed with ORA-20401: Request failed with status 401
(Doc ID 2454642.1)
Last updated on SEPTEMBER 10, 2023
Applies to:
Autonomous Database Serverless - Version N/A to N/AInformation in this document applies to any platform.
Symptoms
The Data Load using DBMS_CLOUD in Autonomous Data Warehouse failed with below error message
begin
dbms_cloud.copy_data(
table_name =>'CUSTOMERS',
credential_name =>'OBJ_STORE_CRED',
file_uri_list =>'https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/XXXX/test_obj1/test.dat',
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')
);
end;
Error report -
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 798
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 779
ORA-20401: Request failed with status 401 - https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/XXXX/test_obj1/test.dat
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_INTERNAL", line 2541
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 939
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 667
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 904
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_INTERNAL", line 2514
ORA-06512: at line 1
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 754
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 816
ORA-06512: at line 2
dbms_cloud.copy_data(
table_name =>'CUSTOMERS',
credential_name =>'OBJ_STORE_CRED',
file_uri_list =>'https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/XXXX/test_obj1/test.dat',
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')
);
end;
Error report -
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 798
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 779
ORA-20401: Request failed with status 401 - https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/XXXX/test_obj1/test.dat
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_INTERNAL", line 2541
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 939
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 667
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_REQUEST", line 904
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD_INTERNAL", line 2514
ORA-06512: at line 1
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 754
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 816
ORA-06512: at line 2
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |