OCILogon Using OS Authentication Fails With ORA-01017
Last updated on MAY 19, 2017
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Information in this document applies to any platform.
With early Oracle versions (8.0 or earlier) it was possible to make an OS Authenticated Logon (commonly known as an OPS$ logon) using the OCILogon function in the following way:
OCILogon(envhp, errhp, &svchp, (text *)"/", strlen("/"),(text *)"/", strlen("/"), (text *)dbname, strlen(dbname));
In Oracle versions 8.1 or later including the latest releases, this code does not work, failing with ORA-1017: Invalid Username and Password.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms