【发布时间】:2018-12-01 17:25:23
【问题描述】:
我是 DB2 数据库管理的新手,我想我不会被安装过程困住。我在安装之前阅读了一些文档,发现了一个有趣的“db2prereqcheck”东西。
所以我在安装前尝试运行它,结果报错:
DBT3505E The db2prereqcheck utility was unable to determine the Linux distribution level.
关于这个来自 ibm 的错误:
我找到了一些建议删除文件“/etc/issue”和“/etc/issue.net”的其他答案。
我根据提示检查了我的“/etc/issue*”文件。我用 IBM Support 中的文章中的示例填充了这些文件,但没有任何改变。我尝试在其他装有 CentOS、Debian 操作系统的服务器上运行此脚本,但又遇到了另一个错误:
./db2prereqcheck
DBI1189E There has been an attempt to use db2prereqcheck
on an image for a platform that does not match the current platform
'Linux/x86-64' on which it is being run.
Explanation:
Possible causes include:
- This DB2 install image is not valid for the current
platform.
- The current platform is not supported by DB2.
User Response:
Install DB2 using the DB2 install image that corresponds
with the current platform 'Linux/x86-64'.
我已经安装了 db2,但是我的自尊心下降了。所以问题是:我的手有问题还是另一个问题?以及如何让db2工作
技术细节:
cat /etc/issue
Amazon Linux AMI release 2018.03
Kernel \r on an \m
cat /etc/*-rel*
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2018.03
cpe:/o:amazon:linux:2018.03:ga
uname -a
Linux hostname.host 4.14.47-56.37.amzn1.x86_64 #1 SMP Wed Jun 6 18:49:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
您可能已经注意到,这是一个 EC2 实例。
DB2 版本:
- IBM® Db2 11.1 Developer-C Edition for Linux® on AMD64 和 Intel® EM64T 系统 (x64)
- IBM® DB2 Express-C 版本 11.1
感谢您在这件事上的帮助。感谢您的时间。
【问题讨论】:
标签: amazon-ec2 db2