I.查询用户名和用户加密密码
oracle11g执行sql语句:
select u.name,u.password from user$ u where u.name in (select username from dba_users);
oracle10g执行sql语句:
select username,password from dba_users;
结果如下:
NAME PASSWORD
------------------------------ ------------------------------
MGMT_VIEW B68BD90C4991269D
SYS B898A7F877F295DD
SYSTEM 0D5E5997E5E736D6
DBSNMP DDB3FA74D5106ADA
SYSMAN 8412F67860E9BDFC
ORACLESTUDY B00A0580F85B6D50
OUTLN 4A3BA55E08595C81
FLOWS_FILES 28A140FCC1F33914
MDSYS 72979A94BAD2AF80
ORDSYS 7EFA02EC7EA6B86F
EXFSYS 33C758A8E388DEE5
II.复制出加密密码,如oracleStudy用户的加密密码为B00A0580F85B6D50,并保存下来;
III.修改oracleStudy用户密码:
alter user oracleStudy identified by 123456;
IV.使用oracleStudy用户的123456密码连接:conn oracleStudy/123456;
V.使用完成之后重置回原来密码:
alter user oracleStudy identified by values 'B00A0580F85B6D50';