[OCI] VMDB: DBMS_CLOUD.PUT_OBJECT failed by ORA-22286: insufficient privileges on file or directory to perform
(Doc ID 3020229.1)
Last updated on MAY 13, 2024
Applies to:
Oracle Cloud Infrastructure - Database Service - Version N/A and laterInformation in this document applies to any platform.
Symptoms
DBMS_CLOUD has setup according to Doc ID 2748362.1 correctly, but DBMS_CLOUD.PUT_OBJECT failed by ORA-22286 like the following.
Even granted READ privilege on <Directory Name> to DB login user, the issue is still permanent.
SQL>
GRANT READ ON DIRECTORY <Directory Name> TO <DB login user>;
BEGIN
DBMS_CLOUD.PUT_OBJECT(
credential_name => '<Credential Name>',
object_uri => '<Object Storage URI>/test.csv',
directory_name => '<Directory Name>',
file_name => 'test.csv'
);
END;
/
BEGIN
*
ERROR at line 1:
ORA-20000: ORA-22286: insufficient privileges on file or directory to perform
FILEOPEN operation
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 1181
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 4335
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 |
References |