The requirement is to register XML schema from XSD files in Oracle 11gR2. I am using the following code:
DECLARE
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://[...]/spin-catalog-to-bpm.xsd',
SCHEMADOC => bfilename ('/home/joe','spin-catalog-to-bpm.xsd'),
CSID => nls_charset_id('AL32UTF8'));
END;
/
The file spin-catalog-to-bpm.xsd is under /home/joe but when I try to register it, it gives me this error:
DECLARE
*
ERROR at line 1:
ORA-22285: non-existent directory or file for FILEOPEN operation
ORA-06512: at "SYS.DBMS_LOB", line 805
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
ORA-06512: at line 3