共用方式為


伺服器到伺服器移轉

概觀

HIS 移轉工具可用來:

  • 將較舊的 HIS 版本設定移至主機整合伺服器 2020。
  • 將主機整合伺服器 2020 組態從一部伺服器移至另一部伺服器。

在不同伺服器上將 HIS 移轉至 HIS 的步驟

  • 這些步驟假設移轉工具已下載到本機 C:\Files 目錄。

  • 在第一部主機整合伺服器上,以系統管理員身分開啟命令提示字元,移至 C:\Files,然後執行下列命令:

    HisMigration.exe C:\Files\HIS_Migrate /Save
    Saving Configuration
    Saving Files
    If the Configuration is to be moved to a new machine, please note:
    
    savedConfig.config: You must edit this file to change the Passwords of all Services before restoring the configuration. If this machine is a primary sub-domain controller, and you want another sub-domain on the new machine, please edit this file.
    
    COM.CFG : COM.CFG may need changing to have a new Server name.
    
    comtblg.dat : If the COMTBLG File is not referenced via the SNARoot environment variable, the saved configuration file may need editing.
    

    注意

    C:\Files\HIS_Migrate 必須存在,而且其中沒有檔案。

  • 從第一部 HIS 伺服器複製 C:\Files 目錄和子目錄,然後將它貼到新的 HIS 伺服器。

  • SNACFG.exe使用 工具來更新 C:\Files\HIS_Migrate\System\Config\com.cfg

    1. 使用 /PRINT 選項產生空白命令檔:

      SNACFG.exe #C:\Files\HIS_Migrate\System\Config\com.cfg /print > HISconfig.txt
      Config file is: C:\Files\HIS_Migrate\System\Config\com.cfg
      
    2. HISconfig.txt 檔案將會在 [檔案] 目錄中產生。 如果新伺服器有不同的名稱,請編輯 HISconfig.txt,並以新名稱取代舊名稱的所有實例。

    3. 安裝 Host Integration Server 2020。 請勿執行設定精靈。

    4. 製作空白 COM.cfg 檔案的複本:

      1. 在 中 C:\Program Files\Microsoft Host Integration Server\System\config,建立名為 Blank的資料夾。
      2. 將檔案 com.cfg 從 C:\Program Files\Microsoft Host Integration Server\System\config 複製到 [空白] 資料夾。

      [!注意] 這可讓您使用全新的 com.cfg 檔案重複此步驟

    5. 若要產生新的 com.cfg 檔案,請使用 snacfg.exe 工具搭配新的命令檔:

      SNACFG.exe #”C:\Program Files\Microsoft Host Integration Server\System\config\com.cfg”  @C:\Files\HISconfig.txt /NOVALIDATEPRINTER  /V
      
  • 編輯檔案, C:\Files\HIS_Migrate\savedConfig.config 為服務執行身分的帳戶 () 插入正確的密碼 () 。 以安全性目的,密碼 () 會取代為 PasswordReplacedByThis。 必須輸入正確的密碼 () ,否則服務將不會啟動。 密碼元素可能會有多個實例。

  • 若要套用已儲存的組態:

    1. 以系統管理員身分開啟命令提示字元,然後移至 C:\Files
    2. 執行:HisMigration.exe C:\Files\HIS_Migrate /Apply

其他考量

  • 移轉至新伺服器時,您可能需要手動更新網路適配器的IPDLC連結服務組態 () 。
  • 如果要移轉的設定包括 SNA 印表工作階段,請確認新伺服器上已設定相同的印表機。

下一步

HIS 移轉工具
相同伺服器移轉