Change the DB2 port number under Linux

Source: Internet
Author: User
Tags db2 db2 port

test with Sqoop, found that the port number 50000 is occupied, so changed the DB2 port number.


The first step is to log in to the instance user of the DB2 database, and here I am db2inst1

DB2 Get dbm Cfg|grep SVCENAME

You can see what the name of the corresponding Svcename is.


There is an easy problem here. According to some people on the Internet, will change the svcename to the port number, that is wrong. Be sure to unify the name and the name in the services.


Step two, go back to the root user,

vim/etc/services, find the port number corresponding to the name of the corresponding svcename.

I'm here to edit directly into 50001

The third step, first close the database, then open on it.

Db2stop

Db2start


In fact, there is no complicated step, just a lot of people write the comparison of the chaos, not explained, so pits some.


Change the DB2 port number under Linux

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.