LINUX安装db2V10.5步骤

2017-04-01 10:08:35|  分类: db2 |举报 |字号 订阅

下载LOFTER 我的照片书  |转自:http://blog.csdn.net/hanzheng260561728/article/details/50878666

Install

DB2 10.5 on Redhat Linux 6.5 for x86_64

Byadmin-Last updated:Tuesday, June 10, 2014 -Save

& Share-Leave a Comment

Install DB2 10.5 on Redhat Linux 6.5 for x86_64

近期发现在互联网上关于DB2 10.5的安装资料还是很少,如是打算发一篇关于DB2 10.5在Redhat Linux 6.5上安装的步骤,其实其安装和DB2以前的安装过程类似,简要的安装步骤如下,供参考。

1.安装配置环境

操作系统版本: Red Hat Enterprise Linux Server release 6.5 (Santiago) 数据库版本: DB2/LINUXX8664 10.5.3

[root@xuhz ~]# uname -a

Linux xuhz 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@xuhz ~]# uname -r

2.6.32-431.el6.x86_64

[root@xuhz ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

2.安装数据库软件

2.1 上传安装软件和license文件到某文件夹

[root@xuhz ~]# cd /software/

[root@xuhz software]# ls -l

total 1359328

drwxrwxrwx. 6 honcho honcho 4096 Jun 9 05:05 aese_c

-rwxrwxrwx. 1 honcho honcho 1391940725 Jun 9 05:05 DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar.gz

2.2 解压缩安装包

[root@xuhz software]# gunzip DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar.gz

[root@xuhz software]# tar -xvf DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar

2.3 安装前预检测

[root@xuhz software]# ls -l

drwxrwxrwx. 6 honcho honcho 4096 Jun 9 05:05 aese_c

-rwxrwxrwx. 1 honcho honcho 1560576000 Jun 9 05:05 DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar

drwxr-xr-x. 5 root root 4096 Feb 7 08:33 server

[root@xuhz software]# cd server/

[root@xuhz server]# ls

db2 db2checkCOL_readme.txt db2checkCOL.tar.gz db2ckupgrade db2_deinstall db2_install db2ls db2prereqcheck db2setup ibm_im installFixPack nlpack

[root@xuhz server]# ./db2prereqcheck -v 10.5.0.3 -s -o /tmp/db_check.log

Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".

Summary of prerequisites that are not met on the current system: DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

Requirement not matched for DB2 database "Server" with pureScale feature. Version: "10.5.0.3".

Summary of prerequisites that are not met on the current system: DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3588W The db2prereqcheck utility was unable to validate the configuration of the log_mtts_per_seg parameter on the following host machine: "xuhz". Reason code: "1".

DBT3566E The db2prereqcheck utility detected that the service named "rdma" is not enabled on host "xuhz".

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

DBT3563E The db2prereqcheck utility determined that SELinux is enabled, which is not supported with GPFS.

上述报错IBM 给出了如下解释:

DBT3514W

The db2prereqcheck utility failed to find the following 32-bit library file: library-file-name.

Explanation

You can verify installation prerequisites for DB2 database using the db2prereqcheck utility.

This message is returned when the db2prereqcheck utility cannot find the 32-bit version of a required library file. If the named file is missing, 32-bit database applications might not function properly.

User response

Respond to this message in one of the following ways:

1> If you do not intend to use 32-bit applications with DB2 database, then no response is required.

2> If you do intend to use 32-bit applications with DB2 database, ensure that the named 32-bit library file exists on the system before installing DB2 database.

目前平台不打算使用32bit applications,故可以忽略以上警告信息。

2.4 采用命令行来安装数据库软件

[root@xuhz server]# ./db2_install

Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".

Summary of prerequisites that are not met on the current system:

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

DBI1324W Support of the db2_install command is deprecated. For

more information, see the DB2 Information Center.

Default directory for installation of products - /opt/ibm/db2/V10.5

***********************************************************

Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no] -------------------- 这里选择安装目录,选择推荐目录即可

yes

Specify one of the following keywords to install DB2 products.

SERVER

CONSV

EXP

CLIENT

RTCL

Enter "help" to redisplay product names. --------------- 选择安装产品类型,这里选择SERVER

Enter "quit" to exit.

***********************************************************

SERVER

***********************************************************

Do you want to install the DB2 pureScale Feature? [yes/no] ---------------- 选择是否安装pureScale功能,这里选择不安装

no

Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".

Summary of prerequisites that are not met on the current system:

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

DB2 installation is being initialized.

Total number of tasks to be performed: 48

Total estimated time for all tasks to be performed: 1873 second(s)

Task #1 start

Description: Checking license agreement acceptance

Estimated time 1 second(s)

Task #1 end

...................................................................................................................

...................................................................................................................

Task #50 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #50 end

The execution completed successfully.

For more information see the DB2 installation log at

"/tmp/db2_install.log.2881".

2.5 注册liences

[root@xuhz adm]# /opt/ibm/db2/V10.5/adm/db2licm -l

Product name: "DB2 Enterprise Server Edition"

License type: "License not registered"

Expiry date: "License not registered"

Product identifier: "db2ese"

Version information: "10.5"

[root@xuhz adm]# cd /software/aese_c/db2/license

[root@xuhz license]# ls

db2aese_c.lic sam32.lic UNIX Windows

[root@xuhz license]# /opt/ibm/db2/V10.5/adm/db2licm -a db2aese_c.lic

LIC1402I License added successfully.

LIC1426I This product is now licensed for use as outlined in your License Agreement. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "/opt/ibm/db2/V10.5/license/en_US.iso88591"

[root@xuhz license]# /opt/ibm/db2/V10.5/adm/db2licm -l

Product name: "DB2 Advanced Enterprise Server Edition"

License type: "CPU Option"

Expiry date: "Permanent"

Product identifier: "db2aese"

Version information: "10.5"

Enforcement policy: "Soft Stop"

3.配置DB2 Instance

3.1 创建用户和组

用户用途 用户名 用户组

实例所有者 db2inst1 db2iadm1

受防护的用户 db2fenc1 db2fadm1

DB2 管理服务器用户 dasusr1 dasadm1

注:实例所有者主目录是将在其中创建DB2实例的位置;受防护的用户用于在DB2数据库所使用的地址空间之外运行用户定义的函数(UDF)和存储过程;DB2管理服务器用户的用户标识用于在系统上运行DB2管理服务器。

[root@xuhz ~]# groupadd db2iadm1

[root@xuhz ~]# groupadd db2fadm1

[root@xuhz ~]# groupadd dasadm1

[root@xuhz ~]# useradd -u 600 -g db2iadm1 -m -d /home/db2inst1 db2inst1

[root@xuhz ~]# useradd -u 601 -g db2fadm1 -m -d /home/db2fenc1 db2fenc1

[root@xuhz ~]# useradd -u 602 -g dasadm1 -m -d /home/dasusr1 dasusr1

[root@xuhz ~]# passwd db2inst1

Changing password for user db2inst1.

New password:

BAD PASSWORD: it is based on a dictionary word

Retype new password:

passwd: all authentication tokens updated successfully.

[root@xuhz ~]# passwd db2fenc1

Changing password for user db2fenc1.

New password:

BAD PASSWORD: it is based on a dictionary word

Retype new password:

passwd: all authentication tokens updated successfully.

[root@xuhz ~]# passwd dasusr1

Changing password for user dasusr1.

New password:

BAD PASSWORD: it is based on a dictionary word

Retype new password:

passwd: all authentication tokens updated successfully.

3.2 创建DAS

[root@xuhz ~]# cd /opt/ibm/db2/V10.5/instance/

[root@xuhz instance]# ./dascrt -u dasusr1

DBI1070I Program dascrt completed successfully.

注:版本9.7中已经不推荐使用“DB2 管理服务器(DAS)”,在以后的发行版中可能会将其除去。DAS在DB2 pureScale环境中不受支持。

3.3 创建DB2 Instance

[root@xuhz instance]# ./db2icrt -u db2fenc1 db2inst1

DBI1446I The db2icrt command is running.

DB2 installation is being initialized.

Total number of tasks to be performed: 4

Total estimated time for all tasks to be performed: 309 second(s)

.......................................................................................................

.......................................................................................................

Task #4 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #4 end

The execution completed successfully.

For more information see the DB2 installation log at "/tmp/db2icrt.log.8120".

Required: Review the following log file also for warnings or errors:

"/tmp/db2icrt_local.log.*"

DBI1070I Program db2icrt completed successfully.

[db2inst1@xuhz ~]$ db2ilist

db2inst1

4.配置DB2服务器的TCP/IP通信

4.1 设置DB2服务器的通信协议

[root@xuhz ~]# su - db2inst1

[db2inst1@xuhz ~]$ db2set -all

[i] DB2AUTOSTART=NO

[g] DB2SYSTEM=xuhz

[g] DB2INSTDEF=db2inst1

[g] DB2ADMINSERVER=dasusr1

[db2inst1@xuhz ~]$ db2set DB2COMM=tcpip

[db2inst1@xuhz ~]$ db2set -all

[i] DB2COMM=TCPIP

[i] DB2AUTOSTART=NO

[g] DB2SYSTEM=xuhz

[g] DB2INSTDEF=db2inst1

[g] DB2ADMINSERVER=dasusr1

4.2 更新服务器上services文件

[db2inst1@xuhz ~]$ cat /etc/services |grep DB2

ibm-db2 523/tcp # IBM-DB2

ibm-db2 523/udp # IBM-DB2

questdb2-lnchr 5677/tcp # Quest Central DB2 Launchr

questdb2-lnchr 5677/udp # Quest Central DB2 Launchr

DB2_db2inst1 60006/tcp # DB2 连接服务端口

DB2_db2inst1_1 60007/tcp

DB2_db2inst1_2 60008/tcp

DB2_db2inst1_3 60009/tcp

DB2_db2inst1_4 60010/tcp

DB2_db2inst1_END 60011/tcp

4.3 更新服务器数据库管理文件

[db2inst1@xuhz ~]$ db2 get dbm cfg |grep SVCENAME

TCP/IP Service name (SVCENAME) =

SSL service name (SSL_SVCENAME) =

[db2inst1@xuhz ~]$ db2 update dbm cfg using SVCENAME 60006

DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed

successfully.

[db2inst1@xuhz ~]$ db2 get dbm cfg |grep SVCENAME

TCP/IP Service name (SVCENAME) = 60006

SSL service name (SSL_SVCENAME) =

4.4 验证通信端口状态

[db2inst1@xuhz ~]$ db2start

06/09/2014 19:38:44 0 0 SQL1063N DB2START processing was successful.

SQL1063N DB2START processing was successful.

[db2inst1@xuhz ~]$ netstat -an |grep 60006

tcp 0 0 0.0.0.0:60006 0.0.0.0:* LISTEN

5. 创建数据库

[db2inst1@xuhz ~]$ db2 create db honcho using codeset UTF-8 territory CN pagesize 8192

DB20000I The CREATE DATABASE command completed successfully.

[db2inst1@xuhz ~]$ db2 connect to honcho

Database Connection Information

Database server = DB2/LINUXX8664 10.5.3

SQL authorization ID = DB2INST1

Local database alias = HONCHO

至此,DB2数据库软件安装和数据库实例及数据库创建完成,相比Oracle的安装而言DB2的安装步骤更加简单。

阅读(355)| 评论(0)

db2安装包v10.5_LINUX安装db2V10.5步骤相关推荐

  1. 如何下载Windows和office官方镜像安装包,及安装激活详细步骤

    一.Windows 1.下载最新版Windows10镜像 打开链接https://www.microsoft.com/zh-cn/software-download/windows10/ 苹果电脑: ...

  2. db2安装包v10.5_IBM DB2 jdbc驱动

    IBM官网注册下载的IBM DB2 jdbc驱动,有需要的下. DB2的JDBC驱动 在Java程序中连接DB2需要使用到JDBC驱动,一般情况下,大家都在会项目工程中引入驱动程序包db2java.z ...

  3. db2安装包v10.5_IBM DB2 jdbc驱动 v10.5 官方版

    IBM官网注册下载的IBM DB2 jdbc驱动,有需要的下. DB2的JDBC驱动在Java程序中连接DB2需要使用到JDBC驱动,一般情况下,大家都在会项目工程中引入驱动程序包db2java.zi ...

  4. [linux]Linux挂载光盘,解压光盘内的tar安装包,并安装软件(Install VMware Tools in a Linux Guest)...

    挂载光盘,解压光盘内的tar安装包,并安装(Install VMware Tools in a Linux Guest) 下面是vmware帮助文档里在linux下安装vmware tools的步骤, ...

  5. vs2005制作安装包(自动安装.net framework 2.0)(小寿原创)

    vs2005制作安装包(自动安装.net framework 2.0)(小寿原创) 新建项目-> 其他项目类型->安装和部署->安装向导! 安装向导会提示你添加要安装的文件,这时你可 ...

  6. anacoda里面安装包显示失败_Premiere2020安装包下载及安装教程(附pr2020配置要求)...

    近两年随着短视频行业的兴起,视频剪辑以及后期制作成为炙手可热的职业.Premiere作为影视动画的必备软件,其功能功能强悍,拥有各种强大且丰富的视频编辑功能,可以帮助用户在一个无缝的集成工作流程中轻松 ...

  7. Studio One Pro5软件安装包下载及安装教程

    Studio One Pro5软件安装包下载及安装教程 PreSonus Studio One是PreSonus出品的一款功能强大的音乐创作软件 Studio One Pro5下载地址: 百度网盘 百 ...

  8. linux下如何安装软件?——linux应用软件安装包类型及安装介绍

    原文:http://blog.chinaunix.net/uid-24612962-id-3181499.html 一.解析Linux应用软件安装包,通常Linux应用软件的安装包有四种: 1) ta ...

  9. python3安装包命令_pip3安装和卸载以及常用命令

    环境:centos7.6 image.png python3版本:3.6.8 pip3版本:18.1 1.pip3安装 方法一:先安装python3,python3安装好后,pip3默认安装 方法二: ...

最新文章

  1. SHELL学习 续2
  2. 如何找出SQL中的重复记录
  3. JAVA 串口编程(二)
  4. 为什么用 windbg 看 !address 显示出的Free是128T 大小?
  5. 【翻译】无需安装Python,就可以在.NET里调用Python库
  6. Python-JS (JS介绍~JS的基础数据类型)
  7. 点歌台 PHP,MeMusic3.0 PHP在线点歌系统 - 下载 - 搜珍网
  8. python编写代码运用递归画图形_python数据结构与算法 22 递归图形
  9. 【转】 Pro Android学习笔记(八一):服务(6):复杂数据Parcel
  10. mysql服务启动失败原因
  11. 使用C语言快速制作一个视频播放器
  12. 海康威视Java SDK实战
  13. adb shell dunpsys SurfaceFlinger
  14. 5G NR 随机接入 总结
  15. 常见的数值积分方法 (欧拉、中值、龙格-库塔,【常用于IMU中】)
  16. 一个low逼的boofuzz脚本生成器
  17. 高德地图获取坐标距离_高德地图获取两个经纬度点间直线距离JS/PHP/SQL代码
  18. 让你一步步成为运维专家之各种运维脚本
  19. 多态的综合练习(Java)
  20. 卷积神经网络的反向传播,卷积反向传播过程

热门文章

  1. 上交大博士生:博三经历5轮审稿被拒后,如今发10篇论文成为审稿人
  2. CenterNet-TensorRT 3D Detection
  3. 数据可视化 | Matplotlib
  4. 读书笔记 | 墨菲定律(一)
  5. livechart 只显示 y 值_基于Python语言的SEGY格式地震数据读取与显示编程
  6. Science:产前母体感染促进后代的组织特异性免疫和炎症
  7. The Innovation | Volume 2 Issue3 正式出版
  8. Nature子刊:利用转细菌基因植物修复土壤有毒污染物!
  9. 怎么看电脑的hdmi是输出还是输入_HDMI线连接电视电脑常见问题及解决办法
  10. R语言编写自定义描述统计计算函数、使用doBy包的summaryBy函数计算不同分组(group)的描述性统计值(Descriptive statistics by group、样本个数、均值、标准)