设为首页 加入收藏

TOP

Oracle数据库迁移升级项目102030(HP-UX)-)102056(SunOS)(一)
2014-11-24 08:06:51 来源: 作者: 【 】 浏览:1
Tags:Oracle 数据库 迁移 升级 项目 102030 HP-UX 102056 SunOS
netslife迁移升级项目 10.2.0.3.0(HP-UX IA (64-bit) 10.2.0.5.6 Solaris[tm] OE (64-bit)
G2BH8060, odsz10g sid: hd02ntlf g4as8031, od1ntlf ,sid:d1ntlf
1.源端做convert database shut immediate startup mount alter database open read only;
set serveroutput on declare db_ready boolean; begin db_ready := dbms_tdb.check_db('Solaris[tm] OE (64-bit)',dbms_tdb.skip_readonly); end; /
set serveroutput on declare external boolean; begin external := dbms_tdb.check_external; end; / rman target / << EOF >/paic/hd02ntlf/datatmp/fwy/fwy.log 2>&1 CONVERT DATABASE NEW DATABASE 'newdb' to platform 'Solaris[tm] OE (64-bit)' db_file_name_convert '/paic/g2bh8060/dev/xqd/oradata/hd02ntlf/' '/paic/hd02ntlf/datatmp/fwy/' ; EOF
中途报错,是因为undo表空间有坏块。 convert database报错因为有坏块.mht 这里得出的结论是,做rman convert前可以先全部dbv检查一下。 --dbv.sh-- select 'dbv file='''||file_name||''' feedback=1000000 ' from dba_data_files; nohup sh dbv.sh>dbv.out 2>&1 &


2.目标端克隆软件102056
$ORACLE_HOME/oui/bin/runInstaller -detachHome -invPtrLoc /paic/d1ntlf/rdbms/oracle/product/10.2.0/oraInst.loc ORACLE_HOME=/paic/d1ntlf/rdbms/oracle/product/10.2.0
vi install.sh $ORACLE_HOME/oui/bin/runInstaller -invPtrLoc /paic/d1ntlf/rdbms/oracle/product/10.2.0/oraInst.loc \ -silent -clone ORACLE_HOME="/paic/d1ntlf/rdbms/oracle/product/10.2.0" \ ORACLE_HOME_NAME="home102041"


select 'alter database rename file '||chr(39)||file_name||chr(39)||' to '||chr(39)||substr(file_name,instr(file_name,'/',-1,1))||chr(39) from dba_data_files;
将数据文件都传到目标端,控制文件传一个就可以。临时文件不用传,redo log可以传可以不传,传就方便点,不传的话,后期要创建新的redo log 文件。
--因为 数据库是nomount状态,不能configure channel来配置并行,所以要在转换的临时分配channel 既然convert database因不明原因失败,我就将dbf文件都传到临时卷上。 再将临时卷挂到目标端,然后convert datafile。此时要用root修改属主与权限。 --因为数据库是nomount状态,不能configure channel来配置并行,所以要在转换的临时分配channel
数据库启动到nomount状态
--1.sh-- rman target / <1.log 2>&1 run { allocate channel c1 type disk; allocate channel c2 type disk; allocate channel c3 type disk; allocate channel c4 type disk; allocate channel c5 type disk; allocate channel c6 type disk; allocate channel c7 type disk; allocate channel c8 type disk; convert datafile '/paic/hd02ntlf/datatmp/fwy/arcdata.dbf', '/paic/hd02ntlf/datatmp/fwy/cchdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/ccodata01.dbf', '/paic/hd02ntlf/datatmp/fwy/dbadata01.dbf', '/paic/hd02ntlf/datatmp/fwy/dmkbakdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/fwy01.dbf', '/paic/hd02ntlf/datatmp/fwy/iflyteksadata01.dbf', '/paic/hd02ntlf/datatmp/fwy/INSTMRdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/netsmisdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/rbsdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/rbsdata02.dbf', '/paic/hd02ntlf/datatmp/fwy/rbsdata03.dbf', '/paic/hd02ntlf/datatmp/fwy/sysaux01.dbf', '/paic/hd02ntlf/datatmp/fwy/system01.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifeadmdata01.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifeadmdata02.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifeadmidx01.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata01.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata02.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata03.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata04.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata05.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata06.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata07.dbf', '/paic/hd02ntlf/datatmp/fwy/tmrlifedata
首页 上一页 1 2 3 下一页 尾页 1/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇ORACLEsequence各参数及创建修改.. 下一篇程序启动报错:ORA-12505;PL/SQL却..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·C 内存管理 | 菜鸟教 (2025-12-26 20:20:37)
·如何在 C 语言函数中 (2025-12-26 20:20:34)
·国际音标 [ç] (2025-12-26 20:20:31)
·微服务 Spring Boot (2025-12-26 18:20:10)
·如何调整 Redis 内存 (2025-12-26 18:20:07)