Startup/shutdown scripts for Fusion Applications (2 nodes setup)

Once Fusion Applications provisioning (2 nodes install) is complete, you can create following scripts in Node 1 and Node 2 for easy startup/shutdown of all components. Please note that the paths are as per my installation steps in guide posted earlier so if you have used different path then kindly change accordingly.

Startup Steps for IDM Node:

#Script name: startall_idm.sh

#!/bin/bash
. /home/fusion/.bash_profile
echo “Starting database listener”
lsnrctl start
echo “Starting Database”
sqlplus / as sysdba << EOF
startup
exit;
EOF
echo “Starting Oracle Internet Directory (OID)”
/app/fusion/config/instances/oid1/bin/opmnctl startall
cd /app/fusion/config/domains/IDMDomain/bin
echo “Starting Weblogic Admin Server”
nohup ./startWebLogic.sh &
echo “Starting Managed Servers”
nohup ./startManagedWebLogic.sh WLS_OAM1 &
nohup ./startManagedWebLogic.sh wls_ods1 &
nohup ./startManagedWebLogic.sh WLS_OIM1 &
nohup ./startManagedWebLogic.sh WLS_SOA1 &
cd /app/fusion/fmw/wlserver_10.3/server/bin
echo “Starting Node Manager”
nohup ./startNodeManager.sh &
echo “Waiting for 180 seconds to start Web server to avoid getting false WebGate alerts on console”
sleep 180
echo “Starting Oracle HTTP Server (web)”
/app/fusion/config/instances/web1/bin/opmnctl startall

Please note that you must wait for all components to come up successfully. Verify by logging into Administration console at http://<fmwhost>:<port>/console using weblogic_idm user and make sure all managed servers are in RUNNING state.

Startup Script for FA node:

# Script name: startall_fa.sh
#!/bin/bash
echo “Starting Node Manager Process”
echo ” ”
cd /app/fusion/instance/nodemanager/fahost
nohup ./startNodeManagerWrapper.sh &
sleep 10
echo ” ”
cd /app/fusion/fusionapps/applications/lcm/ad/bin/
echo “Starting all Fusion Applications Domains”
echo ” ”
./fastartstop.sh -Start -all -username weblogic_fa -appbase /app/fusion/fusionapps/applications <<EOF_PASS
Password_Here
EOF_PASS
echo ” ”
echo “Starting Web server”
echo ” ”
/app/fusion/instance/CommonDomain_webtier/bin/opmnctl startall
echo ” ”
echo “Starting BI services”
echo ” ”
/app/fusion/instance/BIInstance/bin/opmnctl startall
echo ” ”
echo “All components started”

Shutdown script for FA node:

#!/bin/bash
cd /app/fusion/fusionapps/applications/lcm/ad/bin/
echo “Stopping all Fusion Applications Domains”
echo ” ”
./fastartstop.sh -Stop -all -username weblogic_fa -appbase /app/fusion/fusionapps/applications <<EOF_PASS
Password_here
EOF_PASS
echo ” ”
echo ” ”
echo “Stopping Web server”
echo ” ”
/app/fusion/instance/CommonDomain_webtier/bin/opmnctl stopall
echo ” ”
echo “Stopping BI services”
echo ” ”
/app/fusion/instance/BIInstance/bin/opmnctl stopall
echo ” ”
echo “Killing Node Manager process”
echo ” ”
ps -ef | grep NodeManager | awk ‘{print $2}’ | xargs kill -9
echo ” ”
echo “All components stopped”

Shutdown script for IDM node:

# Script name: stopall_idm.sh
#!/bin/bash
. /home/fusion/.bash_profile
echo “Stopping Oracle HTTP Server (web)”
/app/fusion/config/instances/web1/bin/opmnctl stopall

echo “Stopping Managed Servers”
cd /app/fusion/config/domains/IDMDomain/bin/
./stopManagedWebLogic.sh wls_ods1
./stopManagedWebLogic.sh WLS_OIM1
./stopManagedWebLogic.sh WLS_SOA1
./stopManagedWebLogic.sh WLS_OAM1

echo “Stopping Weblogic Admin Server”
./stopWebLogic.sh

echo “Stopping Oracle Internet Directory (OID)”
/app/fusion/config/instances/oid1/bin/opmnctl stopall

echo “Stopping Database”
sqlplus / as sysdba << EOF
shutdown immediate;
exit;
EOF

echo “Stopping database listener”
lsnrctl stop

echo “Manually killing Node Manager process”
ps -ef | grep NodeManager | awk ‘{print $2}’ | xargs kill -9

Please feel free to enhance this and share with other users here.

– Tushar

  1. Tushar Thakker
    Apr 20th, 2015 at 15:58 | #1

    You must start nodemanager before attempting to use fastartstop.sh. You could also selectively start domains if you do not want to wait for nodemanager and bi services to start on second node. Sorry for short answer but pls let me know if you face any specific issue then I can help you prepare scripts.

  2. murali
    Apr 16th, 2015 at 10:52 | #2

    we have 4 node architecture and 2 for IM and 2 for FA.

    for FA — we have bi on one server and all other on one.
    we are not able to start all the services in both the nodes.
    when we run the FAstartstop scripts it is coming out saying node manager on other node is down.
    so we have to first start nodemanager on Bi server frst and run the fastartstop scripts on other and then bi services.
    please let me know how can we incorporate all this in one scripts.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>