Oracle BIEE Start-Stop script

Source: Internet
Author: User
Tags stop script

As a developer of BI, often start-stop bi service is inevitable, the process of startup is relatively long, the command needs different directory switch, it is annoying the dead, deliberately organized the Linux startup script, the following script into biee.sh, the subsequent process is quite simple,
Start:./biee.sh start stop:./biee.sh stop restart:./BIEE restart
Observation of the log: Tail-f/var/log/obiee-start.logtail-f/var/log/obiee-stop.log

The following is the script content, save to. sh file, and then chmod +x on it, hope to be useful to everyone.
Of course, if you want to be lazy again, you can make this bash a service that starts automatically.

#!/bin/bash## According to the actual environment configuration
# BIEE Install users
Bi_user=biee
# BIEE installation directory
Bi_home=/home/biee/middleware
# BIEE Admin user
Bi_admin=weblogic
# BIEE Admin password
Biee_admin_passwd=weblogic123
# Domain NameBiee_domain=bifoundation_domain
# Instance Name
Biee_instance=instance1
# server Name
Biee_server=bi_server1
# Admin Server URL (hostname:port)
biee_manager_url=dbserver:7001

# The following information does not need to be modified
Wl_path= $BI _home/wlserver_10.3/server/binbiee_path= $BI _home/user_projects/domains/$BIEE _domain/binoracle_ instance= $BI _home/instances/$BIEE _instance
Export Oracle_instance
Start_log=/var/log/obiee-start.logstop_log=/var/log/obiee-stop.logsubsys=obiee
Start () {echo "********************************************************************************" echo "Starting ADM In Server on $ (date) "echo" ******************************************************************************** "Su $BI _user-c "$BIEE _path/startweblogic.sh-dweblogic.management.username= $BI _admin-dweblogic.management.password=$ BIEE_ADMIN_PASSWD "& Wait_for" Server started in RUNNING mode "echo" **************************************** "echo" Starting Node Manager on $ (date) "echo" **************************** "Su $BI _user-c" $WL _path/startnodemanager.sh "& Wait_for" Socket listener started on port "
echo "********************************************************************************" echo "Starting Managed Server $BIEE _server on $ (date) "echo" ***************************************************************************** "Su $BI _user-c" $BIEE _path/startmanagedweblogic.sh $BIEE _server http://$BIEE _manager_url- Dweblogic.management.username= $BI _admin-dweblogic.management.password= $BIEE _admin_passwd "& Wait_for" Server Started in RUNNING mode "
echo "********************************************************************************" echo "Starting BI Components on $ (date) "echo" ******************************************************************************** "Su $B I_user-c "$ORACLE _instance/bin/opmnctl startall"
echo "********************************************************************************" echo "OBIEE start sequence Completed on $ (date) "echo" ******************************************************************************** "}
Stop () {echo "********************************************************************************" echo "Stopping BI C Omponents on $ (date) "echo" ******************************************************************************** "Su $BI _user-c "$ORACLE _instance/bin/opmnctl stopall"
echo "********************************************************************************" echo "Stopping Managed Server $BIEE _server on $ (date) "echo" ***************************************************************************** "Su $BI _user-c" $BIEE _path/stopmanagedweblogic.sh $BIEE _server t3://$BIEE _manager_url $BI _admin $BIEE _ADMIN_PASSW D
    echo "********************************************************************************"     echo "Stopping Node Manager on $ (date)"     echo "*********************************************************** "    pkill-term-u $BI _user-f" weblogic\\. NodeManager "       echo" ********************************************************************* "    echo" stopping Admin Server on $ (date) "    echo" *********************************** "    su $BI _user-c" $BIEE _path/stopweblogic.sh   $BI _ ADMIN   $BIEE _admin_passwd t3://$BIEE _manager_url "       echo" ***************************** "    echo" OBIEE stop sequence completed on $ (date) "     echo "********************************************************************************"}
Wait_for () {res=0 while [[! $res-GT 0]] do res=$ (tail-5 "$START _log" | fgrep-c "$") Sleep 5 Done
Case "$" in    start)         echo "***************************************************** "        echo" Starting Oracle business Intelligence on $ (date) "  &NB Sp     echo "Logs is sent to $START _log"         echo "**************************************** "        start &> $START _log &        touch/var/lock/subsys/$SUBSYS    ;;     stop)         echo "**************************************************************** "        echo" Stopping Oracle business Intelligence on $ (date) "      & nbsp echo "Logs is sent to $STOP _log"         echo "***************************************************** "        Stop &> $STOP _log       Rm-f/var/lock/subsys/$SUBSYS    ;     status)         echo "************************************************************** "        echo" Oracle BIEE Components status ... "        echo" * "        SU $BI _ User-c "$ORACLE _instance/bin/opmnctl status"    ;     restart)         $ stop        $ start   ;;     *)         echo "Usage: $ (basename $) start|stop|restart|status"       &NB Sp Exit 1esac
Exit 0

Oracle BIEE Start-Stop script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.