Chinaunix首页 | 论坛 | 博客
  • 博客访问: 339316
  • 博文数量: 74
  • 博客积分: 2705
  • 博客等级: 少校
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 15:13
个人简介

鱼!

文章分类

全部博文(74)

文章存档

2014年(12)

2013年(10)

2012年(4)

2011年(11)

2010年(7)

2009年(12)

2008年(16)

2007年(2)

我的朋友

分类: Oracle

2008-10-31 23:04:02

新装完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.

阅读(901) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~