9 Replies Latest reply: Sep 10, 2011 2:38 AM by 757691 RSS

    Startup/Shutdown script for OBIEE 11g on Linux

    757691
      Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly

      Please add comments or improvements :)

      Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]

      #!/bin/bash
      #
      # /etc/init.d/obiee
      #
      # Run-level Startup script for OBIEE

      # set required paths
      export ORACLE_BASE=/opt/oracle
      export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
      export ORACLE_OWNR=oracle
      export ORACLE_FMW=/opt/oracle/product/fmw
      export PATH=$PATH:$ORACLE_FMW/bin

      case "$1" in
      start)
      echo -e "Starting Weblogic Server...."
      su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
      sleep 30
      echo -e "Starting Node Manager..."
      su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
      sleep 30
      echo -e "Starting Managed Server: bi_server1..."
      su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
      sleep 30
      echo -e "Starting Components...."
      su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
      sleep 30
      ;;
      stop)
      echo -e "Stopping Components...."
      su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
      sleep 30
      echo -e "Stopping Managed Server: bi_server1..."
      su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
      sleep 30
      echo -e "Stopping Weblogic Server...."
      su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
      sleep 15
      ;;
      status)
      echo -e "Component Status...."
      su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
      ;;
      restart)
      $0 stop
      $0 start
      ;;
      *)
      echo "Usage: `basename $0` start|stop|restart|status"
      exit 1
      esac

      exit 0

      ######################################

      Hopefully this helps others in the same situation

      Cheers

      Edited by: Nigel Vining on Sep 2, 2010 7:27 AM

      Edited by: Nigel Vining on Sep 2, 2010 7:32 AM