visitor statistics Exception java.net.ConnectException: Error opening socket to server localhost/127.0.0.1 on port 50,000 | Dimas A Lasama

This error getting when execute clpplus from client.

[db2inst1@devel ~]$ clpplus  db2inst1@localhost:50000/SAMPLE
Enter password:

[jcc][t4][2043][11550][3.57.82] Exception java.net.ConnectException: Error opening socket to server localhost/127.0.0.1 on port 50,000 with message: Connection refused. ERRORCODE=-4499, SQLSTATE=08001

Solution :

1. Change or Add port

vi /etc/service
db2c_db2inst1          50001/tcp    # DB2 connections for db2inst1
2. Restart Network

/etc/init.d/network restart

3. type db2 update dbm cfg  using SVCENAME 50001

4. db2 force application all

5. db2start

Share →

One Response to Exception java.net.ConnectException: Error opening socket to server localhost/127.0.0.1 on port 50,000

  1. surfia says:

    please update your blog.
    add the tutorial more.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>