Tune statement that uses Database LINK [message #10732] |
Thu, 12 February 2004 22:38 |
shad
Messages: 50 Registered: October 2000
|
Member |
|
|
Hi all.
Hi have the following statement running that t I would like to tune.
select count(rowid)
from claims.post
where employer_ref_no in (select ref_no
from employers@dev.world
where sic_code = '1000' and employ_end_date is not null)
Here is the explain plan for the statement
ID OPERATION OBJECT_NAME OPTIONS COST POSITION
------------------------------ ---------- ----------
0 SELECT STATEMENT 278311 278311
1 SORT AGGREGATE 1
2 HASH JOIN 278311 1
3 REMOTE 8734 1
4 TABLE ACCESS POSt FULL 52870 2
--[>] There is an index on on the employer_ref_no field on dev database. As can be seen I am accessing the employers table on dev database from cclm database. the claims schema is in cclm database.
--[>] Is there any thing I can do to avoid full table scan on the post table as it is very big. It does not use an index that exists.
thanks
shad
|
|
|
|
|
|