在具有多个 WebSphere 概要文件的全文搜索部署中升级或重新安装 ClearQuest

IBM Installation Manager 无法识别与全文搜索功能关联的 WebSphere Application Server 概要文件。 因此,如果您计划升级或重新安装 IBM Rational ClearQuest,请使用 cqtsadmin.pl 命令备份并删除这些概要文件。在升级或重新安装 ClearQuest 之后,再次使用 cqtsadmin.pl 命令恢复这些概要文件。

开始之前

此场景包括在升级或重新安装 ClearQuest 前后要执行的步骤。

该场景假定您使用的是 SAMPL 数据库。在生产环境中,升级前或重新安装前步骤以及升级后或重新安装后步骤可能需要数分钟到数小时才能完成,这取决于部署中全文搜索 WebSphere Application Server 概要文件的数目。对于每个概要文件,这些步骤应需要数分钟才能完成。

请注意,您可在服务器上对任何全文搜索实例运行 cqtsadmin.pl 命令,因为该命令是针对服务器上所有全文搜索部署的全局命令。在对一个全文搜索部署完成 cqtsadmin.pl 命令之后,服务器上的其他部署也会升级。

过程

  1. 执行以下升级前或安装前任务。
    1. 编辑 cqtsadmin-TextSearch-SAMPL.xml 配置文件。将 <deleteFtsWASProfiles> 标记的值从:

      <newValue required="no"><newValue>

      更改为:

      <newValue required="no">true<newValue>

    2. 在命令提示符窗口中运行带 prep_upgd_was_profiles 选项的 cqtsadmin.pl 命令。此命令行选项会在服务器上创建所有全文搜索 WebSphere Application Server 概要文件数据的备份,然后删除这些概要文件。已备份的数据将保存到 FTSBackupWASProfiles 目录中。
    3. 再次编辑 cqtsadmin-TextSearch-SAMPL.xml 文件。将 <deleteFtsWASProfiles> 标记的值从:

      <newValue required="no">true<newValue>

      更改为:

      <newValue required="no"><newValue>

    该编辑操作将阻止您意外重新运行此破坏性命令行选项。

  2. 升级或重新安装 ClearQuest。
  3. 再次运行 cqtsadmin.pl 命令,以复原所有先前部署和备份的全文搜索 WebSphere Application Server 概要文件。存在两个用例场景:
    • 场景 A:通过使用 restore_was_profiles 命令行选项,将所有先前部署和备份的全文搜索 WebSphere Application Server 概要文件复原到其原始位置。

      cqperl cqtsadmin.pl --username admin --password secret --dbset TextSearch --userdb SAMPL --ftshome D:\CQ.Search --restore_was_profiles D:\FTSBackupWASProfiles

    • 场景 B:分别通过使用 restore_was_profilesfts_was_profile_home 命令行选项,复原所有先前部署和备份的全文搜索 WebSphere Application Server 概要文件,并将这些概要文件合并在一个目录中:

      cqperl cqtsadmin.pl --username admin --password secret --dbset TextSearch --userdb SAMPL --ftshome D:\CQ.Search --restore_was_profiles D:\FTSBackupWASProfiles --fts_was_profile_home D:\FTS.wasprofiles


反馈