Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Altering passwords
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C087E9.9208BDB0
Content-Type: text/plain;
charset="iso-8859-1"
Thankyou so much!!! That was it.
And thank you for the example.
Best regards, Linda
-----Original Message-----
From: Jacques Kilchoer [mailto:Jacques.Kilchoer_at_quest.com]
Sent: Friday, January 26, 2001 2:34 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Altering passwords
>-----Original Message-----
>From: Hagedorn, Linda [ mailto:lindah_at_epocrates.com
<mailto:lindah_at_epocrates.com> ]
>Sent: vendredi, 26. janvier 2001 14:06
>
>I need to create a set of passwords on a new machine
>with the same passwords as on the old machine.
>I'm looking for the passwords, but I remember
>someone here had a very clever way to
>alter user xx identified by 'xxxx' which was the
>encrypted string from dba_userids.
alter user xx identified by values 'xxxx' ;
see example below.
SQL> create user nigel identified by secret default tablespace users temporary tablespace temp ;
User created.
SQL> grant create session to nigel ;
Grant succeeded.
SQL> -- allow nigel to look at dba_users SQL> grant select any table to nigel ;
Grant succeeded.
SQL> connect nigel/secret
Connected.
SQL> select password from dba_users where username = 'NIGEL' ;
PASSWORD
SQL> alter user nigel identified by new_pass ;
User altered.
SQL> connect nigel/new_pass
Connected.
SQL> alter user nigel identified by values 'E8D3F9548D8BA445' ;
User altered.
SQL> connect nigel/secret
Connected.
SQL>
------_=_NextPart_001_01C087E9.9208BDB0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>RE: Altering passwords</TITLE> <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD><BODY>
</FONT></P> <P><FONT size=2>alter user xx identified by values 'xxxx' ;</FONT> </P> <P><FONT size=2>see example below.</FONT> </P> <P><FONT size=2>SQL> create user nigel identified by secret defaulttablespace users temporary tablespace temp ;</FONT> </P>
<P><FONT size=2>User created.</FONT> </P> <P><FONT size=2>SQL> grant create session to nigel ;</FONT> </P> <P><FONT size=2>Grant succeeded.</FONT> </P> <P><FONT size=2>SQL> -- allow nigel to look at dba_users</FONT> <BR><FONT size=2>SQL> grant select any table to nigel ;</FONT> </P> <P><FONT size=2>Grant succeeded.</FONT> </P> <P><FONT size=2>SQL> connect nigel/secret</FONT> <BR><FONTsize=2>Connected.</FONT> <BR><FONT size=2>SQL> select password from dba_users where username = 'NIGEL' ;</FONT> </P> <P><FONT size=2>PASSWORD</FONT> <BR><FONT
size=2>------------------------------</FONT> <BR><FONTsize=2>E8D3F9548D8BA445</FONT> </P>
<P><FONT size=2>SQL> alter user nigel identified by new_pass ;</FONT> </P> <P><FONT size=2>User altered.</FONT> </P> <P><FONT size=2>SQL> connect nigel/new_pass</FONT> <BR><FONTsize=2>Connected.</FONT> <BR><FONT size=2>SQL> alter user nigel identified by values 'E8D3F9548D8BA445' ;</FONT> </P> <P><FONT size=2>User altered.</FONT> </P> <P><FONT size=2>SQL> connect nigel/secret</FONT> <BR><FONT size=2>Connected.</FONT> <BR><FONT size=2>SQL> Received on Fri Jan 26 2001 - 16:44:41 CST