Chinaunix首页 | 论坛 | 博客
  • 博客访问: 576762
  • 博文数量: 94
  • 博客积分: 1452
  • 博客等级: 上尉
  • 技术积分: 982
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 15:38
文章分类

全部博文(94)

文章存档

2018年(3)

2014年(26)

2013年(11)

2012年(3)

2011年(43)

2010年(8)

分类: Oracle

2011-12-27 16:42:02

1) 为了省事,直接冷备份oracle的数据文件,安装好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\product\10.1.0\db_1\DATABASE\PWDtest.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\product\10.1.0\DATABASE\PWDtest.ORA

SQL> host orapwd file=D:\oracle\product\10.1.0\db_1\DATABASE\PWDtest.ORA password=xxxxx
entries=10

SQL> alter database open;

数据库已更改。

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

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