使用 Standard to Management Ledger 移轉公用程式

您可以使用 Standard to Management Ledger 移轉公用程式來準備 Detailed Profitability 應用程式,以便移轉至 Profitability and Cost Management 環境。

註:

只有使用 Oracle 資料庫Oracle Hyperion Profitability and Cost Management 安裝才可使用此公用程式。

這個公用程式會建立範本 ZIP 檔,可讓您當作新的 Management Ledger 應用程式來匯入至 Profitability and Cost Management。它包含來自 Standard Profitability 應用程式的維度中繼資料、檢視點 (POV) 定義和應用程式偏好設定。它也包含佔位字元 Management Ledger 規則集和規則 (從標準應用程式階段和規則所衍生),以提供一個必須手動填寫才能完成移轉程序的架構。

Standard to Management Ledger 移轉公用程式使用 PL/SQL 程序,將 Standard Profitability 應用程式的資訊擷取到伺服器上的檔案。PL/SQL 程序需要您先建立 Oracle directory 物件,其用來存取資料庫伺服器上的作業系統及寫入檔案。接下來,您將這些檔案複製到任何 Microsoft Windows 型用戶端電腦,在其中執行批次檔 (BAT) 來準備檔案並包裝成 Management Ledger 範本 ZIP 檔。最後,您可以將範本檔案匯入到雲端上的新 Management Ledger 應用程式。

步驟如下:

  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 '<您要寫入移轉檔案的目錄路徑>';

      例如,若要將它們寫至 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. 執行移轉公用程式,將 Standard 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 用戶端或伺服器上。

    如果 Oracle 資料庫實例未安裝在 Microsoft Windows 系統上,請將所產生的移轉檔案複製到任何 Windows 系統上。將 sptomltemplate.bat 檔案也複製到該位置。

  6. 產生 Management Ledger 範本 ZIP 檔案:

    在 Microsoft Windows 電腦上執行 sptomltemplate.bat 指令碼,以使用此命令來準備及包裝移轉檔案到 Management Ledger 範本 ZIP 檔案中:

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

    例如,如果您將移轉檔案複製到 Windows 伺服器上的 D:\Migration_Template,該命令為:

    sptomltemplate.bat D:\Migration_Template

    此步驟會在相同資料夾中產生一個叫作 SPtoML_Template.zip 的範本檔案。