DB2 db2prereqcheck 如何使其工作? [英] DB2 db2prereqcheck how to make it work?

查看:52
本文介绍了DB2 db2prereqcheck 如何使其工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 DB2 数据库管理的新手,我想我不会被安装过程困住.我在安装之前阅读了一些文档,发现了一个有趣的db2prereqcheck".

I'm newbie in DB2 database administration and I couldn't think that I'd be stuck with the installation process. I read some documents before installation and found an interesting "db2prereqcheck" thing.

所以我在安装前尝试运行它并得到一个错误:

So I tried to run it before installation and got an error:

DBT3505E  The db2prereqcheck utility was unable to determine the Linux distribution level.

关于这个来自 ibm 的错误:

About this error from ibm:

我找到了一些建议删除文件/etc/issue"和/etc/issue.net"的其他答案.

I found some other answers where suggest to delete the files "/etc/issue" and "/etc/issue.net".

我根据提示检查了我的/etc/issue*"文件.我用 IBM Support 中的文章中的示例填充了这些文件,但没有任何改变.我尝试在其他装有 CentOS、Debian 操作系统的服务器上运行此脚本,但又遇到了另一个错误:

I checked my "/etc/issue*" files according to the tips. I filled that files with the example from the article in IBM Support, but nothing has changed. I tried running this script on other servers with CentOS, Debian operating systems, but got another error:

./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工作

I've already installed db2, but my self-esteem is down. So the question is: my hands are a problem or is the problem in another? And how to make db2 work

技术细节:

cat/etc/issue

Amazon Linux AMI release 2018.03
Kernel 
 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 实例.

As you may have noticed, this is an EC2 instance.

DB2 版本:

  • IBM® Db2 11.1 Developer-C Edition for Linux® on AMD64 和 Intel® EM64T 系统 (x64)
  • IBM® DB2 Express-C 版本 11.1

感谢您在这件事上的帮助.感谢您的时间.

I would appreciate your help in this matter. Thank you for your time.

推荐答案

如果 db2prereqcheck 报告:

If db2prereqcheck reports :

DBT3505E db2prereqcheck 实用程序无法确定 Linux分布水平.中止当前安装...运行使用选项-f sysreq"参数安装以强制安装.

DBT3505E The db2prereqcheck utility was unable to determine the Linux distribution level. Aborting the current installation ... Run installation with the option "-f sysreq" parameter to force the installation.

如果其他 IBM 建议不适用,那么您可以通过以下解决方法避免此症状:

and if other IBM suggestions do not apply, then you may be able to avoid this symptom with the following workaround:

(作为根)

cp /etc/os-release  /etc/lsb-release

它起作用的原因是某些版本的 db2prereqcheck 只依次查找以下文件:

The reason it works is that some versions of db2prereqcheck look only for the following files in turn:

/etc/centos-release
/etc/redhat-release
/etc/SuSE-release
/etc/lsb-release

如果这些文件都不存在,则可能会导致 DBT3505E 症状.如果您的发行版(或容器)有一个等效文件(例如,Debian 可能有/etc/os-release),那么只需将其复制到/etc/lsb-release 即可完成 db2prereqcheck.

If none of those files are present, the DBT3505E symptom can result. If your distro (or container) has an equivalent file (for example, Debian may have /etc/os-release) then simply copying it to /etc/lsb-release will allow db2prereqcheck to complete.

这篇关于DB2 db2prereqcheck 如何使其工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆