kahlersd
kahlersd

Reputation: 1

"OS Authentication" delphi

I have Oracle XE 11g running on Windows 7 host I am able to connect to Oracle using OS Authentication in SQLPlus I am able to connect to Oracle in Delphi using TSQLConnection with username and password

When I blank the username and password in SQLConnection.Params and set OSAuthentication and/or OS Authentication (all combinations) params to True and attempt to set Connected to True I get:

ORA-01017: invalid username/password; Logon denied;

Has anyone connected to Oracle using OS Authentication using Delphi and dbExpress?

Upvotes: 0

Views: 321

Answers (1)

kahlersd
kahlersd

Reputation: 1

When connecting to Oracle XE 11g running on my Windows 7 host through sqlplus running on the same host the Oracle account expected is "OPS$%userdomain%\%username%". When connecting remotely through a Linux VM only "OPS$%username%" is expected. When running Delphi on the same Windows 7 host the TSqlConnection seems to be acting like a remote connection, so I was able to use OS Authentication when logged in to Windows as %username% using the Oracle "OPS$%username% user. Hope that makes sense.

Upvotes: 0

Related Questions