Total System Global Area 6.8413E+10 bytes
Fixed Size 2222664 bytes
Variable Size 4966057400 bytes
Database Buffers 6.3351E+10 bytes
Redo Buffers 93634560 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/dev/vgdb1ora8/rlvorasysaux'
ALERT日志也有大量的报错
1
2
3
4
5
6
7
ERROR: clonedb parameter not set. Make sure clonedb=TRUE is set
Errors in file /oracle11g/app/oracle/diag/rdbms/db1/db1/trace/db1_dbw0_20898.trc:
ORA-01157: ????/?????? 2 - ??? DBWR ????
ORA-01110: ???? 2: '/dev/vgdb1ora8/rlvorasysaux'
ORA-17503: ksfdopn: 1 ?????? /dev/vgdb1ora8/rlvorasysaux
ORA-17515: ???????? clonedb ???
......
于是到MOS查相关错误,还真有一篇与我们现在的情况类似:ORA-01157 Cannot Identify Lock On Datafile Error During Upgrade (文档 ID 1917635.1)。但是从文档描述来看,说是祼设备有坏块导致的,但是明明几分钟前的shutdown immediate干净关闭数据库的,怎么会有坏块,而且,RMAN备份时也没有报错。
于是关闭现在的实例,环境变量切回到11.2.0.3,启动数据库,神奇的一幕发生了,数据库居然正常启动了
1
2
3
4
5
6
7
8
9
10
SYS@db1> startup
ORACLE instance started.
Total System Global Area 6.8413E+10 bytes
Fixed Size 2199712 bytes
Variable Size 1.5569E+10 bytes
Database Buffers 5.2748E+10 bytes
Redo Buffers 93655040 bytes
Database mounted.
Database opened.
Total System Global Area 6.8413E+10 bytes
Fixed Size 2199712 bytes
Variable Size 1.5569E+10 bytes
Database Buffers 5.2748E+10 bytes
Redo Buffers 93655040 bytes
ORA-00201: control file version 11.2.0.4.0 incompatible with ORACLE version 11.2.0.3.0
ORA-00202: control file: '/dev/vgdb1ora8/rlvoracontrol01'
restore controlfile from /home/oracle/backup/bak_control_20161227;
alter database mount;
restore tablespace system,sysaux,undotbs1;
recover database until scn xxxxxxxx;
alter database open resetlogs;