连接到版本为 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,请执行以下步骤:
-
修改
postgresql.conf文件以将password_encryption选项设置为scram-sha-256。 -
修改
pg_hba.conf文件以将Method选项设置为scram-sha-256,因为启用 FIPS 的系统不支持md5。但是,这是可选步骤。在
password_encryption选项设置为scram-sha-256之后,如果已创建数据库用户,则必须重新生成或修改 Oracle GoldenGate 提取所使用的数据库用户的密码。您可以使用相同的密码进行重新生成。例如,如果名为
admin的数据库用户将口令用作password123,则可以使用scram-sha-256加密重新生成相同的口令。