DB2 Create instance the host name "Fordatabase" is invalid. Specify a valid host name.

Source: Internet
Author: User
Tags 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:

[plain] view plain copy

  1. [Email protected] instance]#/db2icrt-u db2inst1 db2inst1

  2. The host name "Centos-0.msdomain" is invalid. Specify a valid host name.

  3. DBI1922N the host name is not valid.

  4. Explanation:

  5. The TCP/IP host name parameter is not a valid or does not exist.

  6. User Response:

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

  8. is used, ensure the domain name server machine is active. Issue the

  9. command again using the correct TCP/IP host name.

  10. Dbi1079i Output is saved in the log file/tmp/db2icrt.log.2816.

  11. Explanation:

  12. All processed and failed operations has been saved into the this log file.

  13. User Response:

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

  15. Support Reference.

  16. /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

[plain] view plain copy

  1. ${db2dir?} /instance/db2isrv-addfcm-i ${instname?} ${db2isrvopts?}

  2. If [$?-eq 3]; Then

  3. Db2isrv

  4. ${db2dir?} /instance/db2isrv-addfcm-i ${instname?} ${db2isrvopts?}

  5. If [$?-eq 3]; Then

  6. Display_msg ${db2cat?} 922 \

  7. ' dbi1922n the host name is not valid.\n ' <pre name= ' code ' class= ' Plain ' > Stop_prog 1</pre> fi<p& Gt;</p>

  8. <pre></pre>

  9. <br>

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

  11. 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>

  12. 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>

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

  14. Okay, take a look. Hostname definition <br>

  15. <p></p>

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

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

  18. See <p></p> again

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

  20. localhost localhost.localdomain localhost4 localhost4.localdomain4

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

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

  23. <p></p>

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

  25. localhost centos.msdomain localhost4 localhost4.localdomain4

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

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

  28. <p><br>

  29. </p>

This article is from the "Dot Drop" blog, please be sure to keep this source http://10718270.blog.51cto.com/10708270/1875631

DB2 Create instance the host name "Fordatabase" is invalid. Specify a valid host name.

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.