您的位置:首页 > 数据库 > Oracle

oracle刚开始时Scott账户是lock状态的解决办法

2014-11-23 22:25 323 查看
1. 首先,需要对Scott账户进行解锁,输入:alter user scott account unlock;这时,提示scott账户过期并且密码过期(expired);

2. 然后,查看scott账户有效期,输入:select  * from dba_profiles s where s.profile = 'default' and resource_name = 'password_life_time';

3. 接着,设置scott账户的有效期为无限,输入:alter profile default limit password_life_time unlimited;

4. 最后,修改scott账户的密码为root,输入:alter user scott identified by root。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle scott账户 lock