ORA-02070: database does not support in this context

南楼画角 提交于 2019-12-13 00:28:16

问题


I'm trying to insert data from a VIEW in one DB to a table in another DB.

insert into schema.dummy_table@LINK 
SELECT v1.coulmn1, v1.cloumn2, v1.clolumn5, v1.cloumn7, v1.column3
 FROM user.view1 v1, user.view2 v2
        WHERE v1.column8 = v2.column1;

But this doesn't seem to work. I get

ORA-02070: database  does not support  in this context

Does that mean, this is not permitted on views?


回答1:


Based on names of the columns I guess that user.view1 or user.view2 selects data from one of system views like v$session.
Try to use gv$ views instead of v$ views.

This case already explained in this question on StackOverflow.

Source of such behavior is that where inst_id = USERENV('Instance') used in almost all v$-type views



来源:https://stackoverflow.com/questions/16984203/ora-02070-database-does-not-support-in-this-context

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!