Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-22288: file or LOB operation FILEOPEN failed

User_S9M3BJun 11 2018 — edited Jun 14 2018

Hi All,

CREATE OR REPLACE DIRECTORY ST_XMLDIR AS

'/employees/emp/records';

GRANT EXECUTE, READ, WRITE ON DIRECTORY ST_XMLDIR TO INST1 WITH GRANT OPTION;

I don't have access to create directory in the database .My DBA  created the above directory .

select z.*  

from  xmltable( 

  xmlnamespaces ('urn:org:abcd:message:RBatch:v2.1.0' as "q1"), 

  '//ID' 

  passing xmltype(bfilename('ST_XMLDIR','TRESP.xml'),NLS_CHARSET_ID('AL32UTF8')) 

  columns 

  id varchar2(30) path '.' 

  ,rstatus varchar2(30) path './parent::*/parent::*/parent::*/ResponseStatus' 

) z 

  ;

Oracle database version : Oracle Database 12c - 64bit 

When I am executing above query in the INST1 schema , I am getting below error .

ORA-22288: file or LOB operation FILEOPEN failed

Permission denied

ORA-06512: at "SYS.XMLTYPE", line 296

ORA-06512: at line 1

Please let me know what permissions I should provide to run successfully .

Thanks

sai

This post has been answered by mNem on Jun 12 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2018
Added on Jun 11 2018
8 comments
35,213 views