Cent6.3 X86_64 下安装db2

原创
2013/03/20 16:45
阅读数 236

<p><font size="2">今天准备在公司服务器上安装db2,网上一搜发现竟然没啥教程,后来发现其实很简单,比oracle方便多了。</font></p> <p><font size="2">首先得下载安装文件,db2_v1012_linuxx64_expc.tar.gz(497M),下载了一上午才下载完成。</font></p> <p><font size="2">解压:</font></p> <p><font size="2">tar –zxvf db2_v1012_linuxx64_expc.tar.gz</font></p> <p><font size="2">安装依赖项:</font></p> <p><font size="2">直接以root身份运行解压的文件夹中的安装程序,会提示有哪些依赖项没有安装。我这里只有pam提示找不到。</font></p> <p><font size="2">./db2setup</font></p> <p><font size="2">需要安装32位版本的pam:</font></p> <p><font size="2">yum install pam pam.i686</font></p> <p><font size="2">安装完成后,在此./db2setup,下面就很简单了。</font></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164520_JWAu.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164847_98UF.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164848_hDJ5.png" width="644" height="455" /></a></font></a></p> <p><font size="2">安装</font></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164521_j2Zo.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164848_Ez5z.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164848_lwFz.png" width="644" height="455" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164521_X18l.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164849_fntX.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164849_1Rsr.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164521_0F0e.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164849_tMn7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164849_U3IP.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164522_AIdb.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164850_Jjbw.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164850_Hz2p.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164522_2sPM.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164850_UuUG.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164850_oldr.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164523_lPTu.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164851_oalx.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164851_NLji.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164523_jYub.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164851_Pvbu.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164851_Vk9R.png" width="618" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164523_7zaT.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164852_HWku.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164852_nW2t.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164524_kISV.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164852_o56g.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164852_hRsK.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164524_UC7e.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164853_hC3l.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164853_a0EF.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164525_rFLA.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164853_dzyC.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164854_3aTm.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164525_cF1X.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164854_QKDP.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164854_zjMv.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164526_WSsi.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164854_ffK2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164855_gzzP.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164526_otbJ.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164855_pXA9.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164855_HbyZ.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164526_5KZE.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164856_rafC.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164856_REA1.png" width="620" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164527_Jtoy.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164856_pINq.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164856_vOT3.png" width="595" height="484" /></a></font></a></p> <p><a href="http://static.oschina.net/uploads/img/201303/20164527_ebaa.png"><font size="2"><a href="http://static.oschina.net/uploads/img/201303/20164857_e3fo.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201303/20164857_NhSn.png" width="644" height="431" /></a></font></a></p> <p><font size="2">安装完成后,</font></p> <p><font size="2">su db2inst1</font></p> <p><font size="2">db2start</font></p> <p><font size="2">db2stop</font></p> <p><font size="2">基本命令。其他的就不会了,呵呵。</font></p> <p><font size="2"></font></p> <p><font size="2">&#160;</font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p> <p><font size="2"></font></p>

展开阅读全文
打赏
0
2 收藏
分享
加载中

引用来自“子矜”的评论

引用来自“忧郁骑士”的评论

这图是温到死好不好!

的确是CentOS

这图要是win的,你姓我姓~~~
2013/03/20 19:40
回复
举报
子矜博主

引用来自“忧郁骑士”的评论

这图是温到死好不好!

的确是CentOS
2013/03/20 19:29
回复
举报
这图是温到死好不好!
2013/03/20 19:04
回复
举报
更多评论
打赏
3 评论
2 收藏
0
分享
返回顶部
顶部