Wednesday, August 24, 2011

WLST OBIEE Place Lock on system


Small script I use to set a lock on the OBIEE11g BI system:

print 'Calling lock ...'
cd ('..')
cd ('oracle.biee.admin:type=BIDomain,group=Service')
objs = jarray.array([], java.lang.Object)
strs = jarray.array([], java.lang.String)
try:
    invoke('lock', objs, strs)
except:
    print 'System already locked'
I have put it in a separate file which I call from my main script:
execfile("F:\WLST\Lock System.py")
Till Next Time

2 comments:

  1. Hi, I'd like to understand why and where is that path WLST\Lock ? I mean, correct me if I'm wrong but the script above is inside System.py ? I working on this but I don't understand that part...
    Thanks,

    ReplyDelete
  2. Hello,

    When I'm trying to execute the command cd ('oracle.biee.admin:type=BIDomain,group=Service') I get following error

    WLSTException: Error occured while performing cd : Error while browsing MBeans : com.bea:Name=bifoundation_domain,Type=Domain:oracle.biee.admin:type=BIDomain,group=Service
    Use dumpStack() to view the full stacktrace

    Can you help me out? What am I doing wrong?

    Thanks!

    ReplyDelete