求助: linux 环境 oralce 9i 的 XPATH 无法识别中文字符
我在Oracle 9i (redhat 7.3下) 使用如下查询:
select * from table1 tb where extract(tb.xmldoc, '/root/标记1/text()').getStringVal() = '';
报错:
ORA-31013: XPATH 表达式无效
ORA-06512: 在"SYS.XMLTYPE", line 0
ORA-06512: 在"SYS.XMLINDEXOPS", line 18
但是在Windows 2000 Server (中文版) 的 Oracle 9i (中文版) 中使用没有问题.
linux 下的 Oracle 9i 配置的 NLS_LANG 用过:
"simplified chinese"_china.zhs16gbk
american_america.zhs16gb231280
表 table1 定义如下:
id number(10), xmldoc sys.xmlType