修补和回退

您可以使用 OPatch 工具为 Oracle Essbase 实例打补丁,该工具会为新版本的二进制文件运行补丁程序。如果需要,还可以回退更新。

不支持从补丁程序回退至配置 Essbase 实例时所用版本的版本。

注意:

如果在应用修补程序后创建了连接或数据源,然后回退修补程序,则必须重新创建它们。穿透钻取和其他与连接相关的功能需要此步骤才能像以前一样继续工作。

注意:

回退 OPatch 后,可能需要重新创建透明和复制的分区,并重新验证分区。
将软件更新(修补/升级)安装到 Essbase 实例
  1. 停止所有托管服务器和系统组件,包括 Essbase 服务器、管理服务器和节点管理器。

    对于 Linux:

    sh <Oracle_Home>/domains/essbase_domain/esstools/bin/stop.sh

    对于 Windows:

    <Oracle_Home>\domains\essbase_domain\esstools\bin\stop.cmd

    有关 Oracle_Home 的说明,请参阅 Essbase 平台中的环境位置

  2. 检查构建编号。

    对于 Linux:

    cat <Oracle_Home>/essbase/bi-epm-registry/baseproperties/essbase/essbase_registry.properties
    对于 Windows(使用记事本打开 essbase_registry.properties):
    <oracle_home>\essbase\bi-epm-registry\baseproperties\essbase\essbase_registry.properties
  3. 应用 OPatch。您可以直接应用它,同时采用 zip 格式,提供 zip 文件的绝对路径。您可以选择解压缩文件并应用修补程序,从而提供解压缩文件夹的绝对路径。
    1. 运行命令。例如:

      对于 Linux:

      <Oracle_Home>/OPatch/opatch apply <Path of Linux opatch zip file>

      对于 Windows:

      <Oracle_Home>\OPatch\opatch apply <Path of Windows opatch zip file>
    2. 检查构建编号。

      对于 Linux:

      cat <Oracle_Home>/essbase/bi-epm-registry/baseproperties/essbase/essbase_registry.properties
      对于 Windows(使用记事本打开 essbase_registry.properties):
      <oracle_home>\essbase\bi-epm-registry\baseproperties\essbase\essbase_registry.properties
  4. 启动所有的服务器。

    对于 Linux:

    sh <Oracle_Home>/domains/essbase_domain/esstools/bin/start.sh

    对于 Windows:

    <Oracle_Home>\domains\essbase_domain\esstools\bin\start.cmd
[可选] 必要时回滚更新
  1. 停止这些服务器。

    对于 Linux:

    sh <Oracle_Home>/domains/essbase_domain/esstools/bin/stop.sh
    对于 Windows:
    <Oracle_Home>\domains\essbase_domain\esstools\bin\stop.cmd
  2. 获取唯一的 OPatch ID。

    对于 Linux:

    <Oracle_Home>/OPatch/opatch lsinventory
    对于 Windows:
    <Oracle_Home>\OPatch\opatch lsinventory
  3. 回退应用的 OPatch。以下示例语法显示了 OPatch ID 示例。使用相关的 OPatch ID。

    对于 Linux:

    <Oracle_Home>/OPatch/opatch rollback -id 3012639

    对于 Windows:

    <Oracle_Home>\OPatch\opatch rollback -id 3012639
  4. 检查当前构建编号。

    对于 Linux:

    cat <Oracle_Home>/essbase/bi-epm-registry/baseproperties/essbase/essbase_registry.properties
    对于 Windows(使用记事本打开 essbase_registry.properties):
    <oracle_home>\essbase\bi-epm-registry\baseproperties\essbase\essbase_registry.properties
  5. 启动服务器。

    对于 Linux:

    sh <Oracle_Home>/domains/essbase_domain/esstools/bin/start.sh

    对于 Windows:

    <Oracle_Home>\domains\essbase_domain\esstools\bin\start.cmd