天天看點

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/