新博客http://www.cnblogs.com/zhjh256 欢迎访问
分类: Oracle
2007-12-30 21:51:47
SQL> select 'alter user &&1 identified by &&1;' nl,
2 'connect &&1/&&1' nl,
3 'alter user &&1 identified by values '''||u.password||''';' nl
4 from sys.dba_users u
5 where u.username = upper('&&1')
6 and u.username <> user
7 /
alter user scott identified by scott; connect scott/scott alter user scott identified by values 'F894844C34402B67';
SQL> alter user scott identified by scott;
User altered
SQL> connect scott/scott
Connected to Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
Connected as scott
SQL> alter user scott identified by values 'F894844C34402B67';
User altered
SQL>
SQL> select 'Connected as '||USER||' on '||global_name||'.'
2 from global_name;
Connected as SCOTT on ORCL.
SQL> conn scott/tiger;
Connected to Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
Connected as scott