My Oracle Support Banner

DBLINK Connection Failed With OS Authenticaiton on Windows using Domain user: ORA-01017 ORA-02063 (Doc ID 1959626.1)

Last updated on MARCH 01, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.4 version, Database Security

When attempting to use a Public DB link with External OS Authentication the following error occurs.

ERROR
----------------------
ORA-01017


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. On the TARGET and Source DB create an EXTERNAL user
2. Create a Public database link
3. try a query using the db link

 

sqlplus / as sysdba
SQL> create user "<domain>\<user>"  identified externally;

User created.

SQL>  grant create session to "<domain>\<user>";

Grant succeeded.

SQL> alter system set os_authent_prefix='' scope=spfile;

SQL>create public database link DB_TARGET using '<TNS alias>';

SQL>startup force

SQL> connect /
Connected.
SQL> select sysdate from dual@DB_TARGET;
select sysdate from dual@DB_TARGET
                        *
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DB_TARGET

 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.