恢复数据库报ORA-19573错误,错误信息如下:RMAN>RESTORE DATABASE;Starting restore at 15-JUL-15using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=9 device type=DISKchannel ORA_DISK_1: restoring datafile 00001input datafile copy RECID=2 STAMP=884555266 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_SYSTEM_BSTBH904_.DBFdestination for restore of datafile 00001: E:\APP\TIANPAN\ORADATA\PTIAN\SYSTEM01.DBFRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of restore command at 07/15/2015 10:36:55ORA-19573: cannot obtain exclusive enqueue for datafile 1ORA-19600: input file is datafile-copy 2 (E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_SYSTEM_BSTBH904_.DBF)ORA-19601: output file is datafile 1 (E:\APP\TIANPAN\ORADATA\PTIAN\SYSTEM01.DBF)RMAN> 原因:SQL> SELECT STATUS FROM V$INSTANCE;STATUS------------OPEN整库恢复的话需要在MOUNT状态操作(表空间或数据文件级的恢复也可以在OPEN状态下操作)。而我的数据库实际处于OPEN状态,所以做整库恢复当然会失败。解决方法:很简单,关闭数据库,然后启动数据库到MOUNT状态,即可。RMAN> shutdown immediate;database closeddatabase dismountedOracle instance shut downRMAN> STARTUP MOUNT;connected to target database (not started)Oracle instance starteddatabase mountedTotal System Global Area 1071333376 bytesFixed Size 1375792 bytesVariable Size 637534672 bytesDatabase Buffers 427819008 bytesRedo Buffers 4603904 bytesRMAN> restore database;Starting restore at 15-JUL-15allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=63 device type=DISKchannel ORA_DISK_1: restoring datafile 00001input datafile copy RECID=2 STAMP=884555266 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_SYSTEM_BSTBH904_.DBFdestination for restore of datafile 00001: E:\APP\TIANPAN\ORADATA\PTIAN\SYSTEM01.DBFchannel ORA_DISK_1: copied datafile copy of datafile 00001output file name=E:\APP\TIANPAN\ORADATA\PTIAN\SYSTEM01.DBF RECID=0 STAMP=0channel ORA_DISK_1: restoring datafile 00002input datafile copy RECID=3 STAMP=884555292 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_SYSAUX_BSTBJDFQ_.DBFdestination for restore of datafile 00002: E:\APP\TIANPAN\ORADATA\PTIAN\SYSAUX01.DBFchannel ORA_DISK_1: copied datafile copy of datafile 00002output file name=E:\APP\TIANPAN\ORADATA\PTIAN\SYSAUX01.DBF RECID=0 STAMP=0channel ORA_DISK_1: restoring datafile 00003input datafile copy RECID=4 STAMP=884555305 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_UNDOTBS1_BSTBK5V1_.DBFdestination for restore of datafile 00003: E:\APP\TIANPAN\ORADATA\PTIAN\UNDOTBS01.DBFchannel ORA_DISK_1: copied datafile copy of datafile 00003output file name=E:\APP\TIANPAN\ORADATA\PTIAN\UNDOTBS01.DBF RECID=0 STAMP=0channel ORA_DISK_1: restoring datafile 00004input datafile copy RECID=7 STAMP=884555314 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_USERS_BSTBKKVB_.DBFdestination for restore of datafile 00004: E:\APP\TIANPAN\ORADATA\PTIAN\USERS01.DBFchannel ORA_DISK_1: copied datafile copy of datafile 00004output file name=E:\APP\TIANPAN\ORADATA\PTIAN\USERS01.DBF RECID=0 STAMP=0channel ORA_DISK_1: restoring datafile 00005input datafile copy RECID=5 STAMP=884555312 file name=E:\APP\TIANPAN\FLASH_RECOVERY_AREA\PTIAN\DATAFILE\O1_MF_EXAMPLE_BSTBKF80_.DBFdestination for restore of datafile 00005: E:\APP\TIANPAN\ORADATA\PTIAN\EXAMPLE01.DBFchannel ORA_DISK_1: copied datafile copy of datafile 00005output file name=E:\APP\TIANPAN\ORADATA\PTIAN\EXAMPLE01.DBF RECID=0 STAMP=0Finished restore at 15-JUL-15RMAN>