我是oracle 界的小白,由於公司領導要求,不得不硬著頭皮在網上找rman備份還原的方法,廢話不多說,具體看例子(window)
運行CMD;
rman target 管理員賬號/密碼@orcl
備份
run{
allocate channel d1 device type disk format 'F:\OracleBakupNew\switch40%u';
backup full database
include current controlfile
format 'F:/OracleBakupNew/bidhouse%U';
release channel d1;
}
還原
shutdown immediate;
startup mount;
reset database to incarnation 2;
restore database;
recover database until time "to_date('2016-04-29 15:10:25','yyyy/mm/dd hh24:mi:ss')";
alter database open resetlogs;