ChangePassword and expired password (ORA-28001) ??
Posted: Thu 05 May 2005 00:46
i need to change password when password expired on Oracle
i try to catch exception:
but it is also initial exception ORA28001 and password dont change
in ODP.NET it was simple:
so, how i can change password if password is expired ?
i try to catch exception:
Code: Select all
try{
my_connection.Open();
}
catch (OracleException e)
{
if (e.Code == 28001)
my_connection.ChangePassword("new_password");
}
in ODP.NET it was simple:
Code: Select all
my_connection.OpenWithNewPassword("new_password");