Oracle 11G全部用户都锁啦,怎么解锁???

lovezx1028 2010-07-17 07:43:56
Oracle 11G全部用户都锁啦,怎么解锁???
...全文
1377 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
wjf123456xx 2010-10-09
  • 打赏
  • 举报
回复
解决,学习中。谢谢
碧水幽幽泉 2010-07-19
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 lovezx1028 的回复:]
SQL code

新装完Oracle10g后,用system/password可以正常登录,而使用scott/tiger用户却不能登录:
  conn scott/tiger
  error:oracle10g the account is locked
  oracle10g the password has expired
  原因:默认Oracle10g的scott不能登陆。被……
[/Quote]
你这不是解决了吗?
新装完Oracle10g, 只有sys和system能登陆, scott用户默认是被锁住了!


太虚剑 2010-07-19
  • 打赏
  • 举报
回复
你可以尝试进入cmd 然后 sqlplus "sys/你自己的密码 as sysdba"
lovezx1028 2010-07-19
  • 打赏
  • 举报
回复

新装完Oracle10g后,用system/password可以正常登录,而使用scott/tiger用户却不能登录:
  conn scott/tiger
  error:oracle10g the account is locked
  oracle10g the password has expired
  原因:默认Oracle10g的scott不能登陆。被禁用了。
  解决方法:
  首先确认已经安装oracle 数据库和客户端
  .在客户端DOS下执行如下语句:
  注意提示符号
   c:\sqlplus /nolog
  sqlp\ conn sys/system@oracle10 as sysdba // sys为当前的oracle 用户 system 为该用户密码 oracle10 为SID
  # alter user soctt account lock; // 把 scott用户锁定
  # alter user scott account unlock; //把scott用户解锁
  # alter user scott identified by scott //修改scott用户密码为 scott,scott用户默认密码为 tiger
  1 Dos下输入C:\sqlplus /nolog
  2 以DBA的身份登录
  conn sys/password as sysdba;
  3 解锁
  alter user scott account unlock;
  4 弹出一个修改密码的对话框,修改密码
  conn scott/tiger
  SQL> conn sys/sys as sysdba;
  Connected.
  SQL> alter user scott account unlock;
  User altered.
  SQL> commit;
  Commit complete.
  SQL> conn scott/tiger//请输入新密码,并确认后OK
  Password changed
  Connected.来源:考试大-Oracle认证考试




OK 多谢。。。
心中的彩虹 2010-07-18
  • 打赏
  • 举报
回复
[Quote=引用楼主 lovezx1028 的回复:]
Oracle 11G全部用户都锁啦,怎么解锁???
[/Quote]
dos 登陆
sqlplus /nolog
connect / as sysdba
alter user username account unlock
duqiangcise 2010-07-17
  • 打赏
  • 举报
回复
在解锁用户时,也可以修改该用户的密码:
如下:
alter user user_name identified by new_password account unlock;
duqiangcise 2010-07-17
  • 打赏
  • 举报
回复
连dba的账号都锁了吗?
你可以这样试试:
--用操作系统认证的方式登录oracle
conn / as sysdba;
--然后对你想要用到的账号进行解锁
alter user user_name account unlock ;

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧