使用版本 14 或更低的版本連線至啟用 FIPS 的 Yugabyte 系統
從安裝的 Yugabyte 資料庫低於版本 14 的啟用 Federal Information Processing Standards (FIPS) 系統執行 Oracle GoldenGate Extract 時,會產生下列錯誤:
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 的預設加密演算法,會導致 Extract 因發生錯誤而中止。
若要在啟用 FIPS 的系統上執行版本低於 14 的 Yugabyte 資料庫,請執行下列步驟:
-
修改
postgresql.conf檔案,將password_encryption選項設為scram-sha-256。 -
修改
pg_hba.conf檔案,將Method選項設為scram-sha-256,因為啟用 FIPS 的系統不支援md5。不過,這是選擇性步驟。在
password_encryption選項設為scram-sha-256之後,如果已經建立資料庫使用者,則必須重新產生或修改 Oracle GoldenGate Extract 所使用之資料庫使用者的密碼。您可以使用相同的密碼重新產生。例如,如果名為
admin的資料庫使用者使用password123的密碼,則可以使用scram-sha-256加密重新產生相同的密碼。