OracleBIBlog Search

Tuesday, August 4, 2009

Simplifying Migration Process – Changing Environment Specific Variables in RPD

When it comes to migrating repository file between environments (Dev - TEST-Prod), one of the common questions from OBIEE environment administrators is if there is a way to change the connection information without having to change them manually in all the places.

Creating repository variables for DSN and DSN Username solves the issue to an extent. However, imagine having to deal with changing multiple DSNs and their respective usernames. Moreover, there is the setting password to the DSN username. One way to automate the setting of the variables is to store the values in a file and set them via admin tool command line mode.

First, define repository variables that can be used in the connection pool.

image

Reference the DSN information in the connection pool.

image

Now create a control file SetVariables.txt with the environment specific values.

_______________

'To Open rpd - Open <rpdname> <Administrator User> <administrator password>

Open YourRpd.rpd Administrator SADMIN

'Setting OLAP DSN variable

SetProperty "Variable" "OLAP_DSN" Initializer " 'QA_DSN' "

' Setting OLAP DSN Username variable

SetProperty "Variable" "OLAP_DSN_USER" Initializer " 'QA_User' "

'Setting OLAP DSN User QA database password

SetProperty "Connection Pool" "AppDW"."Connection Pool" "Password" "QAPassword"

Save

Close

Exit

______________

Create one per environment.

image

In the command line run the following command:

AdminTool.exe /command SetVariables_QA.txt

image

And the repository is now prepped for the other environment (QA in this case).

image

2 comments:

OBIEEguy said...

Interesting approach.

Swapna said...

Hi Kumar kambam,

Really it is an int6resting post and helpful for me.

Keep posting some more topics.

Regards
Swapna
OBIEE Consulatant