使用版本 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 資料庫,請執行下列步驟:

  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 Extract 所使用之資料庫使用者的密碼。您可以使用相同的密碼重新產生。

    例如,如果名為 admin 的資料庫使用者使用 password123 的密碼,則可以使用 scram-sha-256 加密重新產生相同的密碼。