表a: oracle9204 本地库,数据不多 rbo
表b: oracle9204 远程库,220万 rbo
表c: oracle9204 远程库,220万 rbo
select ....... from a,b@dblink,c@dblink
where a.id=b.id and a.id=c.id;
查询时间是;65s,无法满足需要.
同时发现以下两个语句都不到1秒:
1. select /*+ind(b's index on id)*/....... from a,b@dblink
where a.id=b.id;
2. select /*+ind(c's index on id)*/....... from a,c@dblink
where a.id=c.id;
于是将原始的sql改写成以上2个语句的连接,时间