flywiththewind
作者flywiththewind·2019-01-22 10:24
其它·easy world

db2 v11.1.4 rhel7.4安装全记录

字数 5556阅读 5750评论 1赞 4

1 配置本地yum源

将ios文件上传到操作系统中或通过光驱进行挂载

1)如果是光驱挂载

[root@db2v11 yum.repos.d]#mount /dev/cdrom /mnt
[root@db2v11 yum.repos.d]#cd /etc/yum.repos.d/
[root@db2v11 yum.repos.d]#cat > local.repo << EOF
[local-media]
name=rhel7-local
baseurl=file:///mnt
gpgcheck=0
enabled=1
EOF
[root@db2v11 yum.repos.d]#yum list

2)如果上传iso文件到操作系统

[root@db2v11 soft]# mount -t iso9660 rhel-server-7.4-x86_64-dvd.iso /mnt2
[root@db2v11 yum.repos.d]#cd /etc/yum.repos.d/
[root@db2v11 yum.repos.d]#cat > local.repo << EOF
[local-media]
name=rhel7-local
baseurl=file:///mnt
gpgcheck=0
enabled=1
EOF

2、安装db2软件

1)解压安装包

[root@db2v11 soft]# tar -zxf v11.1.4fp4_linuxx64_server_t.tar.gz

2)安装前检查

[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed: RHEL 7.4 x86_64
prereqSAM: One or more required packages are not installed: ksh, perl, perl-Sys-Syslog
prereqSAM: For details, refer to the 'Error:' entries in the log file: /tmp/prereqSAM.2.log
Requirement not matched for DB2 database "Server" . Version: "11.1.4.4". Summary of prerequisites that are not met on the current sys
tem: 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: "11.1.4.4". 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".

DBT3507E The db2prereqcheck utility failed to find the following package or file: "sg_persist".

DBT3507E The db2prereqcheck utility failed to find the following package or file: "sg3_utils".

DBT3613E The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation p
rerequisites.
One of ntp or chrony is required to be on the system.

Required minimum version for "ntpd": "4.2.6p5"
Actual version is undetermined
Required minimum version for "chronyd": "2.2.1"
Actual version is undetermined
Required minimum version for "ksh": "20100621"
Actual version is undetermined
DBT3507E The db2prereqcheck utility failed to find the following package or file: "kernel-devel".

DBT3507E The db2prereqcheck utility failed to find the following package or file: "gcc-c++".

DBT3507E The db2prereqcheck utility failed to find the following package or file: "cpp".

DBT3507E The db2prereqcheck utility failed to find the following package or file: "gcc".

3)安装缺失的rpm包

[root@db2v11 server_t]# yum -y install sg_persist sg3_utils kernel-devel cpp gcc gcc-c++ libstdci686 pami686

4)再次执行安装前检查

[root@db2v11 server_t]# ./db2prereqcheck -l -s

5)再次安装需要的rpm包

[root@db2v11 server_t]# yum -y install ksh ntp chrony

6)第三次执行安装前检查

[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed: RHEL 7.4 x86_64
prereqSAM: One or more required packages are not installed: perl-Sys-Syslog
prereqSAM: For details, refer to the 'Error:' entries in the log file: /tmp/prereqSAM.5.log
DBT3533I The db2prereqcheck utility has confirmed that all installation prerequisites were met. Requirement not matched for DB2 data
base "Server" with pureScale feature . Version: "11.1.4.4". Summary of prerequisites that are not met on the current system: DBT3613E The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation prerequisites.

7)安装rpm包

[root@db2v11 server_t]# yum -y install perl-Sys-Syslog

8)执行安装前检查

[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: All prerequisites for the ITSAMP installation are met on operating system:
Red Hat Enterprise Linux Server release 7.4 (Maipo)
DBT3533I The db2prereqcheck utility has confirmed that all installation prerequisites were met. DBT3533I The db2prereqcheck utility
has confirmed that all installation prerequisites were met.

9) 安装xclock

[root@db2v11 server_t]# yum -y install xorg-x11-apps

10)开始安装db2(采用图形界面安装)

[root@db2v11 server_t]# export DISPLAY=192.168.184.1:0.0
[root@db2v11 server_t]# ./db2setup

执行报错:
[root@db2v11 server_t]# ./db2setup
DBI1190I db2setup is preparing the DB2 Setup wizard which will guide

  you through the program setup process. Please wait.

Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/db2.tmp.24261/db2/linuxamd64/java/jre/lib/amd64/libawt_xawt.so (libX
tst.so.6: cannot open shared object file: No such file or directory) at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1428)

at java.lang.System.load(System.java:556)
at java.lang.ClassLoader.loadLibraryWithPath(Native Method)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1420)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1393)
at java.lang.System.loadLibrary(System.java:569)
at java.awt.Toolkit$3.run(Toolkit.java:1647)
at java.awt.Toolkit$3.run(Toolkit.java:1645)
at java.security.AccessController.doPrivileged(AccessController.java:640)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1644)
at java.awt.Toolkit.<clinit>(Toolkit.java:1681)
at java.awt.Component.<clinit>(Component.java:604)

解决:
[root@db2v11 server_t]# yum install libXtst.i686 -y

[root@db2v11 server_t]# yum install libXtst* -y

un6ln7af5u

un6ln7af5u

v03i7ief3vf
v03i7ief3vf

38ccnah5jh6
38ccnah5jh6

dqt6mfo4mns
dqt6mfo4mns

rom80vzzi4a
rom80vzzi4a

it3jfhvi3ei
it3jfhvi3ei

cjtegci8xud
cjtegci8xud

5hln16pkyvh
5hln16pkyvh

3uptuw14oha
3uptuw14oha

98h273kqpes
98h273kqpes

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

4

添加新评论1 条评论

wuwenpinwuwenpin软件开发工程师南京
2019-01-28 19:12
收藏了!!
Ctrl+Enter 发表

作者其他文章

  • ob 3.2.3 一级bug
    评论 1 · 赞 6
  • DB2 EOF and software download
    评论 0 · 赞 0
  • db2查看表大小(转载)
    评论 0 · 赞 0
  • 参加比赛喽
    评论 0 · 赞 0
  • ceshi
    评论 0 · 赞 0
  • 相关问题

    X社区推广