下面是我操作的各个步骤:
1.The xml file: d:\XML\Player.xml
2.The XML Schemas: d:\XML\Player.xsd
3.建立xml路径:create directory OTNXML_DIR as ‘d:\XML’
4.注册XML Schemas文件
begin
dbms_xmlschema.registerSchema(
schemaurl=>‘http://localhost:8080/home/OTNXML/source/xsd/Player.xsd’,
schemadoc=>bfilename(‘OTNXML_DIR’,’Player.xsd’),
local=>TRUE,
gentypes=>TRUE,
genbean=>FALSE,
force=>FALSE,
owner=>‘OTNXML’,
csid=>nls_charset_id(‘AL32UTF8’)
);
end;
前3步都成功,第4步出现下面错误。
ORA-21560:参数3为空,无效或超出范围。
ORA-06512:在”SYS.DBMS_LOB”,LINE 858。
ORA-06512:在“XDB .DBMS_XMLSCHEMA”,LINE 134。
ORA-06512:在line 2这个问题困扰我好久都没有解决,请高手帮忙啊!
1.The xml file: d:\XML\Player.xml
2.The XML Schemas: d:\XML\Player.xsd
3.建立xml路径:create directory OTNXML_DIR as ‘d:\XML’
4.注册XML Schemas文件
begin
dbms_xmlschema.registerSchema(
schemaurl=>‘http://localhost:8080/home/OTNXML/source/xsd/Player.xsd’,
schemadoc=>bfilename(‘OTNXML_DIR’,’Player.xsd’),
local=>TRUE,
gentypes=>TRUE,
genbean=>FALSE,
force=>FALSE,
owner=>‘OTNXML’,
csid=>nls_charset_id(‘AL32UTF8’)
);
end;
前3步都成功,第4步出现下面错误。
ORA-21560:参数3为空,无效或超出范围。
ORA-06512:在”SYS.DBMS_LOB”,LINE 858。
ORA-06512:在“XDB .DBMS_XMLSCHEMA”,LINE 134。
ORA-06512:在line 2这个问题困扰我好久都没有解决,请高手帮忙啊!
dbms_xmlschema.registerSchema(
schemaurl=>‘http://localhost:8080/home/OTNXML/source/xsd/Player.xsd’,
schemadoc=>bfilename('OTNXML_DIR','Player.xsd'),
local=>TRUE,
gentypes=>TRUE,
genbean=>FALSE,
force=>FALSE,
owner=>'OTNXML',
csid=>nls_charset_id('AL32UTF8')
);
end;