连接到版本为 14 或更低的启用了 FIPS 的 Yugabyte 系统

从启用了联邦信息处理标准 (FIPS) 的系统运行 Oracle GoldenGate Extract 时,如果该系统安装的 Yugabyte 数据库低于版本 14,则会生成以下错误:

ERROR OGG-25359 Could not connect to server with database 'postgres', host 'localhost', port '5432' and user name 'postgres'. Error Message: connection to server at "localhost" (::1), port 5432 failed: could not encrypt password: disabled for FIPSfe_sendauth: error sending password authentication.

加密算法 md5 是 Yugabyte 数据库版本低于 14 的默认加密算法,会导致提取异常终止并出现错误。

要在运行 Yugabyte 数据库版本低于 14 的启用了 FIPS 的系统上运行 Extract,请执行以下步骤:

  1. 修改 postgresql.conf 文件以将 password_encryption 选项设置为 scram-sha-256。

  2. 修改 pg_hba.conf 文件以将 Method 选项设置为 scram-sha-256,因为启用 FIPS 的系统不支持 md5。但是,这是可选步骤。

    在 password_encryption 选项设置为 scram-sha-256 之后,如果已创建数据库用户,则必须重新生成或修改 Oracle GoldenGate 提取所使用的数据库用户的密码。您可以使用相同的密码进行重新生成。

    例如,如果名为 admin 的数据库用户将口令用作 password123,则可以使用 scram-sha-256 加密重新生成相同的口令。