How to view the port number occupied by DB2 in Linux or Unix

Source: Internet
Author: User
Article Title: how to view the port number occupied by DB2 in Linux or Unix. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

# Assume that you have started the database manager with db2start and configured the communication mode as TCP/IP.

# Switch to the db2inst1 user su-db2inst1

# Query TCP/IP Service name db2 get dbm cfg | grep-I service

# Use the output of the previous command (for example, db2c_db2inst1) to find the corresponding port number in the/etc/services file grep db2c_db2inst1/etc/services

# This is what you will see from the output of the previous sentence db2c_db2inst1 50000/tcp

#50000 indicates the port number occupied by the db2 database.

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/huoyin/archive/2008/07/03/2609612.aspx

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.