| Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E17727-03 | 
 | 
| 
 | PDF · Mobi · ePub | 
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 Stringrepresenting the user for whom the password is changed. | 
| [ in]current_password | A Stringrepresenting the current password for the user. | 
| [ in]new_password | A Stringrepresenting 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".
See Also: