Small script I use to changer the WebCat Location on a 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 presentation server catalog location
cd('oracle.biee.admin:type=BIDomain.BIInstance.PresentationServerConfiguration,biInstance=coreapplication,group=Service')
# Lock the System
execfile("F:\WLST\Lock System.py")
# Go to the presentation server catalog location
cd('..')
cd('oracle.biee.admin:type=BIDomain.BIInstance.PresentationServerConfiguration,biInstance=coreapplication,group=Service')
# Get the old WebCatalogSharedLocation
WebCatalogSharedLocation = get('WebCatalogSharedLocation')
print 'old WebCatalogSharedLocation = ' + WebCatalogSharedLocation
# set the old WebCatalogSharedLocation
newWebCatalogSharedLocation = '$ORACLE_INSTANCE/SampleAppWebcatNew'
set('WebCatalogSharedLocation',newWebCatalogSharedLocation)
WebCatalogSharedLocation = get('WebCatalogSharedLocation')
print 'new WebCatalogSharedLocation = ' + WebCatalogSharedLocation
# Commit the system
execfile("F:\WLST\Commit System.py")
print 'please restart Presentation-server using opmnctl'
Till Next Time
No comments:
Post a Comment