ChangePassword (OraServer) Method

Applies To

OraServer Object


Changes the password for a given user.


OraServer.ChangePassword user_name, current_password, new_password 


The arguments for the method are:

Arguments Description
[in] user_name A String representing the user for whom the password is changed.
[in] current_password A String representing the current password for the user.
[in] new_password A String representing the new password for whom the user account is set.


The OraServer object should be attached to an Oracle database using the Open method before to using this method.

This method is useful when a password has expired. In that case, the OpenDatabase method could return the following error:

ORA-28001 "the password has expired".