Professional Documents
Culture Documents
EPM Automate The Definite Starter Guide
EPM Automate The Definite Starter Guide
EPM Cloud
Overview ....................................................................................................................................................... 4
About this Guide ....................................................................................................................................... 4
What is EPM Automate? ........................................................................................................................... 4
What will you learn in this Whitepaper? .................................................................................................. 4
Setting Up EPM Automate ............................................................................................................................ 5
Download and Install EPM Automate ....................................................................................................... 5
Configure EPM Automate Environment ....................................................................................................... 7
Gather Information about your Application ............................................................................................. 7
Test Basic Connectivity to your EPM Cloud application ........................................................................... 7
Encrypt the Password ............................................................................................................................... 8
Create a Parameter File ............................................................................................................................ 9
Common Commands for Planning and Budgeting Cloud Service (PBCS/EPBCS) ........................................ 10
Administration ........................................................................................................................................ 10
Download Snapshot ............................................................................................................................ 11
Set Substitution Variable .................................................................................................................... 13
List Substitution Variable .................................................................................................................... 15
Manage Files ........................................................................................................................................... 17
Upload File .......................................................................................................................................... 17
Delete File ........................................................................................................................................... 17
List Files ............................................................................................................................................... 18
Manage Data ........................................................................................................................................... 20
Import Data ......................................................................................................................................... 20
Export Data ......................................................................................................................................... 22
Run Data Management Rule ............................................................................................................... 23
Run Business Rule ............................................................................................................................... 24
Manage Metadata .................................................................................................................................. 25
Export Metadata ................................................................................................................................. 25
Import Metadata................................................................................................................................. 26
Refresh cube ....................................................................................................................................... 27
If you are an Oracle EPM Cloud customer, you have very likely wondered how to automate your
processes and the most common answer to this question is to use a utility called “EPM Automate”.
Note: please be aware that EPM Automate commands and Oracle EPM Cloud functionality changes
from time to time. Use this reference as a starting point, but make sure to test and read the most
current documentation for additional details.
EPM Automate is a command line utility for Oracle EPM Cloud applications, like PBCS/EPBCS, FCCS,
ARCS, EDMCS etc. Therefore, it is an easy option to create simple automation scripts. After installing the
utility and configuring a parameter file for the environment, users can write scripts to perform
administration and processing tasks. Not only does automation reduce the amount of manual tasks, but
it also results in repeatable processes and therefore increases confidence in the application.
- Administration: managing files and snapshots, refresh cube, switching to admin mode, reset
service
- Business Logic: running Business Rules and Data Management processes
- Data Management: importing/exporting data, metadata and mappings, updating variables
- Security: managing users and groups, creating audit reports
Now that you have an idea what you can automate with Oracle’s EPM Cloud automation utility, it’s time
to see first hand how you can leverage this tool. Not only will this allow you to create scripts that will
perform the manual tasks you would need to take care of yourself, but it will also allow you to focus on
the more important tasks of your job.
The purpose of this whitepaper is to give you a jump-start into using EPM Automate effectively. We are
going to connect to a PBCS application, but it could just as well be FCCS, ARCS, EDMCS etc.
You will learn the ropes of this tool as well as what its limitations are so that you can make informed
decisions on how to use it. The gray boxes contain information that we’ve learned over time so that you
can set everything up based on best practices right away.
Enjoy the read and don’t hesitate to send us any questions or feedback: info@fintechinnovations.com
This chapter shows how to set it up EPM Automate. First you need to download and install the client
utility, then we recommend to configure each environment using a configuration file which simplifies
maintaining the processes:
Does this seem complicated? Do you want to by-pass this setup and build seamless processes in less
time? Scroll to page xxx to learn how to do this easier using ICE Cloud.
4. Save the file (depending on your browser and operating system, it might automatically be saved
to your Downloads folder)
5. The name of the downloaded file is EPM Automate.exe. Right-click on the file, choose Run as
Administrator and follow the instructions. By default, the installer creates a folder called
C:\Oracle\EPM Automate which can be used unless you want to create it in a different folder.
Why would you want to move the EPM Automate client to a different folder?
You should install EPM Automate on a computer and in a location on the file system that
a) you CAN access easily, but
b) any unauthorized users CANNOT access easily.
Please note: accessing the EPM Automate folder can be tricky and make life unnecessarily
complicated, especially when you are not in the office or connected to VPN. <Here> is a
solution to this problem.
6. After downloading and installing the client utility, you will see the following subfolders in your
installation directory (by default: C:\Oracle\EPM Automate):
Please note: in this example we are going to connect to a PBCS application, but it could just as well be
FCCS, ARCS, EDMCS etc.
You will need the following information in order to connect to your EPM Cloud application:
Please note: we are going to configure the EPM Automate environment using best practices, but for
now let’s keep things simple since this is the first time you are using it. We want to make
sure you can connect without any problems before we parameterize the commands. If
you cannot make the connection using the following steps, then there is no point in
setting up the advanced method anyway.
1. Open a Command Prompt: press the Start key and type cmd
2. Switch to the following directory: cd C:\Oracle\”EPM Automate"\bin
3. Enter the following command to try to log in to your EPM Cloud application
4. The login process takes a few seconds and afterwards you should see Login successful as
confirmation.
Here is a screenshot of this. Of course the credentials are blanked out. Please make sure that no one
gets access to your password!
When you login to your Oracle EPM Cloud application, EPM Automate creates a file called .prefs in the
folder from which you execute the LOGIN command. Since we were in folder C:\Oracle\EPM
Automate\bin for testing purposes, the file has been created in this directory. This is not a good place to
run the LOGIN command from, but it will work for now.
Since we are working with mission-critical data in our EPM applications, we need to make sure that we
are securing our access credentials so that no one other than yourself knows the password and can act
on your behalf or access sensitive data without permission.
EPM Automate provides a way to encrypt a password in a password file. It uses Transport Layer Security
(TLS) with SHA-2/SHA-256 Cryptographic Hash Algorithm1 to secure communication with EPM
Automate.
Please note that it is good practice to create a service account which is only used for EPM Automate
processes. Consider creating a dedicated account for this matter.
1
According to Appendix A, reference 1
Running this command will create a file with the name password.epw in the specified folder
which contains the encrypted password.
This step is optional, but after setting up EPM Automate we highly recommend to create a
parameter file so that you can manage environment specific information in one place rather than
having to update the information in multiple places. This will save you a lot of time and hassle when
updating user credentials as well as after migrating the files to a different environment (e.g. from
TEST to PROD) because credentials only need to be modified in one single file rather than all over the
place.
Create a file named epm_init.bat and add the following lines (please note: REM indicates that a
comment is following, used to describe the information that is provided):
REM path to EPM Automate batch script
SET EPM_AUTOMATE_PATH="C:\Oracle\EPM Automate\bin\epmautomate.bat"
REM URL of EPM Cloud environment
SET EPM_CLOUD_URL=https://planning-test-
a123456.pbcs.us2.oraclecloud.com
REM Domain Id
SET DOMAIN_ID=a123456
REM EPM Cloud Credentials – Username
SET USERNAME=<user name/email>
REM EPM Cloud Credentials - Password
SET PASSWORD_FILE=”C:\Oracle\EPM Automate\admin_only\test-123456.epw”
On the next few pages you will learn how to set up the following commands:
- Administration:
o Download Snapshot
o Set Substitution Variables
o List Substitution Variables
- Manage Files:
o Upload File
o Download File
o Delete File
o List File
- Manage Data:
o Import Data
o Export Data
o Run Data Management Rule
o Run Business Rule
- Manage Metadata:
o Export Metadata
o Import Metadata
o Refresh cube
Administration
Based on your daily maintenance schedule, PBCS creates a snapshot of your application. This snapshot
will be recreated on a daily basis. EPM Automate allows to download the file or to rename it so it does
not get overwritten. There are also many other tasks including setting and getting substitution variables.
The following command downloads a snapshot from the cloud environment to the local file system.
Please note that snapshots might be 10s or even 100s of gigabytes in size and can take a long time to
download. The file will be downloaded to the folder from which the command was executed.
Command:
epmautomate downloadFile <Name/path of file to download>
Example:
The file will be downloaded to the folder from which this command is called, in this case “C:\Oracle\
EPM Automate\GettingStarted”.
- The log information helps to understand quickly where the snapshot has been archived
The following command sets a value for a Substitution Variable in PBCS. Please note that it is possible to
define multiple substitution variables in this command.
Command:
epmautomate setSubstVars <CubeName> <Name of SubVar>=<Value to be assigned>
Example:
- Defining a step to set a Substitution Variable, assigning an ICE Cloud variable called “FiscalYear”
The following command lists all or just one (if a name is provided) Substitution Variables of a PBCS
application, either across all cubes (by specifying “ALL”) or only a specific one (if a cube name is
provided).
Command:
epmautomate getSubstVars <CubeName or “ALL”> [name=<Name of a SubVar>]
All the Substitution Variables can be listed – now what? If you want to use one of
those values to automate a process, it looks like you will have to write a script to
parse those values.
- Retrieving the value of a single SubVar with ICE Cloud and assigning it to a Variable called
“ICE_FiscalPeriod” in ICE Cloud. This value can then be used to add to an email, as a value to
filter a dataset as well as many other use cases.
- Retrieving all Substitution Variables from PBCS using ICE Cloud comes out of the box
In this section we will see how we can manage files with PBCS:
- Upload File
- Download File (this works exactly as described here)
- Delete File
- List Files
Upload File
The following command uploads a file from the machine where EPM Automate has been installed to the
cloud inbox. Please note that large files will take a significantly more time than small files, depending on
your upload speed and the speed at which Oracle EPM Cloud can receive the files.
Command:
epmautomate uploadFile <Name/path of file to upload>
Example:
Please note: it is not possible to upload an empty file. This will result in an error.
Delete File
Command:
epmautomate deleteFile <Name/path of file to upload>
Example:
The following command lists all file from the machine where EPM Automate has been installed to the
cloud inbox. Please note that large files will take a significantly more time than small files, depending on
your upload speed and the speed at which Oracle EPM Cloud can receive the files.
Command:
epmautomate listFiles
Example:
Retrieving the list of files is easy with ICE Cloud and comes out of the box with every PBCS application. If
you are looking for files with a certain name or a certain pattern, they can easily be identified with a
simple operation.
- Import Data
- Export Data
- Run Data Management Rule
- Run Business Rule
Import Data
The following command imports a data file from the PBCS inbox into a PBCS cube. This requires the data
file to be in the inbox, matching the exact formatting requirements of the file. Please note that the file
will only load successfully if there are no errors. If there is an error (due to a record that is not formatted
correctly or a missing member, the entire file will be rejected).
Command:
epmautomate importData <Name of Import Data job> [name of file to import]
Example:
In this case there was an error and we need to log in to PBCS > Jobs to find out what the problem was:
o Export Metadata
o Import Metadata
o Refresh cube
Export Metadata
The following references have been used to create potions of this guide:
1. Working with EPM Automate for Oracle Enterprise Performance Management Cloud:
https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-
common/cepma/GUID-3C3F97F0-0EC6-4279-871C-4736865C0EE3.pdf