Chinaunix首页 | 论坛 | 博客
  • 博客访问: 815825
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

2012年(101)

分类: Oracle

2012-06-12 15:56:00

SQL> alter database mount;

alter database mount

*

ERROR at line 1:

ORA-01103: database name 'ORCL' in control file is not 'health'

解决办法:

1.此时只能在nomount状态,不能备份controlfile。

2.建立pfile文件,如/oradata/init.ora.

3.修改init.ora,把db_name改成ORCL。

4.使用init.ora重启数据库到mount状态。

5.备份controlfile:

alter database backup controlfile to trace;

6.编辑备份的controlfile,替换该文件中的所有ORCL为health.

7.shutdown 数据库,修改init.ora的db_name为health.

8.运行@/oradata/controlfile.sql --即重建控制文件。

9.重启数据库后恢复正常状态。

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