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_01C087E7.F4EB9990
Content-Type: text/plain;
charset="iso-8859-1"
>-----Original Message----- >From: Hagedorn, Linda [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_01C087E7.F4EB9990
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: Altering passwords </TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>>-----Original Message-----</FONT>
<BR><FONT SIZE=2>>From: Hagedorn, Linda [<A HREF="mailto:lindah_at_epocrates.com">mailto:lindah_at_epocrates.com</A>]</FONT>
<BR><FONT SIZE=2>>Sent: vendredi, 26. janvier 2001 14:06</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>I need to create a set of passwords on a new machine</FONT>
<BR><FONT SIZE=2>>with the same passwords as on the old machine. </FONT>
<BR><FONT SIZE=2>>I'm looking for the passwords, but I remember</FONT>
<BR><FONT SIZE=2>>someone here had a very clever way to</FONT>
<BR><FONT SIZE=2>>alter user xx identified by 'xxxx' which was the</FONT>
<BR><FONT SIZE=2>>encrypted string from dba_userids. </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 default tablespace 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><FONT SIZE=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><FONT SIZE=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><FONT SIZE=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>
Received on Fri Jan 26 2001 - 16:33:08 CST
![]() |
![]() |