在數(shù)據(jù)庫備份完全可用給的情況下,可以通過如下方式還原數(shù)據(jù)庫到某個時間點
關(guān)閉數(shù)據(jù)庫
并啟動到mount
開始恢復(fù)數(shù)據(jù)庫
RMAN> sql "alter session set nls_date_format=''yyyy-mm-dd hh34:mi:ss''";
using target database control file instead of recovery catalog
sql statement: alter session set nls_date_format=''yyyy-mm-dd hh34:mi:ss''
RMAN> restore database until time '2015-05-14 14:00:00';
RMAN> recover database until time '2015-05-14 14:00:00';
RMAN> sql 'alter database open resetlogs';