Total Pageviews

Monday, September 26, 2016

script to start weblogic server, OID , OVD servers



#!/bin/sh

export ORACLE_HOME=/home/oracle/app/oracle/product/11gR1ps1/Middleware/Oracle_IDM1

export MW_HOME=/home/oracle/app/oracle/product/11gR1ps1/Middleware
export WL_HOME=/home/oracle/app/oracle/product/11gR1ps1/Middleware/wlserver_10.3
export WLS_HOME=/home/oracle/app/oracle/product/11gR1ps1/Middleware/user_projects
export JAVA_HOME=/usr/java/default
export PATH=$JAVA_HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:$WLS_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export DOMAIN_HOME=$MW_HOME/user_projects/domains/base_domain


cd $DOMAIN_HOME
echo "*********************************"
echo "* Starting the WLS Admin Server *"
echo "*********************************"
date

nohup sh startWebLogic.sh >/dev/null 2>/dev/null &
sleep 1
while [ 1 -gt 0 ]; do
tail -100 AdminServer.log | grep 'Server started in RUNNING mode'
if [ $? -eq 0 ]; then
printf "Admin Server is RUNNING\n"
break
fi
printf "."
sleep 1
done


echo "******************************"
echo "* Starting OID / OVD Servers *"
echo "******************************"
date

cd $ORACLE_HOME/opmn/bin
./opmnctl startall
sleep 1
./opmnctl status


cd $DOMAIN_HOME/bin
echo "****************************************"
echo "* Starting the wls_ods1 Managed Server *"
echo "****************************************"
date
nohup sh startManagedWebLogic.sh wls_ods1 "http://localhost:7001" >/dev/null 2>/dev/null &

No comments:

Post a Comment