天天看点

Oracle 跨操作系统 迁移 说明

  --改变操作系统不用考虑系统的平台,可以按照正常的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 格式相同的情况下才可以使用。

  rman's 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

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.

最新内容请见作者的github页:http://qaseven.github.io/