oracle打开scott用户_Oracle解锁scott账户

Oracle安装完成之后scott账户默认是锁定的,登录的时候会提示账户已经被锁定:C:\Users\CC11001100>sqlplus scott/toor

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:21:27 2017

Copyright (c) 1982, 2005, Oracle. All rights reserved.

ERROR:

ORA-28000: the account is locked

请输入用户名:

需要手动打开。

使用安装时设定的sys密码登录,特权用户登录的时候必须带上as sysdba 或者as sysoper:C:\Users\CC11001100>sqlplus sys/toor as sysoper

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:12:43 2017

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到:

Oracle Database 10g Release 10.2.0.1.0 - Production

SQL>

登录进去之后解锁scott账户:SQL> alter user scott account unlock ;

用户已更改。

修改scott的密码:SQL> alter user scott identified by toor ;

用户已更改。

再使用scott登录就可以登录成功了:C:\Users\CC11001100\Desktop>sqlplus scott/toor

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 6月 9 01:48:04 2017

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到:

Oracle Database 10g Release 10.2.0.1.0 - Production

SQL> show user;

USER 为 "SCOTT"

.

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值