oracle启用scott用户配置密码并登录

SCOTT是在Oracle数据库中,一个示例用户的名称。其作用是为初学者提供一些简单的应用示例,不过其默认是锁定状态,在安装时,根据用户需要,在“数据库配置助手”界面完成后,弹出的对话框中--口令管理,里面解锁。

解锁scott用户

alter user scott account unlock

sqlplus
请输入用户名:  sys as sysdba
输入口令:

连接到: 
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL> alter user scott account unlock;

用户已更改。

SQL> conn scott/tiger;
ERROR:
ORA-01017: invalid username/password; logon denied



警告: 您不再连接到 ORACLE。

此时可以发现用scott用户依然不可以登录,这个时候我们就需要修改scott的密码

修改scott的密码

SQL> conn sys as sysdba
输入口令: 
已连接。
SQL> alter user scott identified by tiger;

用户已更改。

SQL> conn scott/tiger;
已连接。

sqlplus连接scott用户

[root@oracle ~]# sqlplus scott/tiger@你的实例名

SQL*Plus: Release 11.2.0.4.0 Production on 星期三 4月 8 10:46:29 2020

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


连接到: 
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> 

这样就可以连接上scott用户了

  • 7
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值