首页 > 数据库 > Oracle > Oracle 11g 修改密码前应该做些什么?
|
[oracle@tora01 ~]$ sqlplus / as sysddba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jul 28 11:48:33 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create user sam identified by sam;
User created.
SQL> grant connect to sam;
Grant succeeded.
|
|
SQL> set lines 200
SQL> col passwrod for a20
SQL> col spare4 for a70
SQL> select password,spare4 from user$ where name='SAM';
PASSWORD SPARE4
-------------------- ----------------------------------------------------------------------
4B95138CB6A4DB94 S:DD85639AB2542CB45E1138F8570E837C95555A337D60752453848A22F1E9
|
|
SQL> alter user sam identified by Oracle;
User altered.
|
|
SQL> select password,spare4 from user$ where name='SAM';
PASSWORD SPARE4
-------------------- ----------------------------------------------------------------------
25CA928B1DB71583 S:CF85AA4FA2DA01D1FC0B0C7C540C9A49A966A638302DC007AF1B2481CD5B
|
|
SQL> conn sam/Oracle;
Connected.
|
|
SQL> conn / as sysdba
Connected.
SQL> update user$ set password='4B95138CB6A4DB94' where name='SAM';
1 row updated.
SQL> update user$ set spare4='S:DD85639AB2542CB45E1138F8570E837C95555A337D60752453848A22F1E9' where name='SAM';
1 row updated.
SQL> commit;
Commit complete.
|
|
SQL> alter system flush shared_pool;
System altered.
|
|
SQL> conn sam/sam;
Connected.
|
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26148431/viewspace-1754165/ ,如需转载,请注明出处,否则将追究法律责任。