{"id":1129,"date":"2017-10-26T12:37:57","date_gmt":"2017-10-26T07:07:57","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=1129"},"modified":"2017-10-26T12:51:20","modified_gmt":"2017-10-26T07:21:20","slug":"stopping-db2-processes-installing-fixpack","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2017\/10\/26\/stopping-db2-processes-installing-fixpack\/","title":{"rendered":"Stopping all DB2 processes before installing fixpack"},"content":{"rendered":"<p>Stopping all DB2 processes before installing fixpack specific to Linux environment,<\/p>\n<p>OS: RHEL 6.5<\/p>\n<p>DB2: v9.7<\/p>\n<p>DB2INSTPATH: \/opt\/ibm\/db2\/V9.7<\/p>\n<p>Before installing a fix pack, if there are DB2 database products installed in the selected installation path, you must stop all of the DB2 processes. If you have multiple DB2 copies, stop only the DB2 processes that are associated with the copy that you are updating.<\/p>\n<p>Below content taken from IBM DB2 v9.7 Knowledge center,<\/p>\n<p>Login as root user and perform below tasks,<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>1.<\/strong><\/span> Determine which instances are associated with the DB2 copy. Issue the command:<\/p>\n<p>DB2INSTPATH\/instance\/db2ilist<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>2.<\/strong><\/span> Run the following commands for each instance in the DB2 copy:<br \/>\nsu &#8211; iname<br \/>\n. $HOME\/sqllib\/db2profile<br \/>\ndb2 force applications all<br \/>\ndb2 terminate<br \/>\ndb2stop<br \/>\ndb2licd -end # run at each physical partition<br \/>\nexit<\/p>\n<p>where iname represents the instance owner name.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>3.<\/strong><\/span> If the DB2 Administration Server (DAS) belongs to the DB2 copy that you are updating, stop the DAS:<\/p>\n<p>su &#8211; aname<br \/>\n. $HOME\/das\/dasprofile<br \/>\ndb2admin stop<br \/>\nexit<\/p>\n<p>Since there can only be one DAS on the system, this step affects all other DB2 copies on the system.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>4.<\/strong><\/span> On AIX, run slibclean to unload unused shared libraries from memory before installation: \/usr\/sbin\/slibclean<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>5.<\/strong><\/span> Disable the fault monitor processes. To stop the Fault Monitor Daemon, issue the command:<\/p>\n<p>DB2INSTPATH\/bin\/db2fm -i iname -D<\/p>\n<p>The command must be performed once for each instance in the DB2 copy.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>6.<\/strong><\/span> If the Fault Monitor Coordinator (FMC) is started, prevent your instances from auto-starting:<\/p>\n<p>To determine whether the FMC is started, issue the command:<\/p>\n<p>DB2INSTPATH\/bin\/db2fmcu<\/p>\n<p>If the FMC is started, determine whether any instances are configured to auto-start after each system restart. Issue,<\/p>\n<p>DB2INSTPATH\/instance\/db2iset -i iname -all<\/p>\n<p>Prevent the instances from auto-starting. Issue the command:<\/p>\n<p>DB2INSTPATH\/instance\/db2iauto -off iname<\/p>\n<p>After you have completed the fix pack installation, you can re-start instance auto-start:<\/p>\n<p>DB2INSTPATH\/instance\/db2iauto -on iname<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>7.<\/strong><\/span> Ensure all DB2 interprocess communications are cleaned for the instance to be updated. As the instance owner, run the following command at each physical partition:<\/p>\n<p>$HOME\/sqllib\/bin\/ipclean<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Reference links<\/strong><\/span><\/p>\n<p>DB2 v9.7 <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/SSEPGG_9.7.0\/com.ibm.db2.luw.qb.server.doc\/doc\/t0024969.html\" target=\"_blank\" rel=\"noopener\"><strong>Knowledge center link<\/strong><\/a> for Stopping all DB2 processes before applying Fixpack specific to Linux and UNIX systems.<\/p>\n<p>DB2 v9.7 <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/SSEPGG_9.7.0\/com.ibm.db2.luw.qb.server.doc\/doc\/t0024977.html\" target=\"_blank\" rel=\"noopener\"><strong>Knowledge center link<\/strong><\/a> for pre-requisites before installing Fixpack.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stopping all DB2 processes before installing fixpack specific to Linux environment, OS: RHEL 6.5 DB2: v9.7 DB2INSTPATH: \/opt\/ibm\/db2\/V9.7 Before installing a fix pack, if there are DB2 database products installed in the selected installation path, you must stop all of the DB2 processes. If you have multiple DB2 copies, stop only the DB2 processes that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80],"tags":[187,350,82,88],"class_list":["post-1129","post","type-post","status-publish","format-standard","hentry","category-ibm-db2","tag-db2","tag-db2-fixpack","tag-db2-v9-7","tag-ibm-db2"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=1129"}],"version-history":[{"count":3,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1129\/revisions"}],"predecessor-version":[{"id":1134,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1129\/revisions\/1134"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=1129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=1129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=1129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}