使用 Standard to Management Ledger Migration 实用程序

使用 Standard to Management Ledger Migration 实用程序准备明细 Profitability 应用程序,以迁移到 Profitability and Cost Management 环境。

注:

此实用程序仅对使用 Oracle 数据库Oracle Hyperion Profitability and Cost Management 安装可用。

此实用程序创建模板 ZIP 文件,可以将该文件作为新的管理分类帐应用程序导入到 Profitability and Cost Management 中。它包含来自标准 Profitability 应用程序的维元数据、视点 (POV) 定义和应用程序首选项。它还包含从标准应用程序阶段和规则派生的占位符管理分类帐规则集和规则,您必须手动填写它提供的这一框架才能完成迁移过程。

Standard to Management Ledger Migration 实用程序使用 PL/SQL 过程将信息从标准 Profitability 应用程序提取到服务器上的文件中。PL/SQL 过程要求您先创建 Oracle directory 对象,该对象用于访问数据库服务器上的操作系统和写入文件。随后,将这些文件复制到基于 Microsoft Windows 的任何客户端计算机,在其中运行批处理 (BAT) 文件以进行准备并将它们打包到管理分类帐模板 ZIP 文件中。然后,可以将模板文件导入到云中新的管理分类帐应用程序。

步骤如下所示:

  1. 从包含实用程序文件的 ZIP 文件提取它们。

    打开 P28048630_111240_Generic.zip 修补程序文件并提取以下两个文件:sptomlextract.sqlsptomltemplate.bat

    在该 Zip 文件中,它们位于以下文件夹:

    HPCM_11_1_2_4_128_28048630\files\products\Profitability\database\Common\Oracle

  2. 创建一个 Oracle directory 数据库对象,以指定数据库服务器上用来写入迁移文件的位置:
    1. 在 Oracle SQL Developer 或 SQL Plus 中,连接到具有 create any directory 权限的用户并执行以下命令:

      create or replace directory EXTRACT_DIR as '<directory path where you want the migration files written>';

      例如,要将它们写入 Windows 服务器上的 D:\Migration_Extract 目录:

      create or replace directory EXTRACT_DIR as 'D:\Migration_Extract';

    2. 将对该目录的所有权限授予 Profitability and Cost Management 产品架构所有者:

      grant all on directory EXTRACT_DIR to <Profitability and Cost Management schema owner>;

      例如,如果 Profitability and Cost Management 架构所有者是 HPCM1,请使用以下命令:

      grant all on directory EXTRACT_DIR to HPCM1;

  3. 创建迁移实用程序 PL/SQL 包:

    从 Oracle SQL Developer 或 SQL Plus 中,以 Profitability and Cost Management 产品架构所有者身份运行 sptomlextract.sql 脚本。这将创建并编译 HPM_SP_TO_ML_PKG PL/SQL 包。

  4. 运行迁移实用程序,将信息从标准 Profitability 应用程序提取到数据库服务器上的文件中:

    从 Oracle SQL Developer 或 SQL Plus 运行以下命令:

    exec HPM_SP_TO_ML_PKG.ExtractAll('<appName>');

    例如,如果应用程序名称为 "BksSP82",请使用以下命令:

    exec HPM_SP_TO_ML_PKG.ExtractAll('BksSP82');

    将在步骤 2 中指定的目录中创建迁移文件。
  5. 将迁移文件复制到任何 Microsoft Windows 客户端或服务器。

    如果在 Microsoft Windows 系统上未安装 Oracle Database 实例,则将生成的迁移文件复制到任何 Windows 系统。同时将 sptomltemplate.bat 文件复制到该位置。

  6. 生成管理分类帐模板 ZIP 文件:

    在 Microsoft Windows 计算机上,运行 sptomltemplate.bat 脚本以使用以下命令准备迁移文件并将其打包到管理分类帐模板 ZIP 文件中:

    sptomltemplate.bat <directory path where you copied the migration files>

    例如,如果已将迁移文件复制到 Windows 服务器上的 D:\Migration_Template,则命令如下:

    sptomltemplate.bat D:\Migration_Template

    此步骤将在同一文件夹中生成名为 SPtoML_Template.zip 的模板文件。