1、描述
11.2.0.4單實例主備庫,主庫system01.dbf誤刪除,致使數據庫啓動失敗。數據庫
2、現象
SQL> startup
ORACLE instance started.session
Total System Global Area 3089920000 bytes
Fixed Size 2257232 bytes
Variable Size 654315184 bytes
Database Buffers 2415919104 bytes
Redo Buffers 17428480 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/oradata/devdb/system01.dbf'ide
3、處理過程進程
Total System Global Area 3089920000 bytes
Fixed Size 2257232 bytes
Variable Size 654315184 bytes
Database Buffers 2415919104 bytes
Redo Buffers 17428480 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/oradata/devdb/system01.dbf'it
SQL> recover database;
Media recovery complete.
SQL> alter database open;io
Database altered.class
3.啓動備庫、啓用恢復進程
SQL> startup
SQL> alter database recover managed standby database using current logfile disconnect from session;file
Database altered.select
SQL> select process,status from v$managed_standby;數據
PROCESS STATUS
ARCH CLOSING
ARCH CONNECTED
ARCH CONNECTED
ARCH CLOSING
RFS IDLE
RFS IDLE
RFS IDLE
MRP0 APPLYING_LOG
8 rows selected.