Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At home, I've installed DB2 Express on my Win7 notebook, as a part of the IBM WebSphere installation. At first it was working, but then I restarted Windows and moved to the office, and since then I am unable to connect to the db2 instance using TCP/IP. DB2 Control Center works with the db locally without problems, though.

It turns out that db2 now doesn't start the TCP/IP listener, as there's no process listening on port 50000. Upon start, db2start displays the following message:

SQL5043N  Support for one or more communications protocols failed to start 
successfully. However, core database manager functionality started successfully.

When I try to connect to the DB using TCP/IP, I get the following error:

D:\Programs\IBM\WebSphere\AppServer\db2\BIN>db2 connect to QECMNDB
SQL30081N  A communication error has been detected. Communication protocol
being used: "TCP/IP".  Communication API being used: "SOCKETS".  Location
where the error was detected: "".  Communication function
detecting the error: "connect".  Protocol specific error code(s): "10061", "*",
"*".  SQLSTATE=08001

The IP address changes according to which network (home/none/office) I am connected to. When I am disconnected or at office, the IP is one of my virtual adapters (VMware or VirtualBox). (!?!)

Further info:

The database is DB2 Express v9.7 in WebSphere 7.5.

>db2set -all
[e] DB2PATH=D:\Programs\IBM\WebSphere\AppServer\db2
[g] DB2PATH=D:\Programs\IBM\WebSphere\AppServer\db2

The communication service name db2c_BPMINST corresponds to the following line in C:\Windows\system32\drivers\etc\services:

db2c_BPMINST    50000/tcp

In db2diag.log, there is:

2013-10-10- I1470074F426       LEVEL: Event
PID     : 7648                 TID  : 6648        PROC : db2syscs.exe
INSTANCE: BPMINST              NODE : 000
EDUID   : 6648                 EDUNAME: db2sysc
FUNCTION: DB2 UDB, fast comm manager, sqlkf_init_allocate_shared, probe:500
START   : FCM infrastructure started
FCM running in non-shared mode; FCM parallelism degree: 1; comm protocol: TCP/IPv4

2013-10-10- I1470502F365       LEVEL: Error
PID     : 7648                 TID  : 6648        PROC : db2syscs.exe
INSTANCE: BPMINST              NODE : 000
EDUID   : 6648                 EDUNAME: db2sysc
FUNCTION: DB2 UDB, common communication, sqlcctcpconnmgr, probe:47
MESSAGE : DIA3202C The TCP/IP call "bind" returned an errno="10013".

So what is wrong, why cannot my DB2 Express start the TCP/IP listener?


migration rejected from Jun 10 at 12:56

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by mustaccio, Max Vernon, RolandoMySQLDBA, Phil, Shanky Jun 10 at 12:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Too localized - this could be because your code has a typo, basic error, or is not relevant to most of our audience. Consider revising your question so that it appeals to a broader audience. As it stands, the question is unlikely to help other users (regarding typo questions, see this meta question for background)." – mustaccio, Max Vernon, RolandoMySQLDBA, Phil, Shanky
If this question can be reworded to fit the rules in the help center, please edit the question.

Looks like there may be something else listening on port 50000, or it may be Windows Firewall preventing DB2 from using that port. The internets say that WinSock error 10013 means "permission denied" – mustaccio Oct 10 '13 at 22:30
Windows Task Manager -> Resource Monitor shows no other process blocking port 50000. I have also tried to turn off the firewall, but db2start displays still the same error. – Xarx Oct 11 '13 at 8:28