新装完Oracle10g后,用system/password可以正常登录,而使用scott/tiger用户登录,会出现以下错误提示:

conn scott/tiger
error:   
oracle10g the account is locked    
oracle10g the password has expired

原因:
 默认Oracle10g的scott不能登陆。被禁用了。

解决方法:
(1)以DBA的身份登录
      conn sys/password as sysdba;
(2)解锁
      alter user scott account unlock;
(3)弹出一个修改密码的对话框,修改密码
      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.

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2021-12-10
  • 2021-04-30
  • 2021-09-15
  • 2021-06-16
  • 2022-12-23
  • 2021-08-03
猜你喜欢
  • 2022-03-08
  • 2021-10-05
  • 2021-05-07
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案