{"id":788,"date":"2015-08-23T18:09:11","date_gmt":"2015-08-23T17:09:11","guid":{"rendered":"http:\/\/it.tuxie.eu\/?p=788"},"modified":"2015-08-24T12:28:14","modified_gmt":"2015-08-24T11:28:14","slug":"db2-10-5-6-db2val-failing-afer-install","status":"publish","type":"post","link":"http:\/\/it.tuxie.eu\/?p=788","title":{"rendered":"DB2 10.5.6 &#8211; db2val failing afer fresh install"},"content":{"rendered":"<p>That feeling you have brand new version. Very common setup, after install steps. And surprise!! db2val is yelling &#8222;discrepancies found&#8220;! \ud83d\ude42<\/p>\n<p><!--more--><\/p>\n<p>DB2 is distributed with a very useful utility called <a href=\"https:\/\/www-01.ibm.com\/support\/knowledgecenter\/SSEPGG_10.5.0\/com.ibm.db2.luw.admin.cmd.doc\/doc\/r0053565.html?cp=SSEPGG_10.5.0%2F3-6-2-6-131&amp;lang=cs\">db2val<\/a> &#8211; it checks and validate installed DB2 files + proper setup of instance.<br \/>\n[crayon lang=&#8220;shell&#8220;]<br \/>\n[db2inst1@ol67 ~]$ db2val<br \/>\nDBI1379I\u00a0 The db2val command is running. This can take several minutes.<\/p>\n<p>DBI1335I\u00a0 Installation file validation for the DB2 copy installed at<br \/>\n\/opt\/ibm\/db2\/V10.5 was successful.<\/p>\n<p>DBI1338E\u00a0 The validation of instance db2inst1 failed. Reason<br \/>\ncode=3.<\/p>\n<p>Explanation:<\/p>\n<p>1. The default instance is not set.<br \/>\n2. Some files in the instance directory are damaged. The symbolic links<br \/>\nof the files are not pointing to the current DB2 copy installation<br \/>\npath, and the file permission and ownership might have been changed.<br \/>\n3. The DB2 Extended Security setup does not allow the current user to<br \/>\nstart an instance. If Extended Security is enabled, the user needs to<br \/>\nbe in the DB2ADMNS group.<br \/>\n4. To start the instance, read permission is required to the<br \/>\n\/etc\/services file.<br \/>\n5. The appropriate authority is required to validate this instance.<br \/>\n6. The partitioned database environment setting is not correct.<br \/>\n7. The instance failed to start because of system errors.<br \/>\n8. An unexpected internal error occurred.<\/p>\n<p>User response:<\/p>\n<p>1. Set the DB2INSTDEF profile registry variable to an instance in the<br \/>\nDB2 copy.<br \/>\n2. Run the db2iupdt or db2nrupdt command with the -k option for the<br \/>\ninstance.<br \/>\n3. Add the current user to the DB2ADMNS group and rerun the command.<br \/>\n4. Ensure you have read permission to the \/etc\/services file.<br \/>\n5. Log on as a user with the appropriate authority, and retry the<br \/>\ncommand.<br \/>\n6. Check the partitioned database environment validation log file for<br \/>\ndetails.<br \/>\n7. Check the log file for details.<br \/>\n8. Rerun the db2val command. If this error persists, contact your IBM<br \/>\nservice representative.<\/p>\n<p>Related information:<br \/>\ndb2val &#8211; DB2 copy validation tool command<\/p>\n<p>DBI1344E\u00a0 The validation tasks of the db2val command failed. For<br \/>\ndetails, see the log file \/tmp\/db2val-150823_181041.log.<br \/>\n[\/crayon]<br \/>\nOk, there are just 2 steps to correct &#8222;something&#8220;:<\/p>\n<p>A) <a href=\"https:\/\/www-01.ibm.com\/support\/knowledgecenter\/SSEPGG_10.5.0\/com.ibm.db2.luw.admin.cmd.doc\/doc\/r0002060.html?cp=SSEPGG_10.5.0%2F3-6-2-6-73&amp;lang=cs\">db2iupdt<\/a> can a bit tricky one = run only as a root and be sure that affected instance is down.<\/p>\n<p>B) location of db2iupdt is instance directory withing DB2 home:<br \/>\n[crayon lang=&#8220;shell&#8220;]<br \/>\n[root@ol67 j]# cd \/opt\/ibm\/db2\/V10.5\/instance<br \/>\nroot@ol67 instance]# .\/db2iupdt -k db2inst1<br \/>\nDBI1446I\u00a0 The db2iupdt command is running.<\/p>\n<p>DB2 installation is being initialized.<\/p>\n<p>Total number of tasks to be performed: 4<br \/>\nTotal estimated time for all tasks to be performed: 309 second(s)<\/p>\n<p>Task #1 start<br \/>\nDescription: Setting default global profile registry variables<br \/>\nEstimated time 1 second(s)<br \/>\nTask #1 end<\/p>\n<p>Task #2 start<br \/>\nDescription: Initializing instance list<br \/>\nEstimated time 5 second(s)<br \/>\nTask #2 end<\/p>\n<p>Task #3 start<br \/>\nDescription: Configuring DB2 instances<br \/>\nEstimated time 300 second(s)<br \/>\nTask #3 end<\/p>\n<p>Task #4 start<br \/>\nDescription: Updating global profile registry<br \/>\nEstimated time 3 second(s)<br \/>\nTask #4 end<\/p>\n<p>The execution completed successfully.<\/p>\n<p>For more information see the DB2 installation log at &#8222;\/tmp\/db2iupdt.log.6011&#8220;.<br \/>\nDBI1070I\u00a0 Program db2iupdt completed successfully.<\/p>\n<p>[root@ol67 instance]# pwd<br \/>\n\/opt\/ibm\/db2\/V10.5\/instance<br \/>\n[root@ol67 instance]# su &#8211; db2inst1<br \/>\n[db2inst1@ol67 ~]$ db2val<br \/>\nDBI1379I\u00a0 The db2val command is running. This can take several minutes.<\/p>\n<p>DBI1335I\u00a0 Installation file validation for the DB2 copy installed at<br \/>\n\/opt\/ibm\/db2\/V10.5 was successful.<\/p>\n<p>DBI1339I\u00a0 The instance validation for the instance db2inst1 was<br \/>\nsuccessful.<\/p>\n<p>DBI1343I\u00a0 The db2val command completed successfully. For details, see<br \/>\nthe log file \/tmp\/db2val-150823_185427.log.<\/p>\n<p>[db2inst1@ol67 ~]$<br \/>\n[\/crayon]<br \/>\nAll done.<\/p>\n<p>-a-<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>That feeling you have brand new version. Very common setup, after install steps. And surprise!! db2val is yelling &#8222;discrepancies found&#8220;! \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=\/wp\/v2\/posts\/788"}],"collection":[{"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=788"}],"version-history":[{"count":0,"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=\/wp\/v2\/posts\/788\/revisions"}],"wp:attachment":[{"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/it.tuxie.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}