2012年2月22日重启数据库报错问题解决

 SQL> startup nomount;
ORACLE instance started.

Total System Global Area 8351150080 bytes
Fixed Size                  2176320 bytes
Variable Size            4580182720 bytes
Database Buffers         3707764736 bytes
Redo Buffers               61026304 bytes
SQL> alter database mount;

Database altered.

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5:
'/opt/oracle/oracle/oradata/aaa/aaa_1.dbf'

结果一查是将文件aaa_1.dbf'移到了另外一个地方

alter database aaa rename file '/opt/oracle/oracle/oradata/aaa/aaa_1.dbf' to '/flbsmart/aaa_1.dbf';-----修改了文件

alter database open;

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01113: file 5 needs media recovery
ORA-01110: data file 5: '/flbsmart/CBS_DEFAULT_DAT_1.dbf'

 

recover database 5;

ORA-00279: change 1578186 generated at 02/22/2012 06:13:54 needed for thread 1
ORA-00289: suggestion : /opt/oracle/db/flash_recovery_area/MDSPDBZQ/archivelog/2012_02_22/o1_mf_1_346_%u_.arc
ORA-00280: change 1578186 for thread 1 is in sequence #346


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

ORA-00308: cannot open archived log '/opt/oracle/db/flash_recovery_area/MDSPDBZQ/archivelog/2012_02_22/o1_mf_1_346_%u_.arc'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3

-----这个需要archivelog来恢复

崩溃了,这个是no archive的数据库

alter database datafile 5 offline drop;

只有采取文件下线的方式

alter database open;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值