Wednesday, August 24, 2011

WLST OBIEE Upload RPD

Small script I use to upload RPD on the OBIEE11g BI system:

# Be sure we are in the root
cd('..\..')

print 'Connecting to Domain ...'
try:
domainCustom()
except:
print 'Already in domainCustom'

print 'Go to biee admin domain'
cd('oracle.biee.admin')

# go to the server configuration
print 'Go to BIDomain.BIInstance.ServerConfiguration MBean'
cd('oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication,group=Service')

# Lock the System
execfile("F:\WLST\Lock System.py")

cd('..')
# go to the server configuration
cd('oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication,group=Service')
print 'Uploading RPD'
# Set the parameters
params = jarray.array(['/home/oracle/Desktop/FolderShortcuts/OBIEEInstallHome/instances/instance1/bifoundation/OracleBIServerComponent/coreapplication_obis1/repository/10719.rpd','Admin123'],java.lang.Object)
# Set the parameters Signs
sign = jarray.array(['java.lang.String', 'java.lang.String'],java.lang.String)
# Invoke the procedure
invoke( 'uploadRepository', params, sign)

# Commit the system
execfile("F:\WLST\Commit System.py")

print 'please restart BI-server using opmnctl'


! DON’T FORGET to BOUNCE the BI-SERVER!



Till Next Time

2 comments:

  1. Hi John,

    Thanks for sharing the information ,I am looking to use the wlst tool to upload rpd to 2-node cluster ,what modification will make the above script work?

    ReplyDelete
  2. Hi John,
    Thanks for the script to automate the RPD. Can yo
    u please provide the details of this script like Param, Lock the system and commit the system
    Is the param is the path of the rpd?
    Lock and commit the system have the different scripts? where these scripts located?

    Thanks

    ReplyDelete