oracle中scott不可登录的解决办法
2016-07-29 09:55
330 查看
今天用scott用户登录Oracle数据库时,竟然出现了ORA-01017:
invalid username/password; logon denied错误,原以为是因为我的scott用户没有解锁,后用system用户登录,然后用alter user scott account unlock语句对scott用户进行解锁,可是解锁后依然不能进入,还是报告ORA-01017: invalid username/password; logon denied错误,仔细想了一会,感觉应该是我在对scott用户解锁时没有设置密码,所以不论输入什么密码都是错误的,于是我想到了如下的解决办法,为防止以后犯此类错误,现将错误及解决方式记录于下:
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 10月 12 20:03:09 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
请输入用户名: scott
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied
请输入用户名: system
输入口令:
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> conn /as sysdba;
已连接。
SQL> alter user SCOTT account unlock identified by Orcl123456;
用户已更改。
SQL> select username,account_status from dba_users where username='SCOTT';
USERNAME
------------------------------------------------------------
ACCOUNT_STATUS
----------------------------------------------------------------
SCOTT
OPEN
SQL> conn scott/Orcl123456
已连接。
invalid username/password; logon denied错误,原以为是因为我的scott用户没有解锁,后用system用户登录,然后用alter user scott account unlock语句对scott用户进行解锁,可是解锁后依然不能进入,还是报告ORA-01017: invalid username/password; logon denied错误,仔细想了一会,感觉应该是我在对scott用户解锁时没有设置密码,所以不论输入什么密码都是错误的,于是我想到了如下的解决办法,为防止以后犯此类错误,现将错误及解决方式记录于下:
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 10月 12 20:03:09 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
请输入用户名: scott
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied
请输入用户名: system
输入口令:
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> conn /as sysdba;
已连接。
SQL> alter user SCOTT account unlock identified by Orcl123456;
用户已更改。
SQL> select username,account_status from dba_users where username='SCOTT';
USERNAME
------------------------------------------------------------
ACCOUNT_STATUS
----------------------------------------------------------------
SCOTT
OPEN
SQL> conn scott/Orcl123456
已连接。
相关文章推荐
- 解决oracle用户scott无法登录问题,解锁即可
- 使用scott登录Oracle以后,创建视图,提示“权限不够”,怎么解决?
- oracle命令登录,锁死解决办法
- Oracle 学习笔记3:新建数据库没有scott用户解决办法
- 64位win7系统安装oracle后,使用PL/SQL登录报错解决办法
- oracle 登录 http://localhost:1158/em/console 不显示,账号无法登陆的解决办法
- 在安装oracle10.2.0.1数据库时没有安装scott/tiger用户解决办法
- Oracle 11g sys,system,scott密码没有设置解决办法
- 关于oracle 11g 显示没创建scott用户的解决办法
- 属性IsLocked不可用于登录"[sa]解决办法
- 在SQL*Pluse中以scott/tiger登录时提示ora-28000 the account is locked,解决办法
- 【oracle】oracle 10g 登录em后,提示java.lang.Exception: Exception in sending Request :: null,解决办法
- oracle远程登录解决办法
- oracle远程登录解决办法
- Oracle 10g控制台登录错误解决办法
- oracle关于scott无法登陆,scott账号被锁定的解决办法
- 登录oracle时,scott is locked (帐户被锁定) 的解决方法
- oracle 登录http://localhost:5560/isqlplus/dba 任意账号无法登陆的解决办法
- oracle刚开始时Scott账户是lock状态的解决办法
- 无法以scott/tiger登录Oracle 10g的解决方法