Tag: weblogic

  • Check Node Manager Script

    Hi Again,

    I just knocked up this nodemanager check script that you can run as a cron job making sure the Weblogic Java NodeManager is running and if not email you. See below for the script.

    
    #!/bin/ksh
     #
     #########################################################
     # NAME:check_node_manager.sh #
     # AUTHOR: Paz #
     # DESC: Check no make sure Weblogic Node Manager is #
     # running #
     # DATE: 19/06/13 #
     # VERSION 1.0 #
     # CHANGE LOG: #
     # AP 19/06/2013 Creation #
     # #
     # #
     #########################################################
     #
     #set -x
    
    . $HOME/.profile
     export SCRIPT_HOME='add you scripts home'
     ####################CHECK NODE MANAGER JAVA PROCESS IS RUNNING########################
     cd $SCRIPT_HOME
    
    jps |grep -i NodeManager >Nodemgr_jps_status.log
    
    sleep 2
    
    nodemgr_jps_status=$(cat Nodemgr_jps_status.log |grep -i 'NodeManager' |wc -l)
    
    if [ ${nodemgr_jps_status} -gt 0 ]
     then
     echo 'do nothing Node Manager Alive'
     else
     mailx -s 'NODEMANAGER DOWN' [email protected]
     fi
    
    exit
    
    EOF
    
    

    The script can be changed if you use a script based nodemanager, if you change ‘jps’ for ‘ps -ef’ so the line would read:

    ps -ef |grep -i NodeManager >Nodemgr_jps_status.log

    Until next time

  • OBIEE .lok .DAT files

    Came across this issue today took me an age to work out what was wrong then I knocked up a couple of finds and boom all sorted. Anyway the below is more for self reference in case I come across it again.

    
    <Error> <Store> <BEA-280061> <The persistent store “_WLS_AdminServer” could not be deployed: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file “_WLS_ADMINSERVER000000.DAT”
    
    

    Other Errors that can be encountered are

    
    There are 1 nested errors:
     weblogic.management.ManagementException: Unable to obtain lock on /u01/app/oracle/admin/soa_domains/aserver/soa_domain/servers/AdminServer/tmp/AdminServer.lok. Server may already be running at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
     <Warning> <BEA-171520> <Could not obtain an exclusive lock for directory: /u01/app/oracle/admin/soa_domains/aserver/soa_domain/servers/AdminServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.><Warning> <BEA-171520> <Could not obtain an exclusive lock for directory: /u01/app/oracle/admin/soa_domains/aserver/soa_domain/servers/AdminServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
    
    

    or

    
    <Security> <BEA-090082> <Security initializing using security realm myrealm.>
     <Error> <Store> <BEA-280061> <The persistent store “_WLS_AdminServer” could not be deployed: weblogic.store.PersistentStoreException: [Store:280105]The persistent file store “_WLS_AdminServer” cannot open file _WLS_ADMINSERVER000000.DAT. weblogic.store.PersistentStoreException: [Store:280105]The persistent file store “_WLS_AdminServer” cannot open file _WLS_ADMINSERVER000000.DAT. at weblogic.store.io.file.Heap.open(Heap.java:325)
    
    

    To resolve the above issues, clear below .lok and .DAT files

    
    find . -name “*.DAT” -print -exec rm {} \;
     find . -name “*.lok” -print -exec rm {} \;
    
    For Admin server
     $DOMAIN_HOME/servers/<server name>/tmp/Adminserver.lok
     $DOMAIN_HOME/servers/<server name>/data/ldap/ldapfiles/Embedded.lok
     $DOMAIN_HOME/servers/<server name>/data/store/default/_WLS_ADMINSERVER000000.DAT
     $DOMAIN_HOME/servers/<server name>/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT
    
    For Managed servers
    
    $DOMAIN_HOME/servers/<server name>/tmp/<servername>.lok
     $DOMAIN_HOME/servers/<server name>/data/ldap/ldapfiles/Embedded.lok
     $DOMAIN_HOME/servers/<server name>/data/ldap/store/default/_WLS_<servername>000000.DAT
     $DOMAIN_HOME/servers/<server name>/data/ldap/store/diagnostics/WLS_DIAGNOSTICS000000.DAT