{"id":2765,"date":"2013-05-05T05:16:37","date_gmt":"2013-05-05T05:16:37","guid":{"rendered":"http:\/\/www.oratraining.com\/blog\/?p=2765"},"modified":"2013-07-17T06:20:29","modified_gmt":"2013-07-17T06:20:29","slug":"startupshutdown-scripts-for-fusion-applications-2-nodes-setup","status":"publish","type":"post","link":"https:\/\/www.oratraining.com\/blog\/2013\/05\/startupshutdown-scripts-for-fusion-applications-2-nodes-setup\/","title":{"rendered":"Startup\/shutdown scripts for Fusion Applications (2 nodes setup)"},"content":{"rendered":"<p><strong><\/strong>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.<\/p>\n<p><span style=\"color: #993300;\"><strong>Startup Steps for IDM Node:<\/strong><\/span><\/p>\n<blockquote><p>#Script name: startall_idm.sh<\/p>\n<p>#!\/bin\/bash<br \/>\n. \/home\/fusion\/.bash_profile<br \/>\n<strong>echo &#8220;Starting database listener&#8221;<\/strong><br \/>\nlsnrctl start<br \/>\necho &#8220;Starting Database&#8221;<br \/>\nsqlplus \/ as sysdba &lt;&lt; EOF<br \/>\nstartup<br \/>\nexit;<br \/>\nEOF<br \/>\n<strong>echo &#8220;Starting Oracle Internet Directory (OID)&#8221;<\/strong><br \/>\n\/app\/fusion\/config\/instances\/oid1\/bin\/opmnctl startall<br \/>\ncd \/app\/fusion\/config\/domains\/IDMDomain\/bin<br \/>\necho &#8220;Starting Weblogic Admin Server&#8221;<br \/>\nnohup .\/startWebLogic.sh &amp;<br \/>\n<strong>echo &#8220;Starting Managed Servers&#8221;<\/strong><br \/>\nnohup .\/startManagedWebLogic.sh WLS_OAM1 &amp;<br \/>\nnohup .\/startManagedWebLogic.sh wls_ods1 &amp;<br \/>\nnohup .\/startManagedWebLogic.sh WLS_OIM1 &amp;<br \/>\nnohup .\/startManagedWebLogic.sh WLS_SOA1 &amp;<br \/>\ncd \/app\/fusion\/fmw\/wlserver_10.3\/server\/bin<br \/>\n<strong>echo &#8220;Starting Node Manager&#8221;<\/strong><br \/>\nnohup .\/startNodeManager.sh &amp;<br \/>\necho &#8220;Waiting for 180 seconds to start Web server to avoid getting false WebGate alerts on console&#8221;<br \/>\nsleep 180<br \/>\n<strong>echo &#8220;Starting Oracle HTTP Server (web)&#8221;<\/strong><br \/>\n\/app\/fusion\/config\/instances\/web1\/bin\/opmnctl startall<\/p><\/blockquote>\n<p>Please note that you must wait for all components to come up successfully. Verify by logging into Administration console at http:\/\/&lt;fmwhost&gt;:&lt;port&gt;\/console using weblogic_idm user and make sure all managed servers are in RUNNING state.<\/p>\n<p><span style=\"color: #993300;\"><strong>Startup Script for FA node:<\/strong><\/span><\/p>\n<blockquote><p># Script name: startall_fa.sh<br \/>\n#!\/bin\/bash<br \/>\n<strong>echo &#8220;Starting Node Manager Process&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\ncd \/app\/fusion\/instance\/nodemanager\/fahost<br \/>\nnohup .\/startNodeManagerWrapper.sh &amp;<br \/>\nsleep 10<br \/>\necho &#8221; &#8221;<br \/>\ncd \/app\/fusion\/fusionapps\/applications\/lcm\/ad\/bin\/<br \/>\n<strong>echo &#8220;Starting all Fusion Applications Domains&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n.\/fastartstop.sh -Start -all -username weblogic_fa -appbase \/app\/fusion\/fusionapps\/applications &lt;&lt;EOF_PASS<br \/>\nPassword_Here<br \/>\nEOF_PASS<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;Starting Web server&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n\/app\/fusion\/instance\/CommonDomain_webtier\/bin\/opmnctl startall<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;Starting BI services&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n\/app\/fusion\/instance\/BIInstance\/bin\/opmnctl startall<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;All components started&#8221;<\/strong><\/p><\/blockquote>\n<p><span style=\"color: #993300;\"><strong>Shutdown script for FA node:<\/strong><\/span><\/p>\n<blockquote><p>#!\/bin\/bash<br \/>\ncd \/app\/fusion\/fusionapps\/applications\/lcm\/ad\/bin\/<br \/>\n<strong>echo &#8220;Stopping all Fusion Applications Domains&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n.\/fastartstop.sh -Stop -all -username weblogic_fa -appbase \/app\/fusion\/fusionapps\/applications &lt;&lt;EOF_PASS<br \/>\nPassword_here<br \/>\nEOF_PASS<br \/>\necho &#8221; &#8221;<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;Stopping Web server&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n\/app\/fusion\/instance\/CommonDomain_webtier\/bin\/opmnctl stopall<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;Stopping BI services&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\n\/app\/fusion\/instance\/BIInstance\/bin\/opmnctl stopall<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;Killing Node Manager process&#8221;<\/strong><br \/>\necho &#8221; &#8221;<br \/>\nps -ef | grep NodeManager | awk &#8216;{print $2}&#8217; | xargs kill -9<br \/>\necho &#8221; &#8221;<br \/>\n<strong>echo &#8220;All components stopped&#8221;<\/strong><\/p><\/blockquote>\n<p><span style=\"color: #993300;\"><strong>Shutdown script for IDM node:<\/strong><\/span><\/p>\n<blockquote><p># Script name: stopall_idm.sh<br \/>\n#!\/bin\/bash<br \/>\n. \/home\/fusion\/.bash_profile<br \/>\n<strong>echo &#8220;Stopping Oracle HTTP Server (web)&#8221;<\/strong><br \/>\n\/app\/fusion\/config\/instances\/web1\/bin\/opmnctl stopall<\/p>\n<p><strong>echo &#8220;Stopping Managed Servers&#8221;<\/strong><br \/>\ncd \/app\/fusion\/config\/domains\/IDMDomain\/bin\/<br \/>\n.\/stopManagedWebLogic.sh wls_ods1<br \/>\n.\/stopManagedWebLogic.sh WLS_OIM1<br \/>\n.\/stopManagedWebLogic.sh WLS_SOA1<br \/>\n.\/stopManagedWebLogic.sh WLS_OAM1<\/p>\n<p><strong>echo &#8220;Stopping Weblogic Admin Server&#8221;<\/strong><br \/>\n.\/stopWebLogic.sh<\/p>\n<p><strong>echo &#8220;Stopping Oracle Internet Directory (OID)&#8221;<\/strong><br \/>\n\/app\/fusion\/config\/instances\/oid1\/bin\/opmnctl stopall<\/p>\n<p><strong>echo &#8220;Stopping Database&#8221;<\/strong><br \/>\nsqlplus \/ as sysdba &lt;&lt; EOF<br \/>\nshutdown immediate;<br \/>\nexit;<br \/>\nEOF<\/p>\n<p><strong>echo &#8220;Stopping database listener&#8221;<\/strong><br \/>\nlsnrctl stop<\/p>\n<p><strong>echo &#8220;Manually killing Node Manager process&#8221;<\/strong><br \/>\nps -ef | grep NodeManager | awk &#8216;{print $2}&#8217; | xargs kill -9<\/p><\/blockquote>\n<p>Please feel free to enhance this and share with other users here.<\/p>\n<p>&#8211; Tushar<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[33,34,35,4,5,6,10,12,150,37,39],"tags":[],"class_list":["post-2765","post","type-post","status-publish","format-standard","hentry","category-fusion-middleware-oracle","category-http-server","category-identity-management","category-oracle","category-applications","category-oracle-applications-dba","category-oracle-dba","category-oracle-fusion-applications","category-oracle-fusion-applications-installation-fusion-applications-provisioning","category-oracle-internet-directory","category-webgate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/comments?post=2765"}],"version-history":[{"count":0,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2765\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/media?parent=2765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/categories?post=2765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/tags?post=2765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}