Home‎ > ‎Oracle Access Manager‎ > ‎Operations‎ > ‎

Starting and Stopping Servers

In a complex environment, automated starting and stopping of server linked with associated server's startup and shutdown event is paramount. The following scripts allow system administrators to automate the starting and stopping of the servers without any manual intervention.

Please ensure that you have followed the startup process as defined in OAM Server installation guide to ensure that all the dependencies of this script are in place. This primarily involves executing setNMProps.sh and setting the boot.properties.

Linux

Startup

The following two script can be used in combination to start and stop servers in linux environment

startupoam.sh

# Start web server
/opt/web/oiam/bin/opmnctl startall

# Start Directory server
/opt/oud/oam/OUD/bin/start-ds

export MW_HOME=/opt/fmw
export DOMAIN_HOME=/opt/oam/domains/oam

$MW_HOME/oracle_common/common/bin/setNMProps.sh

cd /opt/oam/tmp
nohup $MW_HOME/wlserver_10.3/server/bin/startNodeManager.sh &

nohup $DOMAIN_HOME/bin/startWebLogic.sh &
. $DOMAIN_HOME/bin/setDomainEnv.sh
java weblogic.WLST /opt/oam/oamstart.py

oamstart.py

import time
sleep=time.sleep
print "#####################################"
print "# Waiting for Admin Server to Start #"
print "#####################################"
while True:
   try: connect(adminServerName="AdminServer"); break
   except: sleep(60)

print "##############################"
print "# Admin Server has come up #"
print "##############################"

print "##########################"
print "# Starting OAM Server 1 #"
print "##########################"

start(name="oam_server1", block="true")

exit()

Shutdown

stopoam.sh

export MW_HOME=/opt/fmw
export DOMAIN_HOME=/opt/oam/domains/oam

cd /opt/oam/tmp

$DOMAIN_HOME/bin/stopManagedWebLogic.sh oam_server1
$DOMAIN_HOME/bin/stopWebLogic.sh

/opt/oud/oam/OUD/bin/stop-ds

/opt/web/oiam/bin/opmnctl stopall