Chinaunix首页 | 论坛 | 博客
  • 博客访问: 251046
  • 博文数量: 59
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 698
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-19 21:17
文章分类

全部博文(59)

文章存档

2009年(14)

2008年(45)

我的朋友

分类: Oracle

2008-11-22 11:16:26

一次在客户端无法使用sys登陆的故障的解决。

而在客户端配置好服务名后,我们使用sys用户登陆如下:
SQL> conn as sysdba
ERROR:
ORA-01031: insufficient privileges

在本机操作如下:
SQL> alter user sys identified by sys;
User altered.
SQL> grant sysdba to xta7;
grant sysdba to xta7
*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled

说明是因为密码文件的丢失导致了在客户端登陆的故障。那么就创建密码文件呀。

shutdown 数据库后,重新创建密码文件,ok了。
orapwd file=/oracle/10g/db/dbs/orapwantiper entries=5 password=sys

注意密码文件的路径以及密码文件的名称。

阅读(774) | 评论(0) | 转发(0) |
0

上一篇:不完全恢复

下一篇:oracle10g之shrink

给主人留下些什么吧!~~