你好,游客 登录 注册 搜索
背景:
阅读新闻

关于ORA-02070:database xxx does not support operator USERENV in this context

[日期:2013-03-24] 来源:Linux社区  作者:snoopy93 [字体:大 中 小]

分布式系统中用的最多的是Database Link了,今天用数据库链路的时候出现了一个问题:在update远程数据库中的表的时候出现如下错误:ORA-02070:database xxx does not support operator USERENV in this context

关于ORA-02070:database xxx does not support operator

比如执行这样的语句时:

UPDATE procedure_run_byshell_log_list@db_link a

SET    (a.sid, a.serial#) =

(SELECT i.sid, i.serial#

FROM  v$session i

WHERE  i.sid IN (SELECT ii.sid FROM v$mystat ii WHERE rownum = 1));

This is a Bug(Bug ID:774807)

SQL command  "insert into t1@db_link select * from t1"

always worked in 7.3.4, but the statement now fails on any version of Oracle8

解决方法:可以先将数据插入到临时表或者保存到变量中再插入或update到远程数据库中:

关于ORA-02070:database xxx does not support operator

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       ORA-02070 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款