此示例方案介绍了在 Oracle Enterprise Data Management Cloud 应用程序和 Oracle Enterprise Performance Management Cloud 应用程序之间同步维。
使用本节中的脚本可完成以下任务:
要在 Oracle Enterprise Data Management Cloud 应用程序与 EPM 云应用程序之间同步维和映射:
通过复制以下脚本来创建脚本文件:
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 云服务管理员的登录名。 示例:EPMUSER=john.doe@example.com |
EPMSVR |
EPM 云环境的 URL。 示例:EPMSVR=https://example.oraclecloud.com |
EPMIMPJOB |
EPM 云环境中类型为导入元数据的现有导入作业的名称。 示例:EPMIMPJOB=imp_DIMMetadata |
EPMEXPJOB |
EPM 云环境中类型为 EPMEXPJOB=Exp_DIMMetadata |
PWDFILE |
EPM 云服务管理员的加密密码文件 (EPW) 的名称和位置。请参阅 PWDFILE=pwd_jdoe.epw |
DIMFILE |
保存已导出维数据的文件的名称。 示例:DIMFILE=entity_file.CSV |
MAPFILE |
保存已导出映射数据的文件的名称。 示例:MAPFILE=map_file.CSV |