OBIEE Scripts: Start and Stop Scripts
A Script Start and Stop OBIEE Servers
#!/bin/bash
#
# Run-level Startup script for OBIEE
# set required paths
export ORACLE_FMW= OBIEE Path
export ORACLE_INSTANCE=OBIEE Instance Path
ScriptDir= ANY DIR
LogDir=${ScriptDir}/logs updated
case "$1" in
start)
echo -e "Starting Weblogic Server...."
nohup $ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh &
sleep 120
echo -e "Starting Node Manager..."
nohup $ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh &
sleep 120
echo -e "Starting Managed Server: bi_server1..."
nohup $ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 t3://localhost:7001 &
sleep 150
echo -e "Starting Components...."
nohup $ORACLE_FMW/instances/instance1/bin/opmnctl startall &
sleep 150
;;
stop)
echo -e "Stopping Components...."
$ORACLE_FMW/instances/instance1/bin/opmnctl stopall
sleep 120
echo -e "Stopping Managed Server: bi_server1..."
$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 t3://localhost:7001
sleep 120
echo -e "Stopping Weblogic Server...."
$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh
sleep 120
;;
status)
echo -e "Component Status...."
$ORACLE_FMW/instances/instance1/bin/opmnctl status
;;
*)
echo "Usage: `basename $0` start|stop|status"
exit 1
esac
exit 0
Save the file with filename.sh
and call ./filename.sh start for start
./filename.sh stop for stop
./filename.sh status for status
Regards,
Sreejith
Comments
Post a Comment