创建XML DB时出的问题! 把你的L1.xml贴上来啊。是他的语法不对的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="UTF-8"?><!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Fanyl --><recorders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="G:\project\XMLDB\Example.xsd"> <recorder Accession_No="0100000001"> <Pub_Name>Food and Drug Administration Releasable 510(k)</Pub_Name> <_510K_Number>K002142</_510K_Number> <Applicant>EMT-RX</Applicant> <Name>ROBERT J BARD</Name> <Address> <street1>9400 RANSDELL RD., SUITE 10</street1> <street2/> <city>RALEIGH</city> <state>NC</state> <zip>27603</zip> </Address> <DeviceName>SALINE IV FLUSH SYRINGE</DeviceName> <DateReceived>2000-07-17</DateReceived> <DecisionDate>2002-02-28</DecisionDate> <Decision>Substantially Equivalent(SE)</Decision> <Review-Advisory>General Hospital (HO)</Review-Advisory> <Product-Code>FOZ</Product-Code> <Letter>SUMMARY</Letter> <Advisory-Comm>General Hospital (HO)</Advisory-Comm> <Status>Summary only</Status> <Type>TRADITIONAL</Type> <Third-Party-Review>No</Third-Party-Review> <Audit-2>#No#data#in#$10#ZIP#</Audit-2> <Load-Date>2003-02-10</Load-Date> <Source>#FDA#</Source> <Report-No>FDA510</Report-No> <Content>#medical#</Content> </recorder></recorders> http://www.itpub.net/showthread.php?s=&threadid=49812(转)function getDocument(filename varchar2,charset varchar2 default 'ZHS16GBK') return clob deterministic authid current_user is charContent CLOB; targetFile BFILE; dest_offset number := 1; src_offset number := 1; lang_context number := 0; conv_warning number := 0; begin targetFile := bfilename('XMLDIR',filename); DBMS_LOB.createTemporary(charContent,true,DBMS_LOB.SESSION); DBMS_LOB.fileOpen(targetFile,DBMS_LOB.file_readonly); DBMS_LOB.loadClobFromFile( charContent, targetFile, DBMS_LOB.getLength(targetFile), dest_offset, src_offset, nls_charset_id(charset), lang_context, conv_warning ); DBMS_LOB.fileClose(targetFile); return charContent; end; 如何复制用户A下的全部东西给用户B? 如何自动修改tnsname.ora文件内容 请教一个sql语句 写sql语句 庆祝2008中国软件开发2.0大会开幕! 关于序列的问题 oracle中新插入数据后总是要过一段时间才能查询出来 表或视图不存在 如何检测oracle的稳定性与安全性(高手请进) ORACLE数据库,字段类型是VARCHAR2(20),里面显示的是时间,如何都统一为10位 请教select into的问题。 为什么不能以Management Server方式启动??
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Fanyl -->
<recorders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="G:\project\XMLDB\Example.xsd">
<recorder Accession_No="0100000001">
<Pub_Name>Food and Drug Administration Releasable 510(k)</Pub_Name>
<_510K_Number>K002142</_510K_Number>
<Applicant>EMT-RX</Applicant>
<Name>ROBERT J BARD</Name>
<Address>
<street1>9400 RANSDELL RD., SUITE 10</street1>
<street2/>
<city>RALEIGH</city>
<state>NC</state>
<zip>27603</zip>
</Address>
<DeviceName>SALINE IV FLUSH SYRINGE</DeviceName>
<DateReceived>2000-07-17</DateReceived>
<DecisionDate>2002-02-28</DecisionDate>
<Decision>Substantially Equivalent(SE)</Decision>
<Review-Advisory>General Hospital (HO)</Review-Advisory>
<Product-Code>FOZ</Product-Code>
<Letter>SUMMARY</Letter>
<Advisory-Comm>General Hospital (HO)</Advisory-Comm>
<Status>Summary only</Status>
<Type>TRADITIONAL</Type>
<Third-Party-Review>No</Third-Party-Review>
<Audit-2>#No#data#in#$10#ZIP#</Audit-2>
<Load-Date>2003-02-10</Load-Date>
<Source>#FDA#</Source>
<Report-No>FDA510</Report-No>
<Content>#medical#</Content>
</recorder>
</recorders>
function getDocument(filename varchar2,charset varchar2 default 'ZHS16GBK') return
clob deterministic authid current_user is
charContent CLOB;
targetFile BFILE;
dest_offset number := 1;
src_offset number := 1;
lang_context number := 0;
conv_warning number := 0;
begin
targetFile := bfilename('XMLDIR',filename);
DBMS_LOB.createTemporary(charContent,true,DBMS_LOB.SESSION);
DBMS_LOB.fileOpen(targetFile,DBMS_LOB.file_readonly);
DBMS_LOB.loadClobFromFile(
charContent,
targetFile,
DBMS_LOB.getLength(targetFile),
dest_offset,
src_offset,
nls_charset_id(charset),
lang_context,
conv_warning
);
DBMS_LOB.fileClose(targetFile);
return charContent;
end;