简体   繁体   中英

“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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM