This blog is a guide for using Oracle EPM Integration Agent for inbound as well as outbound integration with Oracle EPM Cloud.

EPM Integration Agent Background

We can directly extract, load, and transform metadata and data from a wide variety of on-premises and third-party cloud source systems for use in Oracle EPM Cloud. The agent, implemented as a data source for Data Management and Data Integration, responds and provides the specified information when a user executes data load rules.

The EPM Integration Agent provides connectivity between the EPM Cloud and on-premises sources including SQL data sources like –

  1. Oracle and Microsoft SQL Server
  2. E-Business Suite GL
  3. PeopleSoft GL

The agent can run in two different modes:-

  • Asynchronous                
  • Synchronous

The mode determines how communication is opened between your on-premises data source and the EPM Cloud.

Asynchronous Mode:

When integration is executed in asynchronous mode, the EPM Cloud queues for the integration job to execute. The agent polls at intervals and executes the jobs queued.

Asynchronous Mode

Synchronous Mode:

In synchronous mode, EPM Cloud directly calls the agent. This requires EPM Cloud to connect over HTTP(s) to the agent.

Synchronous Mode

EPM Integration Agent Configuration:

The agent requires a Java Runtime Environment (JRE) 8+ to run. JRE 1.8 update 221 needs to be downloaded and installed.

Type in search CMD>> Type java -version

Java Image

Login to PBCS > Navigate > Data Exchange and go to Action > Download Agent.

Download EPM Integrator Agent

Once downloaded, extract the zip file.

EPM Integration Agent 2

EPM Integration Agent 3

Type command prompt in search > Run as administrator.

In the “bin” directory folder the following is the .bat file, which is used for configuring and running the EPM Agent.

Create App Folder

createAppFolder.bat – Use for the creation of an app folder where one registers the application to connect to Source on-premise to the Target application.

encryptpassword.bat – Use for encrypting password use for connection with PBCS/EPBCS URL.

epmagent.bat – Use for running EPM Agent.

stopagent.bat – Use for stopping EPM Agent.

Next is to open Command Prompt and traverse to the bin directory.

open Command Prompt

Type createAppfolder.bat and press ENTER.

Command Prompt Image 2

It will create below four folders (config, data, logs, scripts).

EPM Integration Agent Script

config Folder contains an initialization file agentparams.ini where the parameters to connect to PBCS/EPBCS are set up. So traverse to the config folder and open the agentparams.ini file.

Agent Parameters

The file will be open in the below format – Which we will open and populate along with steps.

Agent Parameters

EPM_AGENT_HOME: Path where the EPM Agent folder is located

EPM_APP_DATA_HOME: Path where Application is created i.e. appdata

AGENT_NAME: It’s the parameter name that appears in Data Exchange when connected (Explain in the further process), any name can be used

CLUSTER: It is the Cluster name that is created in the Data Exchange in PBCS/EPBCS application

PORT: always 9090

CLOUD_URL: URL of PBCS/EPBCS (this should be till oracle.com)

CLOUD_DOMAIN: Domain of your cloud application

CLOUD_USER_NAME: Username

CLOUD_PASSWORD: Encrypted password which is covered in further process

POLL_INTERVAL: It is in seconds and only used for Asynchronous Mode

For setting up parameters one has to create clusters in PBCS/EPBCS, clusters provide a way of organizing integrations. Clusters are created in Data Management and can either be defined to operate in synchronous or asynchronous modes.

To create a cluster, go to Data Exchange > Action > Agent > Create New

Agent Cluster

We need to encrypt the password with “encryptpassword” script in the agent bin directory.

Go to the “bin” folder.

EPM Integrator Agent Bin Folder

Open Command prompt type encryptpassword.bat > type password and press enter.

Open Command prompt type

The encrypted password must be manually copied to the ini file.

** Example of a completed ini file**

Example of a completed ini file

The EPM Cloud SSL certificate needs to be exported and copied to the agent cert folder.

  1. Click the padlock icon
  2. Select Site Settings
  3. Certificate
  4. Details tab and select Copy to File
  5. Save the file to the agent “cert folder”

Cert Folder

The agent is now ready to run in asynchronous mode.

Open the command prompt and traverse to the EPM Agent bin folder.

EPM Agent image

EPM Agent Image 3

EPM Agent Image 4

Go back to the Data Integration and select the cluster. You will now see the agent has been registered successfully.

EPM Async

Loading Data using EPM Integration Agent:

Before we begin the data load, we need to test the connection with the source database.

Open SQL Developer and connect with the Database.

Oracle SQL Dev image

We want to connect to Employee Details View.

Employee Details View

Create an SQL query in Data Integration that will be executed by the agent to extract the data.

Go to Data Integration > Actions > Query.

Data Integration Query

  1. Add a new query
  2. Enter a new name for the query and the SQL statement and save

Create Query

We have ~COUNTRYID~ in the SQL statement. This allows you to filter the data to be extracted. It is possible to set the value either at the data load rule level or at the application level.

Query Name Details

The next step is to create a comma-separated file with a line containing all the possible columns that one needs to load the data in the Application.

CSV Image 1

*Note*The name of the file will become the name of the target application in Data Management and save the file in-app data.

Data Management

Data Management

Now it’s time to create a Data Source.

Go to Data Management.

Data Source

Target Application > Add > Data Source.

Target Application Summary

Select Premise Database OR Cloud.

Source System On-Premises Database

Upload the file with the column names and select it and click Save.

EPM Details Demo

The filename has been converted into the application name.

Application Details Job Title

Go to the Application filter tab that provides options to configure the connection to the source database.

Data Extract Query

Choose Delimiter.

Choose Delimiter

Choose Credential Store – Cloud or File.

JDBC driver.

JDBC drop down image

jdbc:oracle:thin:@dbhost:port/service

For this case, we are using jdbc:oracle:thin:@localhost:1521/DEV

JDBC URL image

Username/Password is for the user you want to connect to the database.

Application Filters

Click Edit to add Variable that is used in the SQL query “COUNTRYID”.

Application Filters Country ID

Note: The Name Country ID should be an exact match with what has been mentioned in the SQL Query.

Give Filter Name, Display Prompt, Display order, and Display level, and click OK.

Edit Application Details

Create Import Format in Data Management.

Create Import Format

Follow the normal integration procedure for creating the Location and Data Load Rule. In the Data Load Rule, one can see the filter for Country ID. Enter the filter as desired.

Data Load File

Click Save, and click Execute.

Execute image.

After the execution of the rule, we can see the file is processing in the Process details and also in the command Prompt “Polling”.

Workflow Process Details

Make Poll Data

Once the process is completed, Data Load Workbench to see the loaded data.

Workflow Import

We can check the .dat file in EPM Agent under

C:OracleEPMAgentappdata[application-name]data

Data Write Back using EPM Integration Agent:

Consider the “ACTUALS” database as the target where the adjusted data is to be written back.

The table structure is as below.

Actuals Data Table

Currently, data is loaded for Cash, and hence the Data Source: Load.

Data Source Load

The following adjustment data needs to be written from an Oracle EPM Cloud Application back into the ACTUALS database.

ACTUALS Database

The first step is to register the On-premises Database in Data Management.

Create a file with Headers of the Target Database i.e. ACTUALS.

Note: Mentioned the exact columns which are present in the Database.

EPM WB Actuals

EPM WB Actuals

Registering the Database in the Data Management.

For that traverse to Data Management in the EPM Application by clicking Navigator->Data Management->Setup-> Target Application.

Target Application Summary 2

Select Add and click on Local.

Local

Select Type as “Data Source to On-Premise Database” and upload the file created in the step above.

Select Application

Select a File to Upload

Select the uploaded file, click save and change the Amount Target Dimension Class to “Amount” and clear the Data Table Column Name

Repeat the step for the Period, Year, and Scenario dimension.

Target Application Details Account

Mention the credentials and Table Name in the Application Options tab as shown below.

Note: Workflow mode should be set to “Full”.

Table Name Actuals.

Table Name Actuals

Now follow the normal process for creating Location and Import format.

Import format.

Import Format

Location.

Location

Create a Data Load Rule with needed filters.

Create Data Load Rule

Execute the Data Load rule.

Execute Data Load

Check the progress via the Process Details and Command Prompt.

Process Details and Command Prompt

One can check the .dat file in EPM Agent under C:OracleEPMAgentappdata[application-name]data and validate whether the data is pushed to the “ACTUALS” Database.

Welcome Page Actuals