Using OCIPasswordChange() to Change Password
(Doc ID 99457.1)
Last updated on JUNE 27, 2023
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
This article contains a program that demonstrates how to use the OCIPasswordChange() function to log on to a database and change a user's password at the same time. This allows the user to make a connection, even if their existing password has currently expired, i.e. attempts to connect are giving:
ORA-28001: the password has expired
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!