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");