title: ORA-03113 when using dbms_xmlschema.registerschema
body: <p>I am trying to register a Xml schema to validate some xml documents, using Oracle plsql stored procedures. Here is the piece of code :</p>
  
  <pre><code>begin
      dbms_xmlschema.registerschema(
           schemaurl =&gt; 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd',
           SCHEMADOC =&gt; bfilename('XMLDIR','xmldsig-core-schema.xsd'),
           local =&gt; false,
           gentypes =&gt; false,
           gentables =&gt; false,
      );
  end;
  </code></pre>
  
  <p>My XML schema is not local, so I have to set <strong>local</strong> to <strong>false</strong>. I precise that all these statments are executed under SYS user.</p>
  
  <p>I have already created a directory and granted access to everyone with following commands : </p>
  
  <pre><code>create or replace directory XMLDIR as '/absolute/path/to/xmlschema';
  create public synonym XMLDIR for XMLDIR;
  GRANT ALL ON DIRECTORY XMLDIR TO PUBLIC;
  </code></pre>
  
  <p>I have noticed that if the file <strong>xmldsig-core-schema.xsd</strong> is not present on disk before I run the first plsql block, the result is <strong>ORA-22288</strong> error (file or LOB operation string failed string). So I created the <strong>xmldsig-core-schema.xsd</strong> file before.</p>
  
  <p>When I run *dbms_xmlschema.registerschema...* I get the error <strong>ORA-03113 : end-of-file on communication channel</strong></p>
  
  <p>WHat's wrong ? Any Ideas ?</p>