Register XML schema using dbms_xmlschema in Oracle
You firstly need to create and Oracle directory.

As a user with the relevant permissions:

CREATE OR REPLACE DIRECTORY HOMEJOE AS '/home/joe';


Grant permission to the user that needs to use DBMS_XMLSCHEMA.registerSchema:

GRANT READ, WRITE ON DIRECTORY HOMEJOE TO YOURUSER;


Then register the schema, using the newly created directory:

DECLARE
BEGIN
  DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL =&gt; 'http://[...]/spin-catalog-to-bpm.xsd',
    SCHEMADOC =&gt; bfilename ('HOMEJOE','spin-catalog-to-bpm.xsd'),
    CSID =&gt; nls_charset_id('AL32UTF8'));
END;
/