Reputation: 261
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?
Upvotes: 1
Views: 3320
Reputation: 6735
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
Upvotes: 2