生产系统不知何故无法访问。技术人员将网卡重新设置后。发现ORACLE数据库挂掉。重启数据库。无法启动
提示
ORA-01221:data file 2 is not the same file to background process
从网上找一些恢复手段都无法解决。
系统是非归档模式
RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE,报
ORA-00283:RECOVER SESSION CANCELED DUE TO ERRORS
ORA-01221:data file 2 is not the same file to background process
求教各位。需要什么信息我来贴。求大神。
SQL> startup
ORACLE instance started.
Total System Global Area 2.0233E+10 bytes
Fixed Size 2056712 bytes
Variable Size 1241517560 bytes
Database Buffers 1.8941E+10 bytes
Redo Buffers 48271360 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs
2 ;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/home/oracle/oradata/psp/system01.dbf'
SQL> sho parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /home/oracle/product/10.2.0.1/
db_1/dbs/spfilepsp.ora
SQL>
SQL>
SQL> shutdown.sh
SP2-0717: illegal SHUTDOWN option
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile='/home/oracle/spfile/spfile.ora';
LRM-00101: unknown parameter name '*_allow_resetlogs_corruption'
ORA-01078: failure in processing system parameters
SQL> startup pfile='/home/oracle/spfile/spfile.ora';
ORACLE instance started.
Total System Global Area 2.0233E+10 bytes
Fixed Size 2056712 bytes
Variable Size 1241517560 bytes
Database Buffers 1.8941E+10 bytes
Redo Buffers 48271360 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00344: unable to re-create online log '/data/oradata/REDO01.DBF'
ORA-27041: unable to open file
Linux-x86_64 Error: 30: Read-only file system
Additional information: 4
SQL> recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-01221: data file 2 is not the same file to a background process