DB2 db2icrt The host name "xxx" is invalid. Specify a valid host name(linux系统安装时)
2014-07-10 17:41
441 查看
[root@centos-0 instance]# ./db2icrt -u db2inst1 db2inst1
The host name "centos-0.msdomain" is invalid. Specify a valid host name.
DBI1922N The host name is not valid.
Explanation:
The TCP/IP host name parameter is not valid or does not exist.
User response:
Ensure that TCP/IP is operational on the system. If a domain name server
is used, ensure that the domain name server machine is active. Issue the
command again using the correct TCP/IP host name.
DBI1079I Output is saved in the log file /tmp/db2icrt.log.2816.
Explanation:
All processed and failed operations have been saved into this log file.
User response:
Do not modify this file in any way. This file is for IBM Technical
Support reference.
/opt/ibm/db2/V9.7/instance/db2iutil: line 2528: DB2INSTVER: parameter null or not set
检查 /opt/ibm/db2/V9.7/instance/db2iutil 文件(非提示的2528行),发现有如下内容
[plain] view
plaincopy
${DB2DIR?}/instance/db2isrv -addfcm -i ${INSTNAME?} ${DB2ISRVOPTS?}
if [ $? -eq 3 ]; then
db2isrv
${DB2DIR?}/instance/db2isrv -addfcm -i ${INSTNAME?} ${DB2ISRVOPTS?}
if [ $? -eq 3 ]; then
display_msg ${DB2CAT?} 922 \
'DBI1922N The host name is not valid.\n'
就是当db2isrv -addcfm -i ${INSTNAME?} ${DB2ISRVOPTS?} 返回为3的时候提示主机名称不正确。
这个db2isrv 找了很多东西,没找到具体的内容,看名字是给系统增加一个服务。后面是addfmc ,这个fmc是DB2的故障守护进程。
这个是监测DB2实例正常运行,当实例异常宕机后,它会自动启动实例。那么以上的错误可以连起来了:
再给系统增加一个DB2守护进程的时候失败了,原因是主机名不对。
好的,看一下主机名定义
[root@centos-0 instance]# hostname
centos-0.msdomain
再看
[root@centos-0 instance]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
这个地方不知为什么CENTOS装好之后没有修改,修改一下。修改后内容如下
[root@centos-0 instance]# vi /etc/hosts
127.0.0.1 localhost centos.msdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
保存再次执行创建实例,正常。
The host name "centos-0.msdomain" is invalid. Specify a valid host name.
DBI1922N The host name is not valid.
Explanation:
The TCP/IP host name parameter is not valid or does not exist.
User response:
Ensure that TCP/IP is operational on the system. If a domain name server
is used, ensure that the domain name server machine is active. Issue the
command again using the correct TCP/IP host name.
DBI1079I Output is saved in the log file /tmp/db2icrt.log.2816.
Explanation:
All processed and failed operations have been saved into this log file.
User response:
Do not modify this file in any way. This file is for IBM Technical
Support reference.
/opt/ibm/db2/V9.7/instance/db2iutil: line 2528: DB2INSTVER: parameter null or not set
检查 /opt/ibm/db2/V9.7/instance/db2iutil 文件(非提示的2528行),发现有如下内容
[plain] view
plaincopy
${DB2DIR?}/instance/db2isrv -addfcm -i ${INSTNAME?} ${DB2ISRVOPTS?}
if [ $? -eq 3 ]; then
db2isrv
${DB2DIR?}/instance/db2isrv -addfcm -i ${INSTNAME?} ${DB2ISRVOPTS?}
if [ $? -eq 3 ]; then
display_msg ${DB2CAT?} 922 \
'DBI1922N The host name is not valid.\n'
就是当db2isrv -addcfm -i ${INSTNAME?} ${DB2ISRVOPTS?} 返回为3的时候提示主机名称不正确。
这个db2isrv 找了很多东西,没找到具体的内容,看名字是给系统增加一个服务。后面是addfmc ,这个fmc是DB2的故障守护进程。
这个是监测DB2实例正常运行,当实例异常宕机后,它会自动启动实例。那么以上的错误可以连起来了:
再给系统增加一个DB2守护进程的时候失败了,原因是主机名不对。
好的,看一下主机名定义
[root@centos-0 instance]# hostname
centos-0.msdomain
再看
[root@centos-0 instance]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
这个地方不知为什么CENTOS装好之后没有修改,修改一下。修改后内容如下
[root@centos-0 instance]# vi /etc/hosts
127.0.0.1 localhost centos.msdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
保存再次执行创建实例,正常。
相关文章推荐
- 在 linux 系统下安装 perl
- 在Linux系统中安装和配置ACE
- 初次安装Linux系统手记
- linux系统的安装(redhat7.2)+jsp环境+mysql+安全设置
- 安装Debian Linux 3.0r1系统
- 安装和配置Tripwire,加强你的Linux系统安全
- 主流显卡Linux系统驱动安装--nVidia篇
- Linux下MPICH2集群系统安装手册(采用建立信任ssh)
- 在 linux 系统下安装 perl
- 主流显卡Linux系统驱动安装--nVidia篇
- 自己的linux系统安装以及软件配置
- SPARC中如何安装Linux系统
- [转]Linux系统中OpenSSH的安装和配置
- 主流显卡Linux系统驱动安装--intel、ATi篇
- 打造完美linux系统:常用软件安装
- 为您的 Linux 应用开发加油提速 2004: 安装 DB2 Version 8.1.6
- DB2个人版(Linux)安装
- DB2个人版(Linux)安装
- Linux_Debian系统安装
- 多系统安装实践(Window /FreeBSD/Linux)