I've a strange behaviour of Sql Developer with OS Authentication, 4.1.3 32/64bit, gives ORA-01017 while sqlplus is logging in without any problem.
This is the example answer sqlplus gives me:
~ sqlplus /@XXXX
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 27 08:50:10 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
after that running SELECT user FROM DUAL;
return my domain user.
While this is what i get from sql developer configured on Databases -> Advanced.
as it is shown it returns Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied
And when I try to connect from the Connection section I get a little more detailed error:
An error was encountered performing the requested operation:
ORA-01017: invalid username/password; logon denied
01017. 00000 - "invalid username/password; logon denied"
*Cause:
*Action:
Vendor code 1017
Thank you in advance for any idea or help
Best Answer
The problem was that I had too many instant clients and Oracle clients on my machine (one oracle client 'x86').
The instant clients were too old.
The only working instant client for me is the '12.1.0.2.0'.
I downloaded:
fixed the
PATH
variable with the path I extracted the instant client '12.1.0.2.0' and removed all others from it.In the end I set up the environment variable
TNS_ADMIN
pointing to mysqlnet.ora
andtnsnames.ora
. I think thisTNS_ADMIN
is not necessary.