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

Thread: Creating a Copy of a User Account

  1. #1
    Join Date
    May 2006
    Posts
    1

    Creating a Copy of a User Account

    Is there a way to create a copy of a user account that will preserve the same password as original?

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    yes, pull the passwords out of dba_users and use that to create the new user with

  3. #3
    Join Date
    Apr 2001
    Location
    Bangalore, India
    Posts
    727
    Code:
    SQL> conn / as sysdba
    Connected.
    SQL> select password from dba_users where username='THOMAS';
    
    PASSWORD
    ------------------------------
    063D8DE086C2860D
    
    SQL> alter user xyz identified by values '063D8DE086C2860D';
    
    User altered.
    
    SQL> conn thomas/thomas
    Connected.
    SQL> conn xyz/thomas
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    
    Warning: You are no longer connected to ORACLE.
    SQL> conn / as sysdba
    Connected.
    SQL> select username,password from dba_users where username in ('THOMAS','XYZ');
    
    USERNAME                       PASSWORD
    ------------------------------ ------------------------------
    XYZ                            063D8DE086C2860D
    THOMAS                         063D8DE086C2860D
    Some thing fishy... Version: 10.1 Oracle on Windows 2000
    Thomas Saviour(royxavier@yahoo.com)
    Technical Lead (Databases)
    Thomson Reuters (Markets)

    http://ora600tom.wordpress.com/

  4. #4
    Join Date
    Apr 2001
    Location
    Bangalore, India
    Posts
    727
    Some thing new in 10g.

    You can use the encripted password for the same user and not for a new user. That is you can never create user with same password, if you don't know the password. I mean, you can't use encrypted password for an existing user to create a new user! Read metalink doc: 279355.1
    Thomas Saviour(royxavier@yahoo.com)
    Technical Lead (Databases)
    Thomson Reuters (Markets)

    http://ora600tom.wordpress.com/

  5. #5
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    hmm perhaps not then, i thought that would work

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