Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g640K3F30377
 for <oracle-l@naude.co.za>; Wed, 3 Jul 2002 20:20:03 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA44173;
 Wed, 3 Jul 2002 09:18:11 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0048EC6B; Wed, 03 Jul 2002 07:18:10 -0800
Message-ID: <F001.0048EC6B.20020703071810@fatcity.com>
Date: Wed, 03 Jul 2002 07:18:10 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Martin, Alan" <amartin@dlis.dla.mil>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Martin, Alan" <amartin@dlis.dla.mil>
Subject: RE: Accessing views across a db link
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C2228F.F14F29C0"
------_=_NextPart_001_01C2228F.F14F29C0
Content-Type: text/plain;
 charset="iso-8859-1"

Great hint. I didn't know that one existed. However, our local DB is V7.3.3
connecting to our remote DB V8.1.7. That hint didn't exist back then. Oh
well, I guess we'll burn some DASD for a snapshot.
 
Thanx,
Alan

-----Original Message-----
Sent: Tuesday, July 02, 2002 11:08 PM
To: Multiple recipients of list ORACLE-L


Try this:
 
select --+ DRIVING_SITE(rv) 
         *
from view_name@remotedb rv
where columnA = '...';
 
---------
Regards,
 
Waleed

-----Original Message-----
Sent: Tuesday, July 02, 2002 5:28 PM
To: Multiple recipients of list ORACLE-L



Accessing a view across a db link takes a while (fetch phase) when a *local*
select statement uses a "where" clause (e.g. select * from
view_name@remotedb where columnA = '...';). Does anyone know a way (other
than a snapshot or materialized view of the remote data on the local db) to
force the result set of data (due to the "where" clause) to be resolved on
the remote side?

Thanx, 

Alan Martin 
Defense Logistics Information Service 
Battle Creek, Michigan 


------_=_NextPart_001_01C2228F.F14F29C0
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Accessing views across a db link</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=146004312-03072002><FONT face=Arial color=#0000ff size=2>Great 
hint. I didn't know that one existed. However, our local DB is V7.3.3 connecting 
to our remote DB V8.1.7. That hint didn't exist back then. Oh well, I guess 
we'll burn some DASD for a snapshot.</FONT></SPAN></DIV>
<DIV><SPAN class=146004312-03072002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=146004312-03072002><FONT face=Arial color=#0000ff 
size=2>Thanx,</FONT></SPAN></DIV>
<DIV><SPAN class=146004312-03072002><FONT face=Arial color=#0000ff 
size=2>Alan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Khedr, Waleed 
  [mailto:Waleed.Khedr@FMR.COM]<BR><B>Sent:</B> Tuesday, July 02, 2002 11:08 
  PM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B> RE: 
  Accessing views across a db link<BR><BR></FONT></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" size=2>Try 
  this:</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=365270402-03072002><FONT size=2><FONT 
  face="Courier New">select --+ DRIVING_SITE(rv) </FONT></FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" size=2>from 
  view_name@remotedb rv</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" size=2>where 
  columnA = '...';</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2>---------</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2>Regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=365270402-03072002><FONT face="Courier New" 
  size=2>Waleed</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Martin, Alan 
    [mailto:amartin@dlis.dla.mil]<BR><B>Sent:</B> Tuesday, July 02, 2002 5:28 
    PM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B> 
    Accessing views across a db link<BR><BR></FONT></DIV>
    <P><FONT face=Arial size=2>Accessing a view across a db link takes a while 
    (fetch phase) when a *local* select statement uses a "where" clause (e.g. 
    select * from view_name@remotedb where columnA = '...';). Does anyone know a 
    way (other than a snapshot or materialized view of the remote data on the 
    local db) to force the result set of data (due to the "where" clause) to be 
    resolved on the remote side?</FONT></P>
    <P><FONT face="Courier New" size=2>Thanx,</FONT> </P>
    <P><B><FONT face="Albertus Extra Bold" size=4>Alan Martin</FONT></B> 
    <BR><B><FONT face=Arial size=2>Defense Logistics Information 
    Service</FONT></B> <BR><B><FONT face=Arial size=2>Battle Creek, 
    Michigan</FONT></B> </P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2228F.F14F29C0--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Martin, Alan
  INET: amartin@dlis.dla.mil

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

