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

0 comments:
Post a Comment