IBM Data Client 服务器的静默安装
Silent install of IBM Data Client server
我正在尝试在 Windows 上静默安装 IBM 数据服务器客户端。我可以通过 GUI 进行安装而不会出现任何错误。通过静默安装,我的日志文件中有以下条目。
MSI (s) (40:2C) [11:39:25:095]: Product: IBM Data Server Client - DB2COPY1 -- Installation operation failed.
MSI (s) (40:2C) [11:39:25:107]: Windows Installer installed the product. Product Name: IBM Data Server Client - DB2COPY1. Product Version: 11.1.0.1527. Product Language: 1033. Manufacturer: IBM. Installation success or error status: 1603.
用于从存在 setup.exe 的路径安装的命令
setup /f /l C:\logs\db1.log /u C:\Users\Administrator\my.rsp
有什么提示可以静默安装数据服务器客户端吗?
编辑- 添加响应文件
PROD=CLIENT
LIC_AGREEMENT=ACCEPT
FILE=C:\Program Files\IBM\SQLLIB\
INSTALL_TYPE=TYPICAL
LANG=EN
INSTANCE=DB2
DB2.NAME=DB2
DEFAULT_INSTANCE=DB2
DB2.TYPE=CLIENT
DB2_EXTSECURITY=YES
DB2_USERSGROUP_NAME=DB2USERS
DB2_ADMINGROUP_NAME=DB2ADMNS
RSP_FILE_NAME=C:\Users\Administrator\Documents\PROD_CLIENT.rsp
DB2_COPY_NAME=DB2COPY1
DEFAULT_COPY=YES
跟踪文件错误
STRING = An error occurred while trying to open the registry key "Software\IBM\DB2\DISABLEDCA{E7D2BEA2-DF58-46BF-94A4-C40537E312C2}".
我在打开注册表项时多次出现类似错误
编辑 2
已打开跟踪的日志文件。
MSI (s) (0C:68) [16:36:14:238]: Note: 1: 1708
MSI (s) (0C:68) [16:36:14:238]: Product: IBM Data Server Client - DB2COPY1 -- Installation operation failed.
MSI (s) (0C:68) [16:36:14:238]: Windows Installer installed the product. Product Name: IBM Data Server Client - DB2COPY1. Product Version: 11.1.0.1527. Product Language: 1033. Manufacturer: IBM. Installation success or error status: 1603.
MSI (s) (0C:68) [16:36:14:238]: Attempting to delete file C:\Windows\Installera90c.mst
MSI (s) (0C:68) [16:36:14:238]: Unable to delete the file. LastError = 32
MSI (s) (0C:68) [16:36:14:253]: Deferring clean up of packages/files, if any exist
MSI (s) (0C:68) [16:36:14:253]: Attempting to delete file C:\Windows\Installera90c.mst
MSI (s) (0C:68) [16:36:14:253]: MainEngineThread is returning 1603
MSI (s) (0C:1C) [16:36:14:253]: RESTART MANAGER: Session closed.
MSI (s) (0C:1C) [16:36:14:253]: No System Restore sequence number for this installation.
=== Logging stopped: 3/6/2019 16:36:14 ===
MSI (s) (0C:1C) [16:36:14:253]: User policy value 'DisableRollback' is 0
MSI (s) (0C:1C) [16:36:14:253]: Machine policy value 'DisableRollback' is 0
MSI (s) (0C:1C) [16:36:14:253]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (0C:1C) [16:36:14:253]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (0C:1C) [16:36:14:253]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (0C:1C) [16:36:14:253]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (0C:1C) [16:36:14:253]: Destroying RemoteAPI object.
MSI (s) (0C:B4) [16:36:14:253]: Custom Action Manager thread ending.
MSI (c) (FC:58) [16:36:14:269]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (FC:58) [16:36:14:269]: MainEngineThread is returning 1603
=== Verbose logging stopped: 3/6/2019 16:36:14 ===
问题的原因是 Db2 客户端修复包中的问题。
使用相关 IBM 软件的当前版本(最新修复包)总是有帮助的。当出现似乎没有明显解释的故障症状时尤其如此。在这种情况下,最新版本的 Db2 数据服务器客户端(在撰写本文时)是 V11.1.4.4,可从 IBM 修复中心下载。
另外,有两行导致 Db2 安装程序报告错误,它们是 "DB2.TYPE=CLIENT" 和 "RSP_FILE_NAME=...." 行。这些错误在主日志文件中不可见,只有仔细检查跟踪文件才能看到,尽管这些错误并未导致 Windows Server 2012 上的安装失败。
对于 Windows,如果您在日志文件中看不到错误,则有必要在安装命令行上使用跟踪文件 ( /t tracefile ) 选项。 Linux 用户将直接在日志文件中看到响应文件问题。
当心跟踪文件中的误报错误消息 - 即使安装成功完成,您也可以在跟踪文件中看到错误。所以总是先检查主日志文件以查看完成站,然后在需要有关错误的更多详细信息时查看跟踪文件,注意查看跟踪文件中的所有错误。 Db2 的 Windows 静默安装技术似乎不如 Linux/Unix 的有用。
我正在尝试在 Windows 上静默安装 IBM 数据服务器客户端。我可以通过 GUI 进行安装而不会出现任何错误。通过静默安装,我的日志文件中有以下条目。
MSI (s) (40:2C) [11:39:25:095]: Product: IBM Data Server Client - DB2COPY1 -- Installation operation failed.
MSI (s) (40:2C) [11:39:25:107]: Windows Installer installed the product. Product Name: IBM Data Server Client - DB2COPY1. Product Version: 11.1.0.1527. Product Language: 1033. Manufacturer: IBM. Installation success or error status: 1603.
用于从存在 setup.exe 的路径安装的命令
setup /f /l C:\logs\db1.log /u C:\Users\Administrator\my.rsp
有什么提示可以静默安装数据服务器客户端吗?
编辑- 添加响应文件
PROD=CLIENT
LIC_AGREEMENT=ACCEPT
FILE=C:\Program Files\IBM\SQLLIB\
INSTALL_TYPE=TYPICAL
LANG=EN
INSTANCE=DB2
DB2.NAME=DB2
DEFAULT_INSTANCE=DB2
DB2.TYPE=CLIENT
DB2_EXTSECURITY=YES
DB2_USERSGROUP_NAME=DB2USERS
DB2_ADMINGROUP_NAME=DB2ADMNS
RSP_FILE_NAME=C:\Users\Administrator\Documents\PROD_CLIENT.rsp
DB2_COPY_NAME=DB2COPY1
DEFAULT_COPY=YES
跟踪文件错误
STRING = An error occurred while trying to open the registry key "Software\IBM\DB2\DISABLEDCA{E7D2BEA2-DF58-46BF-94A4-C40537E312C2}".
我在打开注册表项时多次出现类似错误
编辑 2
已打开跟踪的日志文件。
MSI (s) (0C:68) [16:36:14:238]: Note: 1: 1708
MSI (s) (0C:68) [16:36:14:238]: Product: IBM Data Server Client - DB2COPY1 -- Installation operation failed.
MSI (s) (0C:68) [16:36:14:238]: Windows Installer installed the product. Product Name: IBM Data Server Client - DB2COPY1. Product Version: 11.1.0.1527. Product Language: 1033. Manufacturer: IBM. Installation success or error status: 1603.
MSI (s) (0C:68) [16:36:14:238]: Attempting to delete file C:\Windows\Installera90c.mst
MSI (s) (0C:68) [16:36:14:238]: Unable to delete the file. LastError = 32
MSI (s) (0C:68) [16:36:14:253]: Deferring clean up of packages/files, if any exist
MSI (s) (0C:68) [16:36:14:253]: Attempting to delete file C:\Windows\Installera90c.mst
MSI (s) (0C:68) [16:36:14:253]: MainEngineThread is returning 1603
MSI (s) (0C:1C) [16:36:14:253]: RESTART MANAGER: Session closed.
MSI (s) (0C:1C) [16:36:14:253]: No System Restore sequence number for this installation.
=== Logging stopped: 3/6/2019 16:36:14 ===
MSI (s) (0C:1C) [16:36:14:253]: User policy value 'DisableRollback' is 0
MSI (s) (0C:1C) [16:36:14:253]: Machine policy value 'DisableRollback' is 0
MSI (s) (0C:1C) [16:36:14:253]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (0C:1C) [16:36:14:253]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (0C:1C) [16:36:14:253]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (0C:1C) [16:36:14:253]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (0C:1C) [16:36:14:253]: Destroying RemoteAPI object.
MSI (s) (0C:B4) [16:36:14:253]: Custom Action Manager thread ending.
MSI (c) (FC:58) [16:36:14:269]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (FC:58) [16:36:14:269]: MainEngineThread is returning 1603
=== Verbose logging stopped: 3/6/2019 16:36:14 ===
问题的原因是 Db2 客户端修复包中的问题。
使用相关 IBM 软件的当前版本(最新修复包)总是有帮助的。当出现似乎没有明显解释的故障症状时尤其如此。在这种情况下,最新版本的 Db2 数据服务器客户端(在撰写本文时)是 V11.1.4.4,可从 IBM 修复中心下载。
另外,有两行导致 Db2 安装程序报告错误,它们是 "DB2.TYPE=CLIENT" 和 "RSP_FILE_NAME=...." 行。这些错误在主日志文件中不可见,只有仔细检查跟踪文件才能看到,尽管这些错误并未导致 Windows Server 2012 上的安装失败。
对于 Windows,如果您在日志文件中看不到错误,则有必要在安装命令行上使用跟踪文件 ( /t tracefile ) 选项。 Linux 用户将直接在日志文件中看到响应文件问题。
当心跟踪文件中的误报错误消息 - 即使安装成功完成,您也可以在跟踪文件中看到错误。所以总是先检查主日志文件以查看完成站,然后在需要有关错误的更多详细信息时查看跟踪文件,注意查看跟踪文件中的所有错误。 Db2 的 Windows 静默安装技术似乎不如 Linux/Unix 的有用。