此範例案例探討如何在 Oracle Enterprise Data Management Cloud 應用程式與 Oracle Enterprise Performance Management Cloud 應用程式之間同步維度。
您可以使用本節中的指令碼來完成這些任務:
若要在 Oracle Enterprise Data Management Cloud 應用程式與 EPM Cloud 應用程式之間同步維度和對映,請執行下列動作:
複製下列指令碼以建立指令碼檔案:
rem Integration example to sync application dimensions between EDM and EPM Cloud rem Windows script for demonstration purposes only; do not use in production environments set EDMUSER=userid set EDMSVR=https://hostname set EDMPWDFILE=example_EDM set EDMAPP=appname set EDMDIM=dimname set EDMLOC=location set EPMUSER=userid set EPMSVR=https://hostname set EPMIMPJOB=importjobname set PWDFILE=C:\Oracle\EPM.epw set DIMFILE=dimension.csv set MAPFILE=mapping.csv rem Synchronizing EDM ---> EPM rem Export Dimension and Mappings from EDM call epmautomate login %EDMUSER% %EDMPWDFILE% %EDMSVR% call epmautomate exportdimension %EDMAPP% %EDMDIM% %DIMFILE% call epmautomate exportdimensionmapping %EDMAPP% %EDMDIM% %EDMLOC% %MAPFILE% call epmautomate logout rem Log into the EPM Cloud environment call epmautomate login %EPMUSER% %PWDFILE% %EPMSVR% rem Copy exported files from EDM environment to EPM and import metadata and mappings call epmautomate copyfilefrominstance %DIMFILE% %EDMUSER% %EDMPWDFILE% %EDMSVR% inbox/%DIMFILE% call epmautomate importmetadata %EPMIMPJOB% call epmautomate copyfilefrominstance %MAPFILE% %EDMUSER% %EDMPWDFILE% %EDMSVR% inbox/%MAPFILE% call epmautomate importmapping %EDMDIM% %MAPFILE% REPLACE FALSE %EDMLOC% call epmautomate logout
指令碼執行參數
本節中的指令碼檔案需要您指定下表中所述的部分參數值。並非所有這些參數都用於所有指令碼。
表格 3-27 指令碼檔案的參數值
參數 | 描述 |
---|---|
EDMUSER |
Oracle Enterprise Data Management Cloud 服務管理員的使用者登入 ID。 範例:EDMUSER=jdoe@example.com |
EDMSVR |
Oracle Enterprise Data Management Cloud 環境的 URL。 範例:EDMSVR=https:// example.oraclecloud.com |
EDMPWDFILE |
Oracle Enterprise Data Management Cloud 服務管理員 之加密密碼檔 (EPW) 的名稱與位置。 範例:EDMPWDFILE=edm_jdoe.epw |
EDMAPP |
Oracle Enterprise Data Management Cloud 應用程式維度的名稱。 範例:EDMAPP=USOperations |
EDMDIM |
要匯出或匯入的維度名稱。 範例:EDMDIM=entity |
EDMLOC |
要匯出的位置名稱。 範例:EDMLOC=Loc1 |
EPMUSER |
EPM Cloud 服務管理員的登入名稱。 範例:EPMUSER=john.doe@example.com |
EPMSVR |
EPM Cloud 環境的 URL。 範例:EPMSVR=https://example.oraclecloud.com |
EPMIMPJOB |
EPM Cloud 環境中類型為 import metadata 的現有匯入工作名稱。 範例:EPMIMPJOB=imp_DIMMetadata |
EPMEXPJOB |
EPM Cloud 環境中類型為 EPMEXPJOB=Exp_DIMMetadata |
PWDFILE |
EPM Cloud 服務管理員 之加密密碼檔 (EPW) 的名稱與位置。請參閱 PWDFILE=pwd_jdoe.epw |
DIMFILE |
保存所匯出維度資料的檔案名稱。 範例:DIMFILE=entity_file.CSV |
MAPFILE |
保存所匯出對映資料的檔案名稱。 範例:MAPFILE=map_file.CSV |