RMAN restore data files

Prior to the experiments to back up the database

RMAN>backup database;

5 delete data files in the operating system

SQL > the Startup 
ORACLE instance started. 

Area System, Ltd. Free Join Total 5060792320 bytes 
Fixed Size                   2.28996 million bytes 
Variable Size             3.355447 billion bytes
 Database Buffers          1694498816 bytes 
Redo Buffers                 8556544 bytes 
database loading is completed. 
ORA - 01157 : can not identify / lock data file 5  - See DBWR trace file 
ORA - 01110 : data file 5 : ' D: \ ORADATA \ USER_DATAFILES \ TS_CG01.DBF '


SQL> select status from v$instance;

STATUS
------------
MOUNTED

Start a database error when using rman recovery tool:

The RMAN > List failure; 

using alternate target database control file recovery catalog 
database defect list 
========================= 

failure detection time priority status summary ID 
- - ----- -------- ------- --------- ---------- 
2242     HIGH      the OPEN       17 - September - 19 missing one or more non-system data files 


the RMAN > SQL ' ALTER Database datafile. 5 Offline ' ; 

the RMAN >  Restore datafile . 5 ; 

the RMAN > Recover datafile . 5 ; 

the RMAN > SQL ' ALTER Database Online datafile. 5';

Data file recovery is complete, restart the database without exception.

 

Guess you like

Origin www.cnblogs.com/colaclicken/p/11535475.html