由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 请问:如何从windows single instance migrate to linux RAC
相关主题
coolbid, 问个问题question on oracle archive file
是不是要用RMAN作备份,Oracle DB 必须在ARCHIVELOG mode状态Oracle Positions
Export Oracle db schema only请教如何在两个Oracle之间倒数据
question: how to drop a tablespacedba interview 都问些啥
抱怨一下 数据库 里头的一些不严谨。SQL Servedr complete recovery question
有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?metadata工具
问个RMAN问题新晋升的oracle DBA请教大家要看什么教材。
How to transform HTML or PDF to datafile(text)?Pluggable Databases vs Database Virtualization
相关话题的讨论汇总
话题: rac话题: rman话题: asm话题: instance话题: linux
进入Database版参与讨论
1 (共1页)
a****l
发帖数: 120
1
最近公司打算把数据从windows single instance 迁移到linux RAC,我以前用过expdp
/impdp是可行的,但是比较麻烦,需要在target database,建立tablespace,
datafile,role,user等。
但是我觉得rman更可靠,所以我想用duplicate rman backup;不过问题是每次都出错
。。。
因为问题在于
windows single instance -> linux RAC
要考虑转码,datafile文件存储位置不同,如ASM
请问,各位有过经验吗?我暂时只想到
如果非要rman duplicate,那么可以
windows single instance -> linux single instance -> linux RAC
我实在不知道怎么直接从windows single instance -> linux RAC;还希望各位老师,
多多帮忙,如果有link或者经验,就更好了。
非常感谢。
b*****r
发帖数: 239
2
1, Use rman convert to migrate DB from windows to linx.
http://yichen-oracledba.blogspot.com/2013/06/using-rman-to-migr
2, Use rman to move DB to ASM(optional)
http://yichen-oracledba.blogspot.com/2013/06/migrate-oracle-dat
3, Convert to single instance to RAC
http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac
B*****g
发帖数: 34098
3
顶,rman真好用

【在 b*****r 的大作中提到】
: 1, Use rman convert to migrate DB from windows to linx.
: http://yichen-oracledba.blogspot.com/2013/06/using-rman-to-migr
: 2, Use rman to move DB to ASM(optional)
: http://yichen-oracledba.blogspot.com/2013/06/migrate-oracle-dat
: 3, Convert to single instance to RAC
: http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac

a****l
发帖数: 120
4
谢谢楼上的大牛们;但是这个就是我想到的办法,通过一个linux 机器作为中间件,先
转换平台在转换rac 系统。
那么请问,目前有什么办法可以
直接用windows single 到 linux rac 吗?
直接的命令转换?
谢谢
b*****r
发帖数: 239
5
You can convert to linux rac directly if you already have GI installed and
have shared storage available.
In step 1, you got the converted datafiles from windows, copied to shared
storage in you RAC environment.(you need step2 if you want to use ASM).
Since you got all datafiles, you can adjust the script generated during rman
convert to create control file for RAC. Also change the original spfile to
make it RAC ready.
a****l
发帖数: 120
6
谢谢。很有用。
我正在测试第一步和第二步;但是第三步,不是很明白。
你是说,因为datafile都转好了,然后放到rac的asm里面;接着用rman产生的control
file 和spfile去放到ams里面吗?
能麻烦解释下,这句话吗?
you can adjust the script generated during rman
convert to create control file for RAC. Also change the original spfile to
make it RAC ready.
我没有看明白,谢谢。

rman
to

【在 b*****r 的大作中提到】
: You can convert to linux rac directly if you already have GI installed and
: have shared storage available.
: In step 1, you got the converted datafiles from windows, copied to shared
: storage in you RAC environment.(you need step2 if you want to use ASM).
: Since you got all datafiles, you can adjust the script generated during rman
: convert to create control file for RAC. Also change the original spfile to
: make it RAC ready.

b*****r
发帖数: 239
7
第一步用rman convert会生成一个SQL文件. 内含control file creation. 你改一下.
另外get pfile from spfile on source database 然后改一下.
refer:
http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac

control

【在 a****l 的大作中提到】
: 谢谢。很有用。
: 我正在测试第一步和第二步;但是第三步,不是很明白。
: 你是说,因为datafile都转好了,然后放到rac的asm里面;接着用rman产生的control
: file 和spfile去放到ams里面吗?
: 能麻烦解释下,这句话吗?
: you can adjust the script generated during rman
: convert to create control file for RAC. Also change the original spfile to
: make it RAC ready.
: 我没有看明白,谢谢。
:

a****l
发帖数: 120
8
成功migrate;今天抽空共享下心得和步骤。感谢bridger提供思路。
详细点就是
1. 把windows instance,包括spfile,controlfile,datafile全部 convert to
linux instace。
http://anandoracle.wordpress.com/2012/12/24/migration-database-
2. 把NON-ASM的LINUNX databaseconvert成ASM的LINUX database
http://anandoracle.wordpress.com/2012/12/13/migrating-non-asm-t
3. 我使用的是用rconfig把single linux instance with ASM 转换成 RAC with asm
http://zakkiahmed.wordpress.com/2010/08/04/convert-11gr2-non-ra
注意的事项是
1.如果你的datafile有corrupted block,需要用备份先修复,再convert;可以先用
dbv和validate database查看
2.如果坏块,你不想修复,可以用下面的script跳过
run {
set maxcorrupt for datafile 7 to 2; ##允许ID号为7的datafile数据文件可以有
2的坏的block块
backup tablespace ts_test;
}
3.当convert到ASM系统后,一定要把spfile转换到ASM系统中,否则会出现SPFILE non-
writable错误
方法是
建立spfile在ASM,建立initSID.ora,编辑这个文件;里面写上一行spfile='+DATA/
DATABASE NAME/spfileSID.ora'
还有其他的一些小问题,但都不是很难的问题。
希望对大家有用。
1 (共1页)
进入Database版参与讨论
相关主题
Pluggable Databases vs Database Virtualization抱怨一下 数据库 里头的一些不严谨。
苦逼的Oracle学员面试回忆录和录音,绝对真实!供想入行Oracle的博士们参考有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?
如果公司里用两种以上的数据库,怎么学?问个RMAN问题
Oracle RAC question (vip related)How to transform HTML or PDF to datafile(text)?
coolbid, 问个问题question on oracle archive file
是不是要用RMAN作备份,Oracle DB 必须在ARCHIVELOG mode状态Oracle Positions
Export Oracle db schema only请教如何在两个Oracle之间倒数据
question: how to drop a tablespacedba interview 都问些啥
相关话题的讨论汇总
话题: rac话题: rman话题: asm话题: instance话题: linux