Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: dblink: functions enforce tablescan

Re: dblink: functions enforce tablescan

From: Jan-Erik Rosinowski <spamfilter_at_rosinowski.de>
Date: 2000/04/20
Message-ID: <38fe9789.2381694@News.CIS.DFN.DE>#1/1

> select * from a_at_dblink where b=
> (select f from dual);

...alas that does't improve the plan: ora734 decides to make a full scan of dual which is ok but also a 'remote*' and filters locally...

it looks as if ora treats the function like a correlated subquery when it comes to databaselinks... running the same stuff locally evaluates the function first and then restricts the select.

creating the function on the remote side won't work as we would the face the same situation vice versa. (our actual requirements don't allow us to pragma restrict reference rnds and rnps, we just tried that to get a clue what's up).

any ideas?

ciao, jan

http://www.rsp.de/

rs&p-Dossier: Software zur Erstellung technischer Dokumentationen

              und Schriftgutes in Verwaltung und Industrie. Received on Thu Apr 20 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US