11g的新特性,可以在无法连接源数据库(without connect to target)的情况下,实现从备份文件直接duplicate数据库
rman AUXILIARY sys/oracle@DEMO
run {
DUPLICATE DATABASE TO DEMO
UNTIL TIME "TO_TIMESTAMP('23-DEC-12 12.55.11.000000000 AM', 'DD-MON-RR HH.MI.SSXFF AM')"
BACKUP LOCATION '/u01/app/oracle/backup'
SPFILE
PARAMETER_VALUE_CONVERT 'XE','DEMO'
SET LOG_FILE_NAME_CONVERT 'XE', 'DEMO'
SET DB_FILE_NAME_CONVERT 'XE', 'DEMO';
}
有几个问题:
1 只能until time,不能until scn,在要求精确的情况下不适用
2 to_date, to_timestamp是基于本机的时间的,这样会以后误差
阅读(2516) | 评论(0) | 转发(0) |