zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Oracle 跨操作系统 迁移 说明

2023-09-11 14:19:43 时间
关于跨OS 的DB 迁移,MOS 上有相关的文章说明:[ID733205.1]。 To migrate anexisting Oracle database (NOT BINARIES)  from one Operating Systemplatform to another (i.e. Windows to Solaris) ,This can occur as part ofan Oracle version upgrade (Oracle 8i .. Oracle 11G) or within the sameOracle version: (Oracle 10.2 to Oracle 10.2). --可以将Oracle DB 从一个操作系统迁移到另一个操作系统,比如从windows到Solaris,注意这里的迁移仅仅是数据的迁移,不包含DB 的安装介质。这个迁移可以是不同DB版本的迁移,比如从8i 到11g,也可以是相同版本的迁移,比如从10.2 到10.2. Changes withinan Operating System (ie: Linux,Windows or Solaris from 32 bit to 64 bit) arenot considered cross platform migrations and are performed as normal versionupgrades/wordsize conversions. --改变操作系统不用考虑系统的平台,可以按照正常的db version upgrades 和 wordsize 的改变来操作。 一. 解决方法 There is no migrationutility (Script or DBUA) to perform a cross platform migration of an OracleDatabase. --没有迁移工具如脚本或者DBUA来执行跨OS的数据迁移。 Changingplatforms requires the database be re-built and / or the data moved using oneof the following methods: --跨平台的迁移需要重建数据库,然后使用如下的一种方法来完成数据的迁移工作。 (1)    Export / Import to include theuse of Datapump facilities. All versions support Export/Import but for Datapump10.1.0.2 or higher is required (2)    Transportable Tablespaces 10Gor Later (3)    RMAN Convert Databasefunctions. 10G or Later (4)    Streams Replication (5)    Create Table As Select (CTAS) (6)    Dataguard Heterogeneous Primaryand Physical Standbys (7)    Oracle Golden Gate Each availablechoice will have strengths and limitations to include data types, time requiredand potential costs. --每一个可选的方法都有它的优势和限制,如数据类型,需要的时间和一些潜在的消耗。 The choicesavailable will depend on BOTH the Operating System and Oracle versions on boththe source and destination. --方法是否可用也取决与Source 和 Destination 两端的操作系统和Oracle版本。 二. 示例 There areplatform limitations when using Dataguard Heterogeneous Primary and PhysicalStandbys。 --比如使用DG的异构平台来迁移时,就会有操作系统的限制。 关于这块内容,之前有详细的Blog: Oracle DataGuard 支持的异构平台 说明 http://blog.csdn.net/tianlesoftware/article/details/7241488 RMAN ConvertDatabase only works if both source and destination belong to the same ENDIANformat. --RMAN Convert DB 仅在source 和destination 的ENDIAN 格式相同的情况下才可以使用。 RMANs convertfunction for Transportable Tablespaces will convert from one ENDIAN format toanother. 在ENDIAN 格式不同的情况下,可以使用RMAN convert function 来转换ENDIAN 从一种格式到另一种格式。如: RMAN convert tablespace TBS1 to platform="Linux IA(32-bit)" FORMAT /tmp/%U; 两端相同之后,就可以进行Transportabletablespace 的操作。 可以通过v$transportable_platform视图查看系统的ENDIAN 格式:
SQL columnplatform_name format a35 SQL select *from v$transportable_platform order by 1; PLATFORM_IDPLATFORM_NAME                      ENDIAN_FORMAT ---------------------------------------------- -------------- 1 Solaris[tm] OE (32-bit)             Big 2 Solaris[tm] OE (64-bit)             Big 3 HP-UX (64-bit)                      Big 4 HP-UX IA (64-bit)                   Big 5 HP Tru64 UNIX                       Little 6 AIX-Based Systems (64-bit)          Big 7 Microsoft Windows IA (32-bit)       Little 8 Microsoft Windows IA (64-bit)       Little 9 IBM zSeries Based Linux             Big 10 Linux IA (32-bit)                   Little 11 Linux IA (64-bit)                   Little 12 Microsoft Windows x86 64-bit        Little 13 Linux x86 64-bit                    Little 15 HP Open VMS                         Little 16 Apple Mac OS                        Big 17 Solaris Operating System (x86)      Little 18 IBM Power Based Linux               Big 19 HP IA Open VMS                      Little 20 Solaris Operating System(x86-64)   Little 21 Apple Mac OS (x86-64)               Little 20 rowsselected.
4.17.2迁移Oracle到PolarDB O的端到端工程,以下描述不恰当的是 去O通用方法概述_v1.0 1.迁移Oracle到PolarDB O的端到端工程,以下描述不恰当的是 A. 只要数据完整迁移到目标库,应用是否割接顺利,不用关注 B. 只要迁移工具显示数据迁移完成,那就说明数据完整的迁移完成了,不需要做额外的数据检查和稽核 C. 业务割接后,就可以高枕无忧了,巡检、SQL优化留给后续接手团队来做 D. 迁移Oracle到PoalrDB O是一个严谨的工程,需要遵造调研评估、选型设计、改造优化、迁移稽核、割接上线、护航转维进行实施 正确答案:ABC
4.17以下对迁移Oracle到PoalrDB O的方法描述,不恰当的是哪些? 2.以下对迁移Oracle到PoalrDB O的方法描述,不恰当的是哪些 A. 应用只需要修改下驱动程序,其他不修改就能完全运行 B. 不需要掌握Oracle的性能情况,直接按照客户的口头描述进行数据库选型和数据库规格选型 C. 迁移Oracle到PoalrDB O,正确的做法是先全面评估源Oracle库的对象、SQL,性能现状、维护方式,服务器类型,再进行目标数据库选型 D. 迁移Oracle到PoalrDB O不止是数据迁移,要考虑业务应用如何适配目标数据库,面向业务准确性进行应用和数据库改造、调优 正确答案:AB