View db2 Port

Source: Internet
Author: User
Tags db2 port

1. Run db2 get dbm cfg | find "SVCENAME" in db2cmd"
2. Find the port number corresponding to the service name in the system configuration file.
Windows: View c: \ windows \ system32 \ drivers \ etc \ services
 
Aix: View/etc/services
 
As follows:
 
DB2_DB2 60000/tcp
DB2_DB2_1 60001/tcp
DB2_DB2_2 60002/tcp
Db2_db2 _end 60003/tcp
 
Db2c_DB2 50000/tcp
3. Run the netstat-an command to find the port of the TCP/IP service.
4. Modify the port number: directly modify the port number corresponding to the current service name in the services file.
For example, db2c_DB2 50000/tcp
Then restart the database to OK db2stop db2start.

Related Article

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.