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 FEBRUARY 08, 2023

Applies to:

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


On : version, Database Security

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


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 /
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




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

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