是不是有种可能,从windows克隆到linux上?
-
source database in windows - dbname - orcl (11.2.0.1)
-
cloned database in linux - dbname - orcl (11.2.0.3)
-
-
step 1 :- 从windows上创建参数文件
-
create pfile='/home/oracle/p.ora' from spfile
-
-
step 2 :- 关闭windows上库后启动到mount
-
shut immediate
-
startup mount
-
-
step 3 :- 执行冷备
-
rman target /
-
backup database format 'd:\bak\full_%u';
-
backup current controlfile format 'd:\bak\control_%u';
-
-
step 4 :- 将备份片拷贝到linux(这以后就与windows无关了)
-
-
step 5 :- linux上启动到nomount(注意修改参数)
-
startup nomount pfile='/home/oracle/p.ora';
-
-
step 6 :- 恢复控制文件
-
restore controlfile from '/bak/control_a7r4o1b4_1_1';
-
sql 'alter database mount';
-
-
step 7 :- 校验过期备份
-
crosscheck backup;
-
delete expired backup;
-
-
step 8 :- 在linux上注册备份
-
catalog backuppiece '/bak';
-
-
step 9 :- 恢复文件到新位置
-
run {
-
set newname for database to '/u01/oradata/orcl/datafile_%u';
-
restore database;
-
}
-
switch database to copy;
-
alter database open resetlogs upgrade; --如果同版本不需要upgrade
-
-
step 10 :- 执行其他升级脚本
参考:
-
clone database from windows to linux (lower patchset to higher) using rman (doc id 2143991.1)
阅读(211) | 评论(0) | 转发(0) |