{"id":215,"date":"2009-04-20T22:47:07","date_gmt":"2009-04-20T16:47:07","guid":{"rendered":"http:\/\/techsatwork.com\/blog\/?p=215"},"modified":"2016-01-07T11:31:13","modified_gmt":"2016-01-07T05:31:13","slug":"upgrading-from-db2-v82-to-db2-v95","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=215","title":{"rendered":"Upgrading from DB2 V8.2 to DB2 V9.5"},"content":{"rendered":"<p>I recently went through a rally of upgrading the DB2 UDB V8.2 to DB2 9.5 . \u00c2\u00a0IBM slowly sneaked in the end of support for DB2 V8.2, though this has created lot of unhappy customers as lot of third party vendors have not yet certified Db2 V9.5 . Siebel for one does not yet support DB2 V9.5 ! \u00c2\u00a0 Something to remember when upgrading is there are few DB2 fixpaks for V9.5 already, the latest being FP3b. \u00c2\u00a0Its important these fixpaks are installed as you upgrade them mainly because of \u00c2\u00a0certain &#8220;bad&#8221; ones. \u00c2\u00a0On AIX there is a catch, you might get segmentation fault if you install FP2 + before you migrate instance, unless you install an APAR. \u00c2\u00a0So the <a href=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2009\/04\/db2-v95-migration-steps-for-aix.pdf\" target=\"_blank\">route<\/a> I took was to install DB2 V9.5 on a new path, migrate the instance, migrate the databases and then install the fixpack. \u00c2\u00a0This worked for me. \u00c2\u00a0 I did encounter couple of interesting issues during migration, mostly because of oversite ! \u00c2\u00a0But I thought I will share it here, since when I searched on google, I couldn&#8217;t get any information and had to figure it out myself.<\/p>\n<p>One if my servers is on HACMP , so the db2node.cfg has the cluster name on it :<\/p>\n<p><span style=\"color: #993300;\"><em>0 db2servercl 0<\/em><\/span><\/p>\n<p>even though the server name is <span style=\"color: #993300;\"><em>db2server1<\/em><\/span>.\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 During DB2CKMIG, db2 checks at the db2nodes.cfg and tries to associate that with the DB2SERVER value to find the files on the local database directory.\u00c2\u00a0 If the entry on the db2nodes.cfg file doesn&#8217;t match the server name, it would not find the database on the local directory and db2ckmig fails.\u00c2\u00a0 An easy way to test this is :<\/p>\n<ol>\n<li>Stop the instance (db2stop)<\/li>\n<li>Run : db2 list db directory<\/li>\n<li>Run : db2 list db directory on &lt;dbpath&gt;<\/li>\n<\/ol>\n<p>If step 3 works then you should be ok with db2ckmig,\u00c2\u00a0 if it does not then you have an issue. Easy fix is during the migration, change the db2node.cfg\u00c2\u00a0 entry to match the server name. Infact try and run the above test , it should work.<\/p>\n<p>Another issue I encountered during the migration was when I was installing the FixPack.\u00c2\u00a0 The installFixPack failed at &#8220;<span style=\"color: #993300;\"><em>update of runtime path<\/em><\/span>&#8220;\u00c2\u00a0 task<span style=\"color: #000000;\">.\u00c2\u00a0 From Db2 V9.x IBM has changed the way installFixPacks work, you can no longer just apply the fixpak and has changed the options that go with it too.\u00c2\u00a0 installFixPack will check the prereq and figure out what all it needs to do and will let you know how many tasks its going to perform and how long it will take.\u00c2\u00a0 However it will not tell us what all the tasks are ahead of time (thats lousy coding), it will tell you the task as it goes.\u00c2\u00a0 The approx time it estimates has always been wrong !. Luckily it always overestimates. <\/span><\/p>\n<p><span style=\"color: #000000;\">As I mentioned earlier,\u00c2\u00a0 I encountered an error during &#8220;update of runtime path&#8221; task.\u00c2\u00a0 I got the following error :<\/span><\/p>\n<p><span style=\"color: #993300;\"><em>Starting the update of runtime path &#8230;<br \/>\nSun Apr 19 01:56:30 CDT 2009<\/em><\/span><\/p>\n<p><em>Changing the embedded runtime path for DB2 deliverables installed<br \/>\nunder \/opt\/IBM\/db2\/V9.5 from \/opt\/IBM\/db2\/V9.5\/ to \/opt\/IBM\/db2\/V9.5\/<br \/>\n&#8212;&gt; Please wait<\/em><\/p>\n<p><em>db2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2locale.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2genreg.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2osse_db2.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2dasapi.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2install.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2osse.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2g11n.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2dascmn.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2sec.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libdb2trcapi.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libgcf.a&#8217;: error: 26(Text file busy)<br \/>\ndb2chglibpath: Unable to open file for write: &#8216;\/opt\/IBM\/db2\/V9.5\/lib64\/libgcffm.a&#8217;: error: 26(Text file busy)<\/em><\/p>\n<p><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nThe embedded library path of the following files could not be<br \/>\nupdated with the current installation path<br \/>\n\/opt\/IBM\/db2\/V9.5\/.<br \/>\ndue to some unexpected error. Please rerun db2chgpath. If the<br \/>\nproblem can not be resolved, please contact IBM DB2 Support.<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/em><\/p>\n<p><em>FAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2locale.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2genreg.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2osse_db2.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2dasapi.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2install.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2osse.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2g11n.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2dascmn.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2sec.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libdb2trcapi.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libgcf.a<br \/>\nFAIL (unexpected error): \/opt\/IBM\/db2\/V9.5\/lib64\/libgcffm.a<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nOutput was saved in the log file \/tmp\/db2chgpath.log<br \/>\nSun Apr 19 01:57:21 CDT 2009<\/em><\/p>\n<p><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nERROR: There were errors during the run of the db2chgpath<br \/>\nprogram to change the embedded runtime path of the<br \/>\nrelated DB2 library and executable files<br \/>\nfrom<br \/>\n\/opt\/IBM\/db2\/V9.5\/<br \/>\nto<br \/>\n\/opt\/IBM\/db2\/V9.5\/<\/em><\/p>\n<p><em>You may need to manually rerun db2chgpath.<\/em><\/p>\n<p><em>Check the log file \/tmp\/db2chgpath.log for details.<\/em><\/p>\n<p><em>If the rerun is successful, please follow the DB2<br \/>\nquick beginning books to configure DB2 instance(s)<br \/>\nand\/or DAS as needed.<\/em><\/p>\n<p><em>If the problem persists, please contact IBM DB2 Support.<\/em><\/p>\n<p>After a bit of research I found\u00c2\u00a0 that the db2fmd process was respawned by initab since I had not commented out the step.\u00c2\u00a0 Once I commented that out and killed the db2fmd process. The installFixPack went smooth.<\/p>\n<p>Be sure to <a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?rs=71&amp;uid=swg21287543\" target=\"_blank\">check this link<\/a> before you migrate your instance so you know what all bugs and issues you might face.<\/p>\n<p>Here is the document that outlines the\u00c2\u00a0 migration steps\u00c2\u00a0 I followed when I migrated my databases from DB2 V8.2 to DB2 V9.5 and installed FP3b :<a href=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2009\/04\/db2-v95-migration-steps-for-aix.pdf\">db2-v95-migration-steps-for-aix<\/a> This document can be used only as a reference and in noway warranty that it will work on your environment.<\/p>\n<p>Good luck with your upgrade effort and do let me know if you find any errors or process improvements I can make on my document.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently went through a rally of upgrading the DB2 UDB V8.2 to DB2 9.5 . \u00c2\u00a0IBM slowly sneaked in the end of support for DB2 V8.2, though this has created lot of unhappy customers as lot of third party vendors have not yet certified Db2 V9.5 . Siebel for one does not yet support [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[3],"tags":[25,943,115,108,54,118,109,121,116,122,110,119,120,114,111,117,113,112,123,32],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-db2","tag-aix","tag-db2","tag-db2-fixpak","tag-db2-upgrade","tag-db2-v95","tag-db2chglibpath","tag-db2chgpath","tag-db2ckmig","tag-db2fmd","tag-db2imigr","tag-db2node","tag-db2nodecfg","tag-db2server","tag-fix-pack","tag-fp3a","tag-initab","tag-installfixpack","tag-migrate","tag-runtime-path","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":7,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}