I have a c# client and I am using oracle 10g database.
My query is:
- Is the expiry grace period over and above exiry date?
- When the user is in grace period can the user change his/her password using query
ALTER USER XYZ IDENTIFIED BY SOMEPWDor he still need to contact DBA. - How can I handle oracle warning ORA-28002(when the user is in grace period) in c# client. does it at all gets transmitted to c# client. Would it still be handled as exception (try-catch).
- When the password has already expired, is it that only DBA can change your password.
- does the account gets locked also when expiry date has exceeded beyond grace period.
Please note I am not sys dba so I cannot access dba_users or dba_profiles.
Thanks in advance.
Finally I have found solution to my problem. Here are the points for everyones information:
1) Is the expiry grace period over and above exiry date?
Answer: Yes its over and above.
2) When the user is in grace period can the user change his/her password using query “ALTER USER XYZ IDENTIFIED BY SOMEPWD” or he still need to contact DBA.
Answer: No user cannot run this query because it would first require to be connected to database. With expired password you cannot connect.
3) How can I handle oracle warning ORA-28002(when the user is in grace period) in c# client. does it at all gets transmitted to c# client. Would it still be handled as exception (try-catch).
Answer: ORA-28002 error can be handled in c# client as OracleClientInfoMessage. Here is the sample code.
4) When the password has already expired, is it that only DBA can change your password.
Answer: The user can change the password himself. If you are using SQLPlus or ODP.net driver you will get a prompt. However if you are using OracleClient (Microsoft) driver you will not be able to since it lacks the OpenWithNewPassword function(which allows to change password before established connection). Probably becuase of non co-operation movement between Mircosoft and Oracle.
OpenWithNewPassword support is only available in Driver ODP(OracleDataProvider) and native OCL. For details refer to link : MSDN or Oracle.
5) does the account gets locked also when expiry date has exceeded beyond grace period.
Answer: No it gets Expired not Locked.