概述
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:使用
/PRINT选项生成空白命令文件:SNACFG.exe #C:\Files\HIS_Migrate\System\Config\com.cfg /print > HISconfig.txt Config file is: C:\Files\HIS_Migrate\System\Config\com.cfgHISconfig.txt 文件将在文件目录中生成。 如果新服务器具有其他名称,请编辑 HISconfig.txt 并将旧名称的所有实例替换为新名称。
安装 Host Integration Server 2020。 不要运行配置向导。
创建空白
COM.cfg文件的副本:- 在
C:\Program Files\Microsoft Host Integration Server\System\config中,创建一个名为Blank的文件夹。 - 将文件 com.cfg 从 C:\Program Files\Microsoft Host Integration Server\System\config 复制到文件夹 Blank。
[!注意] 这样,可以使用干净的 com.cfg 文件重复此步骤
- 在
若要生成新的 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。 必须输入正确的密码,否则服务不会启动。 密码元素可能有多个实例。若要应用保存的配置,请执行以下作:
- 以管理员身份打开命令提示符,然后转到
C:\Files。 - 运行:
HisMigration.exe C:\Files\HIS_Migrate /Apply。
- 以管理员身份打开命令提示符,然后转到
其他注意事项
- 迁移到新服务器时,可能需要手动更新网络适配器的 IPDLC 链接服务配置。
- 如果要迁移的配置包括 SNA 打印会话,请确认新服务器上配置了相同的打印机。