Search This Blog

Thursday 13 July 2017

OBIEE 12c startup script

​#!/bin/bash

# chkconfig: 345 99 10

# description: OBIEE auto start-stop script.

# Source function library.

. /etc/rc.d/init.d/functions

OBIEE_HOME=/opt/app/Middleware/db_1

OBIEE_OWNER=obiee

if [ ! -f $OBIEE_HOME/user_projects/domains/bi/bitools/bin/start.sh ]

then

echo "OBIEE startup: cannot start"

exit

fi

case "$1" in

'start')

# Start the OBIEE databases:

echo -n $"Starting OBIEE Service:"

su - $OBIEE_OWNER -c "$OBIEE_HOME/user_projects/domains/bi/bitools/bin/start.sh"

echo "OBIEE is started"

;;

'stop')

# Stop the OBIEE:

su - $OBIEE_OWNER -c "$OBIEE_HOME/user_projects/domains/bi/bitools/bin/stop.sh"

echo "OBIEE is shutdown"

;;

'status')

su - $ORACLE_OWNER -c "$OBIEE_HOME/user_projects/domains/bi/bitools/bin/status.sh"

;;

*)

echo $"Usage: $0 {start|stop|status}"

esac


No comments:

Post a Comment