Oracle 11g加密备份(二)

2014-11-24 17:33:26 · 作者: · 浏览: 1
478153552 bytes
Database Buffers 419430400 bytes
Redo Buffers 106991616 bytes



RMAN> restore tablespace tp1;



Starting restore at 17-FEB-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK



channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/ocm/tp1.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/11.2.0/dbs/48p0rotn_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 02/17/2014 13:45:32
ORA-19870: error while restoring backup piece /u01/app/oracle/product/11.2.0/dbs/48p0rotn_1_1
ORA-19913: unable to decrypt backup
ORA-28365: wallet is not open



RMAN> sql 'alter system set wallet open identified by "guoyJoe"';



sql statement: alter system set wallet open identified by "guoyJoe"



RMAN> restore tablespace tp1;



Starting restore at 17-FEB-14
using channel ORA_DISK_1



channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/ocm/tp1.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/11.2.0/dbs/48p0rotn_1_1
channel ORA_DISK_1: piece handle=/u01/app/oracle/product/11.2.0/dbs/48p0rotn_1_1 tag=TAG20140217T134423
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:25
Finished restore at 17-FEB-14



RMAN> recover tablespace tp1;



Starting recover at 17-FEB-14
using channel ORA_DISK_1



starting media recovery
media recovery complete, elapsed time: 00:00:00



Finished recover at 17-FEB-14



RMAN> alter database open;



database opened