Administrator account
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 10

Thread: Administrator account

  1. #1
    Join Date
    May 2010
    Posts
    4

    Administrator account

    Hi, I'm new to Oracle. I lost DBA password (SYS, SYSTEM, etc.) of an existing Oracle 9i database. Any idea how to find it out or, at least how to run sql commands at DB level without knowing any password? Thanks.

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    I assume OS authentication was set, try this...
    log into the box using "oracle" account...
    set ORACLE_HOME and ORACLE_SID
    sqlplus /nolog
    conn sys as sysdba
    hit enter when asked for a password
    at this point you will be able to set new passwords for sys and system.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    May 2010
    Posts
    4
    Thanks PAVB.

    What do you mean by 'set ORACLE_HOME and ORACLE_SID'? Where? Set to what? By the way, I skipped that step.

    I hit enter when asked for a password; I get the error:

    ERROR:
    ORA-01031: insufficient privileges

    Also, once the above is resolved, how would I set new passwords?

    Thanks again.

  4. #4
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    If you don't know how to set environment variables, change passwords then please contact your DBA. He will do it for you.

    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  5. #5
    Join Date
    May 2010
    Posts
    4
    Thanks vnktummala. Just to let you know, if I had that option I wouldn't be bothering you with such questions in the first place, which I admit are basic.

  6. #6
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    well, i understood. But we at this forum expect minimum effort from the posters before they post for help.

    by the way, what is the operating system in the DB server?

    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  7. #7
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by lakram View Post
    What do you mean by 'set ORACLE_HOME and ORACLE_SID'? Where? Set to what?
    Chances are you are sitting in the wrong chair.

    Is this a home lab or is it a corporate environment?
    If corporate... What are your position/responsibilities in the company?
    If corporate... Does this affects production?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  8. #8
    Join Date
    May 2010
    Posts
    4
    @Vijay: Win server 2000 SP4

    @Pablo: yes, wrong chair, in the sense that I'm not a DBA and I have no Oracle background.
    It's a corporate environment, that needs to be restructured, and I'm here to do just that.
    I'm head of IT, new at the company, need to do some restructuring but, at the same time, deal with such problems meanwhile.

    Thanks.

  9. #9
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by lakram View Post
    I'm head of IT
    Please don't take it the wrong way, I strongly suggest to hire a DBA - even a temp consultant will do in the short term.

    You are new in the company, blame the previous administration and ask for resources to clean up the mess.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  10. #10
    Join Date
    Oct 2008
    Location
    Chandigarh, India
    Posts
    322
    Quote Originally Posted by lakram View Post
    @Vijay: Win server 2000 SP4

    @Pablo: yes, wrong chair, in the sense that I'm not a DBA and I have no Oracle background.
    It's a corporate environment, that needs to be restructured, and I'm here to do just that.
    I'm head of IT, new at the company, need to do some restructuring but, at the same time, deal with such problems meanwhile.

    Thanks.
    Sometimes, there are such situations.

    Make sure your OS user account is member of ORA_DBA group (My Computer->Right Click->Manage->Local Users and Groups->Groups).
    If no, add it.

    Then, sqlplus/nolog
    SQL> conn sys@service_name as sysdba


    When asked for password, press Enter (type nothing).
    lucky

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width