Warning: You are no longer connected to ORACLE. SQL> select username from dba_users; SP2-0640: Not connected SQL> conn / as sysdba Connected.
SQL> select username from dba_users where username like 'HE%';
USERNAME -- ---- ---- ---- ---- ---- -- HERMES
This seems not to be permanent. Which view will help me to change it permanently?
Regards -- Chirag
<div>Hi,</div> <div> </div> <div>I am changing the name of user in USER$ table.</div> <div> <p>SQL> select user#,name from user$ where name like 'SCO%';</p> <p> USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- --- ----<br> 59 SCOTT<br>   ; 64 SCOTT1</p></div> <div> <p>SQL> update user$ set name='HERMESNEW' where user#=64;</p> <p>1 row updated.</p> <p>SQL> commit;</p> <p>Commit complete.</p> <p>SQL> select user#,name from user$ where name like 'SCO%';</p> <p> USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- --- ----<br> 59 SCOTT</p> <p>SQL> select user#,name from user$ where name like 'HER%';</p> <p> USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- --- ----<br> 65 HERMES<br> 64 HERMESNEW<br></p> <p>SQL> alter user hermesnew identified by chirag;</p> <p>User altered.</p> <p>SQL> conn hermesnew/chirag<br>ERROR:<br>ORA-01017 (See ORA-01017.ora-code.com): invalid username /password; logon denied</p> <p><br>Warning: You are no longer connected to ORACLE.<br>SQL> select username from dba_users;<br>SP2-0640: Not connected<br>SQL> conn / as sysdba <br>Connected.</p> <p>SQL> select username from dba_users where username like 'HE%';</p> <p>USERNAME<br>-- ---- ---- ---- ---- ---- --<br>HERMES</p> <p> </p> <p>This seems not to be permanent. Which view will help me to change it permanently?</p> <p> </p> <p>Regards -- Chirag </p></div>