失效链接处理 |
Oracle Rman备份集在异机恢复 PDF 下载
本站整理下载:
相关截图:
主要内容:
run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup format 'd:\backup\%U' database;
sql 'alter system archive log current';
backup format 'd:\backup\%U' archivelog all delete input; -------delete input表示备份结束删
除归档,delete all input表示连目录一起删除
release channel c1;
release channel c2;
}---------------------------------------------------------------------------------------------------------------------------------------
环境:
OS:Red Hat Linux As 5
DB:10.2.0.4
有些时候因为测试环境需要,我们需要使用生产库的备份集在另外一台新的
机器上做恢复(前提是新机器事先安装 Oracle 软件,版本跟原库一致),下面是恢
复过程.
1.在原库上做全备(在原库上操作)
run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup format '/u02/rman_backup/full_backup/full_backup_%T_%s' da
tabase;
sql 'alter system archive log current';
backup format '/u02/rman_backup/full_backup/arc_backup_%T_%s' arc
hivelog all;
release channel c1;
release channel c2;
}
|