Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:50:04+00:00 2026-05-24T01:50:04+00:00

I have a c# client and I am using oracle 10g database. My query

  • 0

I have a c# client and I am using oracle 10g database.

My query is:

  1. Is the expiry grace period over and above exiry date?
  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.
  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).
  4. When the password has already expired, is it that only DBA can change your password.
  5. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:50:04+00:00Added an answer on May 24, 2026 at 1:50 am

    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.

    try
    {
        OracleConnection conn = new OracleConnection("User ID=" + uid + ";Password=" + pwd + ";SERVER=" + server);
        conn.InfoMessage += new OracleInfoMessageEventHandler(GetOracleWarningInfoMessage);        
        conn.Open();
        return ConnectionStatus.OK;
    }
    catch (System.Data.OracleClient.OracleException ex)
    {
        Logger.Error(ex);
        switch (ex.Code)
        {
            case 1005: //null password given
                errmsg = "Invalid password";
                return ConnectionStatus.InvalidUserPwd;
            case 1017: //invalid username/password
                errmsg = "Invalid username/password";
                return ConnectionStatus.InvalidUserPwd;
            case 1040: //invalid character in password
                errmsg = "Invalid password";
                return ConnectionStatus.InvalidUserPwd;
            case 28000://account locked
                errmsg = "Account locked. Contact DBA or wait for PASSWORD_LOCK_TIME";
                return ConnectionStatus.Locked;
            case 28001://password expired                       
                errmsg = "Password expired. Contact DBA";
                return ConnectionStatus.Expired;
            default:
                errmsg = ex.Message;
                return ConnectionStatus.Failed;
        }
    }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)
I have been studying Oracle's mechanism for authenticating against a 10g database. Although it
Hai All, I'm developing the application using .net 2008 and Oracle 10g as database.
We have a product using Oracle, with about 5000 objects in the database (tables
I am using Oracle 10g. and I have the following relational structure that I
I have developed a C# 3.5 Mvc 1.0 application using oracle 11gR2 client which
We have a problem using ODAC11 (client) and Oracle databases version 9.0 and 9.1.
I have Oracle 11 database to which I connect using both JDBC and ODBC.
I have a client who is still using Visual Studio 6 for building production
I have a client-server application written in Java using CORBA for the communication. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.