Db2icrt creating an instance that indicates that the hostname is invalid

Source: Internet
Author: User
Tags db2 db2 installation domain name server



There is a phenomenon, after DB2 installation, using DB2ICRT to create an instance, the host name is not valid, prompting the following:


[Email protected] 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 a valid or does not exist.




User Response:




Ensure that TCP/IP is operational on the system. If a domain name server


is used, ensure 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 has been saved into the this log file.




User Response:




Do not modify the this file on any. This file was for IBM Technical


Support Reference.






/opt/ibm/db2/v9.7/instance/db2iutil:line 2528:db2instver:parameter null or not set











Check the/opt/ibm/db2/v9.7/instance/db2iutil file (2528 lines not prompted) and find the following


${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 ' <pre name= ' code ' class= ' Plain ' > Stop_prog 1</pre> fi<p& Gt;</p>


<pre></pre>


<br>


is when Db2isrv-addcfm-i ${instname?} ${db2isrvopts returns to 3 when the host name is not correct. <br>


This db2isrv found a lot of things, did not find specific content, look at the name is to add a service to the system. Behind is ADDFMC, the FMC is the DB2 fault daemon. <br>


This is to monitor the DB2 instance to run normally, and it will automatically launch the instance when the instance goes down unexpectedly. Then the above mistakes can be linked together:<br>


Adding a DB2 daemon to the system failed because the hostname was incorrect. <br>


Okay, take a look. Hostname definition <br>


<p></p>


<p></p><pre name= "code" class= "plain" >[[email protected] instance]# hostname


Centos-0.msdomain</pre>, that's fine. <br>


See <p></p> again


<p></p><pre name= "code" class= "plain" >[[email protected] instance]# vi/etc/hosts


127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4


:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6</pre><br>


This place does not know why CentOS has been installed after not modified, modified. Revised content as follows <br>


<p></p>


<p></p><pre name= "code" class= "plain" >[[email protected] instance]# vi/etc/hosts


127.0.0.1 localhost centos.msdomain localhost4 localhost4.localdomain4


:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6</pre><br>


Save again to create an instance, normal <p></p>


<p><br>


</p>



Db2icrt creating an instance that indicates that the hostname is invalid


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.