Technote (FAQ)

Question

How communication ports and range are defined in /etc/services file in Linux/Unix DB2 partitioned installations?

Answer

①单分区:

When you create a DB2 instance with single partition, default port of 50000 is assigned for client to server communication.

# Default port

db2c_db2inst1         50000/tcp

②多分区:

But, a port range is required to enable the communication between the DB2 partitions using FCM (fast communication manager). So, use of port range depends on whether you use partitions or not while installing DB2.

# Default port

db2c_db2inst1         50000/tcp

# FCM ( fast communication manager ) port range

DB2_db2inst1          60000/tcp

DB2_db2inst1_1        60001/tcp

DB2_db2inst1_2        60002/tcp

DB2_db2inst1_END      60003/tcp

To enable communications between the servers in a partitioned database environment using /etc/services file, here are the basic steps to create entries in /etc/services file:

1. Log on to the primary computer (instance owning computer) as a user with root authority.

2. Create an instance.

3. View the default port range that has been reserved in the /etc/services file. In addition to the base configuration, the FCM ports should appear similar to the following:

# Default port

db2c_db2inst1         50000/tcp

# FCM ( fast communication manager ) port range

DB2_db2inst1          60000/tcp

DB2_db2inst1_1        60001/tcp

DB2_db2inst1_2        60002/tcp

DB2_db2inst1_END      60003/tcp

By default, the first port (50000) is reserved for client to server connection requests, and the first available four ports above 60000 are reserved for FCM communication. One port is for the instance-owning database partition server and three ports are for logical database partition servers that you might choose to add to the computer after installation is complete.

The port range must include a start and an END entry. Intermediate entries are optional. Explicitly including intermediate values can be useful for preventing other applications from using these ports, but these entries are not verified by the database manager.

Naming convention for the ports:

DB2® port entries use the following format:

DB2_instance_name_suffix  port_number/tcp  # comment

where:

instance_name is the name of the partitioned instance.

suffix is not used for the first FCM port. Intermediate entries are those between the lowest and highest port. If you include the intermediate entries between the first and ending FCM port, the suffix consists of an integer that you increment by one for each additional port. For example, the second port is numbered 1, and third is numbered 2, and so on to ensure uniqueness. The word END must be used as the suffix for the last entry.

port_number is the port number that you reserve for database partition server communications.

comment is an optional comment describing an entry.

mysql port range_Defining port and port-range in /etc/services file相关推荐

  1. Comware: Port Link-mode Bridge vs Port Link-mode Route

    Some HP L3 Switches Comware based, brings the concept of "switchports" as Bridge and Route ...

  2. 【mysql执行计划 const eq_ref ref range index all】

    mysql执行计划 const eq_ref ref range index all - man1s - 博客园

  3. Mysql启动报错解决方案:Failed to open log (file ‘./mysql-bin.000901‘, errno 2)

    Mysql启动报错解决方案:Failed to open log (file './mysql-bin.000901', errno 2) 参考文章: (1)Mysql启动报错解决方案:Failed ...

  4. Linux下MySQL起动报错The server quit without updating PID file

    MySQL起动报错The server quit without updating PID file (/usr/local/mysql/data/ 查看日志: 131206 23:10:21 mys ...

  5. MySQL无法启动报 Error: could not open single-table tablespace file ./mysql/innodb_table_sta

    MySQL无法启动报 Error: could not open single-table tablespace file ./mysql/innodb_table_sta 从错误日志可以看出来是in ...

  6. mysql执行脚本文件时总是显示failed to open file

    mysql执行脚本文件时总是显示failed to open file 这个问题把我折磨得心力交瘁,我试过了包括到不限于以下的语句: source D:/mysql8/test.sql source ...

  7. windows中端口号(port id)和port的区别,如何通过端口查看进程pid,如何通过pid查看程序,如何通过pid查看端口?

    一个进程有很多个端口号(对内),只有一个端口号(对外) 1.查看特定端口的使用情况:以80端口为例,输入命令" netstat -aon|findstr "8601" & ...

  8. Springboot的server.port和server.http.port

    需求 最近springboot项目为了安全启用了https,但是项目中还写了接口供其他程序调用,这个接口必须是http的.研究发现原来一个springboot项目是可以有一个http端口和一个http ...

  9. CRM_UI start port determination how is port number 44356 determined

最新文章

  1. Oracle中exp,imp的使用详解
  2. 2018 年度总结 —— 缘见
  3. Lucene全文检索过程
  4. 【LeetCode笔记】20.有效的括号(Java、栈) 21. 合并两个有序链表(Java)
  5. 基于MeanShift的目标跟踪算法及实现(转载)
  6. 麻省理工、微软为AI量身打造了一套leetcode编程题
  7. 打印pdf就一页_我就是死都不想在mac上装第三方pdf软件
  8. 假如给Go语言加上注解,程序会变怎样?
  9. 成立仅一年的天猫好房,凭什么让55万人排队领钱?
  10. Python Logging Formatter
  11. sprintf 详解
  12. 关于hibernate插入数据时的乱码问题
  13. iOS -一些常用的方法
  14. 在拼多多上班,是一种什么样的体验?我心态崩了呀!
  15. 提升Windows xp系统运行速度的九大技巧
  16. python对文件进行zip和rar格式的压缩和解压缩(亲测,可用)
  17. #原创分享# DDD领域建模---老调新弹之【实体】
  18. 群发邮件软件和邮件群发工具哪个好?如何群发邮件不进入垃圾箱
  19. OTU/ASV/Feature tabel 表格 过滤 相对丰度 微生物
  20. 推荐三款实用的录音转文字软件给你

热门文章

  1. PAT-1124. Raffle for Weibo Followers (20)
  2. laravel框架总结(十一) -- 集合
  3. Android Retrofit实现原理分析
  4. 解决bash: mysql: command not found 的方法
  5. C# 4.0 新增特性
  6. leetcode 110. 平衡二叉树
  7. 纯真IP地址数据库qqwry.dat解析
  8. php中mysqli_query,在PHP中如何使用mysqli_query()函数
  9. 服务器如何运行java文件_在linux服务器上运行java文件
  10. python view函数_Python爬虫实例(二)——爬取新馆疫情每日新增人数