RE: ok for the last 18 yrs in using oracle I must have been asleep, "implied database link"

From: SHEEHAN, JEREMY <JEREMY.SHEEHAN_at_nexteraenergy.com>
Date: Thu, 18 Feb 2010 09:57:07 -0500
Message-ID: <C3F905167E081B418BFC63B8668D52FF1338D412D6_at_GOXEXVS03.fplu.fpl.com>



A developer pointed this out to me recently and I had no idea that this could be done. It works when global_name are set to FALSE and (of course) the passwords must be the same in both databases.

Jeremy

-----Original Message-----

From: D'Hooge Freek [mailto:Freek.DHooge_at_uptime.be] Sent: Thursday, February 18, 2010 9:25 AM To: bertrand.guillaumin_at_digora.com; robertgfreeman_at_yahoo.com; TESTAJ3_at_nationwide.com; oracle-l_at_freelists.org Subject: RE: ok for the last 18 yrs in using oracle I must have been asleep, "implied database link"

I can't test it for the moment, but could it be that the parameter global_names has to be set to TRUE? X-archive-position: 25774
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce_at_freelists.org Errors-to: oracle-l-bounce_at_freelists.org X-original-sender: Freek.DHooge_at_uptime.be Precedence: normal
Reply-to: Freek.DHooge_at_uptime.be

List-help: <mailto:ecartis_at_freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request_at_freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request_at_freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams_at_ixora.com.au>
List-post: <mailto:oracle-l_at_freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l  

Freek D'Hooge
Uptime
Oracle Database Administrator
email: freek.dhooge_at_uptime.be
tel +32(0)3 451 23 82
http://www.uptime.be
disclaimer: www.uptime.be/disclaimer

-----Original Message-----

From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Bertrand Guillaumin Sent: donderdag 18 februari 2010 15:20
To: robertgfreeman_at_yahoo.com; TESTAJ3_at_nationwide.com; oracle-l_at_freelists.org Subject: RE : ok for the last 18 yrs in using oracle I must have been asleep, "implied database link"

Hi,
Are you sure it exists ? I've made tests and it does not work at least in 10.2.0.3. sqlplus system/pass_at_db1

SQL*Plus: Release 10.2.0.3.0 - Production on Thu Feb 18 15:16:38 2010

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning, OLAP and Data Mining options

SQL> SELECT * FROM DBA_USERS_at_db2;
SELECT * FROM DBA_USERS_at_db2

                        *

ERROR at line 1:
ORA-02019: connection description for remote database not found

sqlplus system/pass_at_db2

SQL*Plus: Release 10.2.0.3.0 - Production on Thu Feb 18 15:16:38 2010

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning, OLAP and Data Mining options

I've even verified in the documentation and I haven't found trace of it.

Best regards,



De : oracle-l-bounce_at_freelists.org [oracle-l-bounce_at_freelists.org] de la part de Robert Freeman [robertgfreeman_at_yahoo.com] Date d'envoi : jeudi 18 février 2010 00:54 À : TESTAJ3_at_nationwide.com; oracle-l_at_freelists.org Objet : Re: ok for the last 18 yrs in using oracle I must have been asleep, "implied database link"

In my mind, if someone is doing such things in code, this is probably a bad practice. Also I'm not sure it's a great idea from a security point-of-view to allow such things. Anyone else have any thoughts here?

RF

Robert G. Freeman
Master Principle Consultant, Oracle Corporation Oracle ACE
Author:
Oracle Database 11g RMAN Backup and Recovery (Oracle Press) - ON ITS WAY SOON! OCP: Oracle Database 11g Administrator Certified Professional Study Guide (Sybex) Oracle Database 11g New Features (Oracle Press) Oracle Database 10g New Features (Oracle Press) Other various titles
Blog: http://robertgfreeman.blogspot.com



From: "TESTAJ3_at_nationwide.com" <TESTAJ3_at_nationwide.com> To: oracle-l_at_freelists.org
Sent: Wed, February 17, 2010 1:15:18 PM
Subject: ok for the last 18 yrs in using oracle I must have been asleep, "implied database link"

Ok so a co-worker asks a question about an implied database link, i'm like "huh".

so a database link is NOT created in the source database but the userid/password are the same in both source and destination.

take for example

system on db1 and db2 has a password of x12345.

I do a select count(*) from dba_users_at_db2 while connected on db1 and it connects and returns a result set w/o a db link being created.

I've been enlightened again of something new about oracle.

so the question posed is, for a named db link you do "close" it, how do you close an implied link?

joe



Joe Testa, Oracle Certified Professional Senior Engineering & Administration Lead (Work) 614-677-1668
(Cell) 614-312-6715

Interested in helping out your marriage? Ask me about "Weekend to Remember"
--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Thu Feb 18 2010 - 08:57:07 CST

Original text of this message