Hi
Can some tell me whats the matter with the following regsiter schema code , I have been stuck on it for days
Register XML Schema...
old 2: dbms_xmlschema.registerSchema('&schema_url',FileToClob('C:\wkdir\fea\src\xml\faq.xsd'),
new 2: dbms_xmlschema.registerSchema('BEGIN
*
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.DBMS_LOB", line 504
ORA-06512: at "FAQDEMO.FILETOCLOB", line 10
ORA-06512: at line 2
PROMPT Creating FileToClob function...
------------------------------------------------------------
CREATE OR REPLACE FUNCTION FileToClob(fname VARCHAR2) RETURN CLOB IS
fclob CLOB;
theBFile BFILE;
BEGIN
DBMS_LOB.CREATETEMPORARY(fclob,false,DBMS_LOB.SESSION);
theBFile := BFileName('XMLDIR',fname);
DBMS_LOB.fileOpen(theBFile);
DBMS_LOB.loadFromFile(fclob, theBFile, dbms_lob.getLength(theBFile));
DBMS_LOB.fileClose(theBFile);
printClobOut(fclob);
RETURN fclob;
END FileToClob;
/
show errors;
Can some tell me whats the matter with the following regsiter schema code , I have been stuck on it for days
Register XML Schema...
old 2: dbms_xmlschema.registerSchema('&schema_url',FileToClob('C:\wkdir\fea\src\xml\faq.xsd'),
new 2: dbms_xmlschema.registerSchema('BEGIN
*
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.DBMS_LOB", line 504
ORA-06512: at "FAQDEMO.FILETOCLOB", line 10
ORA-06512: at line 2
PROMPT Creating FileToClob function...
------------------------------------------------------------
CREATE OR REPLACE FUNCTION FileToClob(fname VARCHAR2) RETURN CLOB IS
fclob CLOB;
theBFile BFILE;
BEGIN
DBMS_LOB.CREATETEMPORARY(fclob,false,DBMS_LOB.SESSION);
theBFile := BFileName('XMLDIR',fname);
DBMS_LOB.fileOpen(theBFile);
DBMS_LOB.loadFromFile(fclob, theBFile, dbms_lob.getLength(theBFile));
DBMS_LOB.fileClose(theBFile);
printClobOut(fclob);
RETURN fclob;
END FileToClob;
/
show errors;