sqlplus输入scott/tiger报错:the account is locked

来源:互联网 发布:linux apache下载64位 编辑:程序博客网 时间:2024/05/01 05:47

sqlplus输入scott/tiger报错:the account is locked

(2008-12-31 10:50:10)
转载
标签:

杂谈

分类: oracle

oracle sqlplus输入scott/tiger报错:the account is locked的解决办法

在oracle中,初学者经常报一个错误:

the account is locked

这个错误几乎所有的初学者都会遇到.

其实解决办法非常简单.

请输入用户名: SYSTEM
输入口令:admin(注意,这个密码是你在安装oracle时第一步设置的)

然后系统会显示:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

这说明登录成功了.

接着输入语句:

alter user scott account unlock;

这条语句的作用是解锁.接着显示:

用户已更改。

说明解锁成功,输入exit退出.

重新登录:

输入用户名:scott

密码:tiger

这时会提示修改密码.最好重新输入原有的密码tiger.

完成所有步骤了!