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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Database link in the same DB

Re: Database link in the same DB

From: Scott Shafer <sknd100_at_yahoo.com>
Date: Thu, 25 Oct 2001 13:52:22 -0700
Message-ID: <F001.003B518D.20011025140020@fatcity.com>

I was able to do this on HPUX, Oracle 7.3.4 by creting a tnsnames.ora entry like the one below:

<SID>_LOOP = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(PORT=1601)

                (HOST=127.0.0.1))(CONNECT_DATA=(SID=<SID>)))

and using it for 'USING' clause of the dblink. the IP address 127.0.0.1 is our localhost/loopback entry in /etc/hosts like so:

127.0.0.1 localhost loopback

YMMV, Scott Shafer
San Antonio, TX

Aldi Barco wrote:
>
> Hi Listers,
>
> Can we create and use database link within the same database ?
> I have created one but still error when use it for select statement.
> It's OK for database link to different database.
>
> Thanks.
>
> Aldi
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Aldi Barco
> INET: ipal_at_hotmail.com
>
> 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_at_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).



Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Scott Shafer
  INET: sknd100_at_yahoo.com

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_at_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).
Received on Thu Oct 25 2001 - 15:52:22 CDT

Original text of this message

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