Oracle's XMLDB Study NOTE (3)
在第一期中我们曾经提到过,安装 oracle 后,点击 http:// localhost :8080/ 的时候会在浏览器中表示xmldb的内容,以下简称webroot。如下图 ****************************************************************************** Index of / Name Last modified
在第一期中我们曾经提到过,安装oracle后,点击http://localhost:8080/的时候会在浏览器中表示xmldb的内容,以下简称webroot。如下图
******************************************************************************
Index of /
******************************************************************************
如何更改其中的内容呢?
我们登录到oracle中,执行如下PL
SQL命令:
declare
res boolean;
begin
res := dbms_xdb.createResource('/home/poOrder2.xml',
bfilename('XMLDIR','poOrder2.xml'),
nls_charset_id('AL32UTF8'));
end;
其中'XMLDIR'是在上期note中建立的directory,确保物理的'XMLDIR'目录下存在'poOrder2.xml'文件啊。
执行成功后,访问
http://localhost:8080/home/,看到了什么?
如下图:
******************************************************************************
Index of /home/
******************************************************************************
点击
poOrder2.xml文件,看到文件的内容了吧,就是刚才执行PL
SQL中所用到的那个xml文件的内容。
原文转自:http://www.ltesting.net
|