第一種方式
数据库装完后,除了sys和system,scott用户外都已经锁定了,你要使用这些用户,必须unlock用户,给用户赋予一个新密码就可以用该用户登录了
you can see these counts have be locked since the date of the creation of the database .
SQL> select username,lock_date from dba_users;
USERNAME LOCK_DATE
------------------------------ ----------
SYS
SYSTEM
DBSNMP
OUTLN 29-4月 -04
WMSYS 29-4月 -04
HR 29-4月 -04
已选择6行。
first step , unlock the count
SQL> alter user hr account unlock;
用户已更改。
the second step : grant a new password (eg : hr)
SQL> alter user hr identified by hr;
用户已更改。
now ,u can login with this account
SQL> conn hr/hr
已连接。
第二種方式
用sys或system登陆
SQL> alter user hr identified by hr account unlock;
用户已更改。