How To Change An Account Password Even If It Has Expired
Last updated on MAY 15, 2016
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Information in this document applies to any platform.
***Checked for relevance on 16th May 2016***
This sample code uses OCIPasswordChange to change the schema password. For demonstration purposes, it is coded such that it connects to the local instance and hard codes the user and password information. Modification to connect to a remote instance using SQLNET and/or passing in the connection information is left for the reader.
This note is different from <Note:139748.1> which uses OCILogon and thus it can't be used to change the password once it expires. This code has been tested to work even when the password has expired.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms