Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Remote query - inconsistent results

1042494Mar 18 2014 — edited Mar 24 2014

Hello,

Here is a test I did on 10gR2:

--local DB

create or replace view v1 as select count(*) c1 from t1@l1;

select * from v1;

--result: 0

--remote DB

insert into t1 values('a');

commit;

insert into t1 values('a');

commit;

--local DB

select * from v1;

--result: 1

select * from v1;

--result: 2

Results of the last two queries are inconsistent (the cause of it is explained in docs) - what bothers me is that if I change:

select * from v1;

to:

select count(*) from t1@l1;

then each query gives same (consistent results).

What's the difference (in the context of read consistency in distributed db) between issuing query using a view based on a remote query and issuing the same remote query directly?

Regards,

Andrzej

Comments

Shay Shmeltzer-Oracle
Just an idea, how about creating an index.html file in your root directory that does automatic redirect using the <Meta> refresh to the sub directory where your application is?
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 21 2014
Added on Mar 18 2014
15 comments
11,869 views