服务器之间的迁移

概述

HIS 迁移工具可用于:

  • 将旧版 HIS 版本配置移动到 Host Integration Server 2020。
  • 将 Host Integration Server 2020 配置从一台服务器移到另一台服务器。

在不同服务器上将 HIS 从一台服务器迁移到另一台服务器的步骤

  • 这些步骤假定将迁移工具下载到本地 C:\Files 目录。

  • 在第一个 Host Integration Server 上,以管理员身份打开命令提示符,转到 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 复制到文件夹 Blank。

      [!注意] 这样,可以使用干净的 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 迁移工具
同一服务器迁移