Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: problems with dblink in oracle

RE: problems with dblink in oracle

From: MacGregor, Ian A. <>
Date: Thu, 1 Feb 2007 14:01:05 -0800
Message-ID: <>

If you use the same oracle account on both sides of the link and they have the same password, you can use

Create database link <link_name>
Using '<HOST>';

No password will be stored for the link.

Ian MacGregor
Stanford Linear Accelerator Center  

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

From: [] On Behalf Of Sent: Thursday, February 01, 2007 1:52 PM To:
Subject: RE: problems with dblink in oracle


I don't want to use that syntax so that my password is not written anywhere in the dba_tables

thank you

Gene Gurevich

             "Fadi Hasweh"                                                 
             om>                                                        To 
             02/01/2007 09:51          >, <>         
             AM                                                         cc 
                                       RE: problems with dblink in oracle  

Cann't you use
Create database link db_link_name connect to user_name identified by password using 'tns_entry' and try

fadi hasweh
Oracle is not Magic, it just takes years of experience
-----Original Message-----

[] On Behalf Of
Sent: Thursday, February 01, 2007 5:32 PM To:
Subject: problems with dblink in oracle

Hi all:

I have spend 2 weeks trying to get help from Oracle support on this (time
well wasted). Here is my issue.
I am running oracle 10.2.0. on aix 5.3 on a local server and on a remote server. I have oracle id externally
authenticated on both sides. I can connect as sqlplus / to local DB and as
sqlplus /@remoteDB.
I have created a db link on a local database :

create database link remoteDB using 'remoteDB'

When I try to use it I get an error:

desc user_tables_at_remoteDB

 ERROR:  ORA-01017: invalid username/password; logon denied

 ORA-02063: preceding line from PCCS03 (this is my remote DB)

The remote instance is up (I can tnsping id and connect via sqlplus). What
is the problem here. I have been using
dblinks created this way in oracle 8 and 9 and never had this issue. Is there anything new in oracle 10 related to this? Does anyone know?

TIA Gene Gurevich


"This email is intended for the above named addressee (s) only and may contain confidential and/or privilege information and should not be used by anyone who is not the original intended recipient(s). Any review, print, copy, reliance or distribution by others or forwarding without express permission is strictly prohibited If you have received this email in error, kindly notify the sender immediately by reply email and delete this email and any attachments from your mailbox or any other storage mechanism. Thank you.
Email transmission cannot be guaranteed to be secured or error free, as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of email transmission. Opinions, conclusions and other information in this message that do not relate to the official business of Umniah Mobile Company and is not its responsibility shall be understood as neither given nor endorsed by the organization."


-- Received on Thu Feb 01 2007 - 16:01:05 CST

Original text of this message