Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01017: invalid username/password; logon denied - Database Link

Kevin HondeJul 10 2010 — edited Jul 10 2010
Hi Guys,

Could you help me, I have a problem connecting to another database using the database link:

*1. I added in tnsnanes.ora of "client" database DEV2*

DEV =
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.85)(PORT = 1521))+
+(CONNECT_DATA =+
+(SID = DEVDB)+
+)+
+)+

*2. I tested my connection using tnsping*

oracle@dev> tnsping dev

TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 10-JUL-2010 14:35:35

Copyright (c) 1997, 2005, Oracle. All rights reserved.

Used parameter files:
+/opt/oracle/product/10.2/db_1/network/admin/sqlnet.ora+


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.85)(PORT = 1521)) (CONNECT_DATA = (SID = DEVDB)))
OK (0 msec)
oracle@dev>

*3. In SQLPLUS of DEV2 I connect to my database using the tnsnames entry*

SQL> conn devuser/pwd001@dev
Connected.

*4. I then create a database link.*

SQL> Create Database Link dev_Link
+2 Connect to devuser+
+3 identified by pwd001+
+4 using 'DEV';+

Database link created.

SQL>

*5. When I try to connect to the database using the database link I get an error, but I am very sure the username ans password are ok.*

SQL> select * from global_name@dev_link;
select * from global_name@dev_link
*+
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DEV_LINK


SQL>


What could be wrong......??
This post has been answered by Mark D Powell on Jul 10 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2010
Added on Jul 10 2010
8 comments
23,280 views