1.背景
打算在Suse15上安装部署DB2-11,在实例化过程中报错
DBI1702E The specified service name or port number conflicts with
existing values in the TCP/IP services file.
localhost:/opt/ibm/db2/V11.1/instance # ./db2icrt -p 50000 -u db2fenc1 db2inst1
DBI1446I The db2icrt command is running.
DB2 installation is being initialized.
DBI1702E The specified service name or port number conflicts with
existing values in the TCP/IP services file.
Explanation:
The service name or port number conflicts with existing values in the
services file. The service name might already be used with a different
port number, or the port number might already be used with a different
service name.
User response:
Specify a service name and port number that does not conflict with
existing entries in the services file.
A major error occurred during the execution that caused this program to
terminate prematurely. If the problem persists, contact your technical service
representative.
For more information see the DB2 installation log at "/tmp/db2icrt.log.799".
DBI1264E This program failed. Errors encountered during execution were
written to the installation log file. Program name:
db2icrt. Log file name: /tmp/db2icrt.log.799.
Explanation:
This message is returned when some processes and operations have failed.
Detailed information about the error was written to the log file.
User response:
Contact IBM support to get assistance in resolving this issue. Keep the
log file intact as this file is an important reference for IBM support.
Related information:
Contacting IBM Software Support
2.解决方案
注释掉/etc/services关于50000端口的配置
3.重新执行命令成功
localhost:/opt/ibm/db2/V11.1/instance # ./db2icrt -p 50000 -u db2fenc1 db2inst1
DBI1446I The db2icrt command is running.
DB2 installation is being initialized.
Total number of tasks to be performed: 4
Total estimated time for all tasks to be performed: 309 second(s)
Task #1 start
Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #1 end
Task #2 start
Description: Initializing instance list
Estimated time 5 second(s)
Task #2 end
Task #3 start
Description: Configuring DB2 instances
Estimated time 300 second(s)
Task #3 end
Task #4 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #4 end
The execution completed successfully.
For more information see the DB2 installation log at "/tmp/db2icrt.log.12807".
DBI1070I Program db2icrt completed successfully.
参考: