{"id":234,"date":"2009-04-25T18:11:40","date_gmt":"2009-04-25T12:11:40","guid":{"rendered":"http:\/\/techsatwork.com\/blog\/?p=234"},"modified":"2016-01-07T11:31:13","modified_gmt":"2016-01-07T05:31:13","slug":"db2-on-ubuntu","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=234","title":{"rendered":"DB2 on Ubuntu"},"content":{"rendered":"<p>Have you heard about Ubuntu ? \u00c2\u00a0Its one of the most popular open source linux distribution available. Lot of people associate\u00c2\u00a0\u00c2\u00a0open source with unstable and unreliable software, but ironically its not. \u00c2\u00a0Majority of the open source software are pretty good and come with good user group support. \u00c2\u00a0One such distribution is Ubuntu.<\/p>\n<p><a href=\"http:\/\/www.ubuntu.com\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-235\" title=\"ubuntulogo\" src=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2009\/04\/ubuntulogo.png\" alt=\"ubuntulogo\" width=\"202\" height=\"55\" \/><\/a><\/p>\n<p>Ubuntu does have an option for commercial support from Canonical. \u00c2\u00a0Today Ubuntu comes with three different flavors&#8230;yeah just three unlike certain other operating systems that comes with half a dozen editions.<\/p>\n<p>I have been using the desktop edition for a while and its been very stable. \u00c2\u00a0I used to have the server edition which hosted my personal mail server, but one fine morning the motherboard decided to fry a chipset. They also have a laptop\/netbook edition, I am told its pretty good as well although I haven&#8217;t tried. \u00c2\u00a0 Ubuntu just released 9.04. \u00c2\u00a0 The latest version is pretty sweet and boots fast. \u00c2\u00a0If you are running Ubuntu 8.10, then there is a straight <a href=\"http:\/\/www.ubuntu.com\/getubuntu\/upgrading\" target=\"_blank\">upgrade path<\/a>, otherwise you have install \u00c2\u00a0Ubuntu 9.04 . \u00c2\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-238\" title=\"Download db2 express c\" src=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2009\/04\/download_168x64.jpg\" alt=\"Download db2 express c\" width=\"168\" height=\"64\" \/><\/p>\n<p>One of the operating systems IBM DB2 V9.5 supports is Ubuntu 32 bit and 64 bit. \u00c2\u00a0Here is how to install DB2 on Ubuntu. \u00c2\u00a0Once you <a href=\"http:\/\/www.ubuntu.com\/getubuntu\/download\" target=\"_blank\">download Ubuntu<\/a> and <a href=\"http:\/\/www-01.ibm.com\/software\/data\/db2\/express\/download.html?S_TACT=teamblog&amp;S_CMP=ECDDWW01\" target=\"_blank\">DB2<\/a>\u00c2\u00a0<\/p>\n<p><a href=\"https:\/\/help.ubuntu.com\/9.04\/installation-guide\/index.html\" target=\"_blank\">Install Ubuntu<\/a> and make sure you update all the patches.<\/p>\n<p>Unzip and untar the DB2 install file<\/p>\n<p>Ensure you satisfies all the\u00c2\u00a0prerequisites\u00c2\u00a0for DB2<\/p>\n<p>Run db2setup and follow the instructions on GUI screen. The install options are pretty easy and if you are new to DB2, you can choose the typical install option. If its the first time I recommend selecting the create instance option.<\/p>\n<p><em><span style=\"color: #000000;\">sudo .\/db2setup<\/span><\/em><\/p>\n<p>While running db2setup, if you encounter the following error message :<br \/>\n<em><span style=\"font-size: x-small;\">ERROR:<\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0The required library file libstdc++.so.5 is not found on the system.<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">ERROR:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0The required library file libaio.so.1 is not found on the system.<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0Check the following web site for the up-to-date system requirements<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0of IBM DB2 9.5<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0http:\/\/www.ibm.com\/software\/data\/db2\/udb\/sysreqs.html<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\u00c2\u00a0http:\/\/www.software.ibm.com\/data\/db2\/linux\/validate<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\/home\/rpillai\/Desktop\/exp\/db2\/linux\/install\/..\/bin\/db2usrinf:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">error while loading shared libraries: libstdc++.so.5:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">cannot open shared object file: No such file or directory<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">[: 609: 0: unexpected operator<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\/home\/rpillai\/Desktop\/exp\/db2\/linux\/install\/..\/bin\/db2langdir:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">error while loading shared libraries: libstdc++.so.5:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">cannot open shared object file: No such file or directory<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">\/home\/rpillai\/Desktop\/exp\/db2\/linux\/install\/..\/bin\/db2langdir:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">error while loading shared libraries: libstdc++.so.5:<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">cannot open shared object file: No such file or directory<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">DBI1055E The message file db2install.cat cannot be found.<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">Explanation: \u00c2\u00a0The message file required by this<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">script is missing from the system; it may have been<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">deleted or the database products may have been loaded<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">incorrectly.<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">User Response: \u00c2\u00a0Verify that the product option containing<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">the message file is installed correctly. \u00c2\u00a0If there are<\/span><\/span><\/em><span style=\"font-size: x-small;\"><br \/>\n<\/span><span style=\"font-size: x-small;\"> <\/span><em><span style=\"color: #000000;\"><span style=\"font-size: x-small;\">verification errors; reinstall the product option.<\/span><\/span><\/em><\/p>\n<p>You can solve the above issue by \u00c2\u00a0running the following command<br \/>\n<em><span style=\"color: #000000;\">sudo apt-get install libstdc++5<\/span><\/em><br \/>\n<em><span style=\"color: #000000;\">sudo apt-get install libaio-dev<\/span><\/em><br \/>\n<em><span style=\"color: #000000;\">sudo .\/db2setup<\/span><\/em><\/p>\n<p>Once you install finishes, sudo to instance and check whether you can connect to sample database. You can list the available databases by typing<\/p>\n<p><em>db2 list db directory<\/em> \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 &lt;&lt; \u00c2\u00a0list databases<\/p>\n<p><em>db2 connect to sample<\/em> \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0&lt;&lt; connect to the sample database\u00c2\u00a0<\/p>\n<p><em>db2 list tables for all schema<\/em> \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0&lt;&lt; list all tables in the database<\/p>\n<p>You can stop and start db2 with the following commands :<\/p>\n<p>db2start \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0&lt;&lt; \u00c2\u00a0starts db2<\/p>\n<p>db2stop \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 &lt;&lt; stops db2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you heard about Ubuntu ? \u00c2\u00a0Its one of the most popular open source linux distribution available. Lot of people associate\u00c2\u00a0\u00c2\u00a0open source with unstable and unreliable software, but ironically its not. \u00c2\u00a0Majority of the open source software are pretty good and come with good user group support. \u00c2\u00a0One such distribution is Ubuntu. Ubuntu does have [&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":[53,3,142],"tags":[943,149,146,151,152,148,150,147,945,145,143,144],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-applications","category-db2","category-linux","tag-db2","tag-db2langdir","tag-db2setup","tag-db2start","tag-db2stop","tag-db2usrinf","tag-libaioso1","tag-libstdcso5","tag-linux","tag-open-source","tag-ubuntu","tag-ubuntu-904"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/234","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=234"}],"version-history":[{"count":26,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":1547,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions\/1547"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}