【发布时间】:2014-05-09 11:50:14
【问题描述】:
以下是我插入 xml 文件的查询
INSERT INTO sampletagtable VALUES ( 1 , XMLType(bfilename('xmldir3', 'book.xml') , nls_charset_id('AL32UTF8') ));
在此之前,我通过以下查询创建了 xmldir3,
CREATE OR REPLACE DIRECTORY xmldir3 AS '/opt/user/nishanth/xmldir';
这里 /opt/user/nishanth 是我的 linux 操作系统中的一个目录。
book.xml 在该指定目录中。
我收到以下错误,
SQL Error: ORA-22285: non-existent directory or file for FILEOPEN operation
ORA-06512: at "SYS.XMLTYPE", line 296
ORA-06512: at line 1
22285. 00000 - "non-existent directory or file for %s operation"
*Cause: Attempted to access a directory that does not exist, or attempted
to access a file in a directory that does not exist.
*Action: Ensure that a system object corresponding to the specified
directory exists in the database dictionary, or
make sure the name is correct.
【问题讨论】:
标签: oracle insert oracle11g xmltype