Chinaunix首页 | 论坛 | 博客
  • 博客访问: 196876
  • 博文数量: 72
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 738
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-12 14:51
文章分类

全部博文(72)

文章存档

2011年(34)

2010年(38)

我的朋友

分类: Oracle

2010-09-29 21:53:08

统计没问题,刚好上次配置系统的时候有点问题,故重装一次,配置好安全策略(最近在研究如何新配置一台的时候,第一时间配置好相关的安全设置,有空再写下来)。

      为了省事,直接冷备份的数据文件,好oracle后,直接恢复到原来对应的目录。启动,出现:

SQL> startup
ORACLE 例程已经启动。

Total System Global Area  135338868 bytes
Fixed Size                   453492 bytes
Variable Size             109051904 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
ORA-01991: ???????'D:\oracle\ora92\DATABASE\PWDora9.ORA'

解决方法,由于未运行在归档模式下,使用orapwd重建oracle的密码文件:

C:\>orapwd /help
Usage: orapwd file=password=entries=

  where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
  There are no spaces around the equal-to (=) character.

SQL> host del D:\oracle\ora92\DATABASE\PWDora9.ORA

SQL> host orapwd file=D:\oracle\ora92\DATABASE\PWDora9.ORA password=oraclepass e
ntries=10

SQL> alter database open;

已更改。

重新登录的时候,应该输入旧数据库设定的密码;

更具体完全的恢复,可参考:

%20database%20example.html

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