随着国产化与 ARM 架构服务器逐渐成熟,越来越多企业开始考虑将 Oracle 数据库从传统 x86 平台迁移到:
- 华为鲲鹏 ARM
- 海光 C86
- 飞腾 ARM
- 等国产化或 ARM 平台。
那可能在更换数据库服务器时会问,ORACLE 的DATAGUARD 是否支持Intel/AMD X86 到鲲鹏 ARM或海光 C86?
答案是: 都支持。但属于“异构平台 Data Guard”
因为x86,ARM,C86都是Little Endian,海光C86和Intel / AMD 属于同一 ISA(指令集架构),C86\ARM 和 x86 在 Linux 下 endian 一致,因此 redo 可以被解析与应用。Oracle redo 是逻辑层面的数据库变更不是 CPU 指令。
但是注意的是几个条件:
- 数据库支持的平台
- Oracle版本必须一致。
- Database RU一致
- ARM平台数据库版本在19C(19.19以上)
Oracle 从 11g 开始已经支持部分异构平台 Data Guard,但是因为ARM平台当前只有19c的介质,而C86可以安装11g(x86)的介质.
2.3.1 Hardware and Operating System Requirements
The same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby databases, except during rolling database upgrades using logical or transient logical standby databases.
As of Oracle Database 11g, Oracle Data Guard provides increased flexibility for Oracle Data Guard configurations in which the primary and standby systems may have different CPU architectures, operating systems (for example, Windows and Linux), operating system binaries (32-bit/64-bit), or Oracle database binaries (32-bit/64-bit).
This increased mixed-platform flexibility is subject to the current restrictions documented in the My Oracle Support notes 413484.1 and 1085687.1 at http://support.oracle.com.
Note 413484.1 discusses mixed-platform support and restrictions for physical standbys.
Note 1085687.1 discusses mixed-platform support and restrictions for logical standbys.
生产建议
提前做好迁移测试。
对于数据库服务器上有部署周边生态软件的,注意so驱动文件的不同。
x86到海光属于同构迁移风险较低, 而ARM提前做好验证,也可以使用DG完成数据库的平滑迁移。
