Planning PasswordEncryption utility

It’s been a few months since my last post. In this post, I will detail the step (in Windows and Unix) to encrypt a password (using the PasswordEncryption utility) in order to use it with planning utilities, like for example the outline utility.

This post will be the first one of a series that will end on with loading data, specifically text data from a SQL view in Planning using the outline load utility.

The documentation around the PasswordEncryption utility is very straightforward but I still wanted to make that post  for anyone that might not know that such a utility exists or might not know how to navigate in a Unix environment.

Here is what the Oracle documentation says about this utility:

When running Planning utilities that prompt for passwords, administrators can use an option to suppress password prompts, for example, when running utilities in batch mode. To enable suppressing password prompts, use the PasswordEncryption utility to create a file that stores a password in encrypted form. After the file is set up, you can run Planning utilities with the [-f:passwordFile] option as the first parameter in the command line to skip the password prompt and use the password from the encrypted file. Each password file contains one password, and is stored in the location that you specify when running the utility.

To encrypt a password to be used in Planning utilities:

On a Windows environment:

  • Go on the server where Planning is installed using remote desktop. Locate the PasswordEncryption.cmd. It should be under the planning1 folder where all the planning utilities are stored.

1PasswordEncryption.cmd Location

  • Then open the Command prompt. In my case utilities are on the D drive so once I switched to drive d I just navigate to the planning utility folder.D:\Oracle\Middleware\user_projects\epmsystem1\Planning\planning1

2PasswordEncryption.cmd command prompt start

  • The syntax to start encrypting a password is: PasswordEncryption.cmd passwordfile
    If you only specify the file name then the passwordfile will be created under the planning1 folder. In my case, I want the Encryptedpassword file to be placed under D:\Oracle, so I will enter:

PasswordEncryption.cmd D:\Oracle\Encryptedpassword.txt

  • Then press enter. When prompted, enter the password you wish to encrypt. Nothing will happen as you will be typing the password.

3PasswordEncryption.cmd enter command and then password

  • Once the password has been entered, press Enter again. You should get a successful message.

4PasswordEncryption.cmd password has been created to the desired location

  • Finally go to the Planning utility folder or the one you specified to get your Encryptedpassword.txt file.

5PasswordEncryption.cmd Here is the text file with the encrypted password

  • When opening the file, you should see the actual encrypted password.

6PasswordEncryption.cmd here is the encrypted password

On a Unix environment:

  • Go on the server where Planning is installed using Putty. If you don’t have Putty, just go online and download it. Locate the PasswordEncryption.sh. It should be under the planning1 folder where all the planning utilities are stored.
  • In my case utilities are on the u11 drive. But the rest of the path should be identical. Use cd to navigate to u11/Oracle/Middleware/user_projects/epmsystem1/Planning/planning1

Unix1PasswordEncryption.sh LocationThe syntax to start encrypting a password is: PasswordEncryption.sh passwordfile

  • If you only specify the file name then the passwordfile will be created under the planning1 folder. In my case, I want the Encryptedpassword file to be placed under u11/Oracle, so I will enter:

./PasswordEncryption.sh u11/Oracle/Encryptedpassword.txt
Make sur you type ./ before calling the utility or the utility won’t be executed.

  • Then press enter. When prompted, enter the password you wish to encrypt.

Unix2PasswordEncryption.sh command prompt start

  • Once the password has been entered, press Enter again. You should get a successful message.

Unix4PasswordEncryption.sh password has been created to the desired location

  • Finally go to the Planning utility folder or the one you specified to get your Encryptedpassword.txt file

Unix5PasswordEncryption.sh Here is text file with the encrypted password

  • When opening the file, you should see the actual encrypted password.

Unix6PasswordEncryption.sh here is the encryptedpassword

In a future post, I will use that Encrypted password file to automate the load of text data into Planning using the outline load utility.

PS: Thanks to Vijay and Pete for showing me the basics on Unix.

Will Oscar Andreelli

About Will Oscar Andreelli

Footballer (soccer to Americans), free diver and Tough Mudder (er?), Will is as comfortable in the outdoors as he is in front of an allocation script. His mom calls him “the best EPM consultant in the West of Versailles”. Having helped a number of clients with their planning and forecasting needs, he is now intent on writing about his exploits...

2 Comments

  1. Thank you for the walk through. How would this be set up with Single Sign On enforced? I tried to run a utility with a native user’s id and password.txt file from passwordencryption.cmd, and got the error “Single sign on validation failed.”

  2. Awesome..It worked..I had a requirement to do Batch script for executing the Planning utility with out prompting for password. I implemented in my application..Thanks for help and for the post also.

Leave a Reply

Your email address will not be published. Required fields are marked *