DB2 db2prereqcheck如何使其工作? [英] DB2 db2prereqcheck how to make it work?
问题描述
我是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支持文章中的示例填充了这些文件,但是没有任何变化.我尝试在具有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
技术详细信息:
Technical details:
猫/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实例.
As you may have noticed, this is an EC2 instance.
DB2版本:
- 用于AMD64和Intel®EM64T系统(x64)上的Linux®的IBM®Db2 11.1 Developer-C版
- 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屋!