DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: I need to change a user password and then change it back to the original password...

  1. #1
    Join Date
    Feb 2001
    Posts
    1

    Cool

    I currently have a user I need to login as but is not here to give me his password. I have system priveleges and I believe there is a way to change the password of the user and then change it back again to the original password...anybody know how to do this? Thanks in advance!

  2. #2
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    <font face=courier>
    spool altuserpwd.sql
    SELECT 'ALTER USER '||USERNAME||' IDENTIFIED BY VALUES '||''''||PASSWORD||''''||';'
    FROM DBA_USERS
    where username in ('XYZ')
    /
    </font>

  3. #3
    Join Date
    Mar 2000
    Location
    Atlanta, GA,USA
    Posts
    155
    After that you can
    1) change his password for a new one
    2) do whatever you wand
    3) execute the script to restore the password
    4) restard database to let Oracle to use old password.

    Sergey.

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    [QUOTE][i]Originally posted by pss [/i]
    [B]
    4) restard database to let Oracle to use old password.
    [/B][/QUOTE]

    You don't have to restart the database, it is done immediately.
    Jeff Hunter

  5. #5
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Just a thought, I think when you finish what you have to do,you can just tell the user you have changed his password to perform some necessary job and tell him to change his password to whatever he wants.

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