Solved [IBM][JDBC Driver] CLI0616E  Error opening socket. SQLSTATE=08S01

Posted on 2006-04-26
Last Modified: 2009-12-16
i want to connect with remote DB2 and have following error [IBM][JDBC Driver] CLI0616E  Error opening socket. SQLSTATE=08S01

code using for connection
            db_name = "ARBINDEX";
            sc_name = "NULLID";
            user_name = "DB2ADMIN";
            pass = "oracle123";

            con = DriverManager.getConnection("jdbc:db2://"+this.serverIp+":"+this.port+"/"+this.db_name,this.user_name,this.pass);

Question by:MuhammadAdil
    LVL 23

    Expert Comment

    Are you sure with the port address???

    check if it gets listed if you use netstat -an command in the command line.

    or check if your port address is 6789.

    else if every thing seems correct try connecting to the sample database provided by IBM itself.

    Thank You.
    LVL 30

    Accepted Solution

    Also check if the server has been firewalled and the port is no longer open.
    LVL 14

    Expert Comment


    according to this site

    1) You may need to start the DB2 JDBC Applet Server using db2jstrt <port number>
    2) You may have specified a wrong port number, or an incorrect hostname/IP Address
    LVL 30

    Expert Comment

    Any reason for the B grade?

    Expert Comment

    try with driver. Its comes with db2jcc.jar

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now