Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Change User
On Tue, 5 May 1998 12:00:14 -0400, "Murtaza Doctor"
<mdoctor_at_firstsense.com> wrote:
>
> Is there a way for a dba to change a login to another user
> - if he/she does not have the user password?
> (without logging off ofcourse).
>
> Sybase has the "setuser" command to do this.
>
> Thankyou.
>
>
>
>
Do this using the ALTER USER statement. If you are the DBA, you can change anyone's password without knowing what their old password was.
User created.
SQL> grant connect, resource to foo;
Grant succeeded.
SQL> connect foo/foo;
Connected.
SQL> connect system/manager;
Connected.
SQL> alter user foo identified by newpassword;
User altered.
SQL> connect foo/newpassword;
Connected.
SQL>
Joel
Joel R. Kallman Oracle Government, Education, & Health
Columbus, OH http://govt.us.oracle.com jkallman@us.oracle.com http://www.oracle.com
![]() |
![]() |