Tuesday 2 February 2016

Start and Stop Server

When we work on SOA Suite tool on our local environment, we need to start our server before we start working on it and later once we complete all our work, we need to stop the server. 
Follow below steps to start and stop SOA Suite server.Start Server
Before we start SOA Suite server, we need to ensure that our database is up and running. Click on Start Database link as show below to start the database.
Start SOA suite server steps depends upon how we configure our domain, if we have selected ” Oracle SOA Suite for Developer” option then we need to run only one command that will start both Admin (WebLogic) and Managed server (SOA Suite). But in case we have selected other option “Oracle SOA Suite” then we need to run two commands, one for admin (WebLogic) server and other for managed server (SOA Suite).

Oracle SOA Suite for developer Option:
Go to {MIDDLEWARE_HOME}\user_projects\domains\base_domain\bin directory and run startWebLogic.cmd command.


Oracle SOA Suite Option Selected: 
To Start Admin Server (WebLogic) : 
Go to {MIDDLEWARE_HOME}\user_projects\domains\base_domain\bin directory and run startWebLogic.cmd command.
To Start Managed Server (SOA Suite):
Go to {MIDDLEWARE_HOME}\user_projects\domains\base_domain\bin directory and open it in command prompt. Then run below command.
startManagedWebLogic.cmd soa_server1

Stop Server

We can simply click ctrl+c to stop the server or we can run stopWebLogic.cmd to stop admin server and stopManagedWebLogic.cmd to stop managed server.

shell script:


echo "############################"
echo "# All Servers are STARTING #"
echo "############################"
export FMW_HOME=/u01/app/fmw
export DOMAIN_HOME=/u01/app/fmw/user_projects/domains/fmw_domain

nohup $DOMAIN_HOME/bin/startNodeManager.sh > $DOMAIN_HOME/nodemanager/logs/nodemanager.out &

nohup $DOMAIN_HOME/bin/startWebLogic.sh > $DOMAIN_HOME/servers/AdminServer/logs/AdminServer.out &

SERVER=127.0.0.1 PORT=7001
while !(: < /dev/tcp/$SERVER/$PORT) 2>/dev/null
do
    echo "** Waiting for Admin Server to Start **"
    sleep 30
done

. $FMW_HOME/wlserver/server/bin/setWLSEnv.sh
. $DOMAIN_HOME/bin/setDomainEnv.sh
. $DOMAIN_HOME/bin/setStartupEnv.sh

/u01/app/jdk/bin/java weblogic.WLST /u01/app/utils/scripts/allServersStart.py

echo "###########################"
echo "# All Servers are RUNNING #"
echo "###########################"

tail -f $DOMAIN_HOME/nodemanager/logs/nodemanager.out $DOMAIN_HOME/servers/AdminServer/logs/AdminServer.out

No comments:

Post a Comment