oracle unlock\lock user account
解锁:
SQL>conn sys/password as sysdba;
SQL>alter user hr account unlock;
由于用户还处于过期状态,所以需要重设密码:
SQL> password hr;
Changing password for hr
New password: **
Retype new password: ** (hr)
Password changed
SQL>
SQL> conn hr/hr;
Connected.
SQL>
批量所用户
SQL> select username, DEFAULT_TABLESPACE from dba_users;
USERNAME
------------------------------ ------------------------------
SYS
SYSTEM
DBSNMP
SYSMAN
SCOTT
MAX
HR
TEST
OUTLN