问题
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