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 -> dblink: functions enforce tablescan

dblink: functions enforce tablescan

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

hi,

how can we prevent the oracle optimizer from making complete tablescans when using data-base-links?

create table a (b number primary key);
create function f return number as begin return 42; end; select * from a_at_dblink where b=f;

the plans differ whether one uses a local or a remote-table..

we originally use packaged functions but even pragma restrict reference(f,rnds,rnps,wnds,wnps) does not help.

any ideas why this happens and what we could do?

ciao, jan

http://www.rsp.de/

rs&p-Dossier: Software zur Erstellung technischer Dokumentationen

              und Schriftgutes in Verwaltung und Industrie. Received on Wed Apr 19 2000 - 00:00:00 CDT

Original text of this message

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