DbaNotePad

Oracle APPS DBA Blog

11g: Fusion middleware 11.1.1.2.0 start/stop scripts

Posted by dbanotepad on April 12, 2010

Startup and Shutdown of Java (Admin/Managed servers) and System ( OPMNCTL  OHS etc) can be done in many different ways per documentation but here is what I have started using in our environment without node manager for shutdown/startup.

Stop Script:

#!/bin/ksh
MW_HOME=/opt/product/middleware/11.1
DOMAIN_HOME=$MW_HOME/user_projects/domains/FormsReports
INSTANCE_HOME=$MW_HOME/fr_inst
export MW_HOME DOMAIN_HOME INSTANCE_HOME
echo “Shutting down AdminServer …”
nohup $DOMAIN_HOME/stopWebLogic.sh >/dev/null 2>/dev/null &
echo “Shutting down WLS_FORMS …”
nohup $DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_FORMS “t3://localhost:7001/” >/dev/null 2>/dev/null &
echo “Shutting down WLS_REPORTS …”
nohup $DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_REPORTS “t3://localhost:7001/” >/dev/null 2>/dev/null &
echo “Shutting down OPMN managed components …”
$INSTANCE_HOME/bin/opmnctl stopall

sleep 90

echo “Killing processes forcefully after waiting for 90 secs..”
kill -9 `ps -eaf | grep -v grep | grep java | grep weblogic | egrep ‘WLS_FORMS|WLS_REPORTS|Admin’ | awk ‘{print $2}’`

Start Script:

#!/bin/ksh
MW_HOME=/opt/product/middleware/11.1
DOMAIN_HOME=$MW_HOME/user_projects/domains/FormsReports
INSTANCE_HOME=$MW_HOME/fr_inst
export MW_HOME DOMAIN_HOME INSTANCE_HOME
echo “Starting up the AdminServer …”
nohup $DOMAIN_HOME/startWebLogic.sh >/dev/null 2>/dev/null &
sleep 120
echo “Starting up WLS_FORMS …”
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_FORMS “t3://localhost:7001/” >/dev/null 2>/dev/null &
echo “Starting up WLS_REPORTS …”
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_REPORTS “t3://localhost:7001/” >/dev/null 2>/dev/null &
echo “Starting up the OPMN managed components …”
$INSTANCE_HOME/bin/opmnctl startall

Advertisements

2 Responses to “11g: Fusion middleware 11.1.1.2.0 start/stop scripts”

  1. Zairi said

    Could I know where you place the weblogic username and password for the startup and shutdown command ?

  2. dbanotepad said

    For very first time you need to use following flag during startup so it password gets saved for subsequent attempts:

    -Dweblogic.system.StoreBootIdentity=true

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: