Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9013481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:16:44+00:00 2026-06-16T03:16:44+00:00

I keep getting the following error message when I try to reun a query

  • 0

I keep getting the following error message when I try to reun a query against IBM DB2 9.1 version.

CLI0108E Communication link failure. SQLSTATE=40003

The query is updateinglarge set of recordss(over 50000 records).

  • I did try changing the Timeout to ‘0’ for the query execution

    But that did not help.

Also, my db2cli.ini file does not have any timeout details. Should I add anything there??

Please advise.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:16:45+00:00Added an answer on June 16, 2026 at 3:16 am

    CLI0108E simply means the connection was broken. From the official IBM documentation of this error code:

    CLI0108E Communication link failure.

    Explanation The connection between the driver and the data source failed during execution of this function.

    User response Establish a new connection.


    The SQLState (40003) indicates that the DB server can’t tell whether or not the statement completed successfully. (Documentation of SQLState messages and their meaning can be found here: http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.msg.doc%2Fdoc%2Fr0sttmsg.htm

    values in this range:

    • 40001 Deadlock or timeout with automatic rollback occurred.
    • 40003 The statement completion is unknown.
    • 40504 A system error has caused the unit of work to be rolled back.
    • 40506 The current transaction was rolled back because of an SQL error.
    • 40507 The current transaction was rolled back as a result of a failure creating an index.

    CLI0108E could have any number of causes: Issues in the network, the client or server closing the connection due to a timeout, someone kicking a cable in the computer room, you name it. I’ve even seen is in our environment where a virtual server running on a particular VM host got this error because there was a problem with the virtual NIC card, and it was fixed by reinstalling the driver. The list of possible causes is surprisingly large, but a good Network Admin should be able to help. (Monitoring packets with a sniffer is a good way to track down the source when all else fails.)

    If you can, it might not hurt to refactor the code to upload smaller sets. Say you have a 10,000 records, try uploading a thousand at once, ten times to see if that helps.

    Another approach I used (once) in a situation where the server was completely unreliable was to just try inserting one record at a time.

    pseudo-code: (Assuming a connection object named “connection” and a command object named “cmd” that uses that connection…)

    connection.Open()
    
    for each record
       try
          cmd.CommandText  ="whatever changes need to be made"
          cmd.Execute()
       catch(Exception ex)
          if( the exception is a communication link failure)
             connection.Open()
             cmd.Execute()
           else
              handle different errors accordingly
           end if
      end try
    
    next
    

    But that approach has performance issues, is messy, and still could fail of the attempt to reopen the connection fails. Even though I’ve used it in a pinch, I don’t recommend it long-term. (I got rid of that approach once the original issue was fixed.) You’re far better off trying to track down the root cause of the broken connections.

    In your case, it is possible that the underlying cause may just be that you’re trying to upload too much data at once. I doubt it, but it’s possible. Refactoring the code to send the data in smaller chunks would definitely by my first choice were I in your shoes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting the following error message ERROR 1064 (42000): You have an error
What is wrong with the statement below? I keep getting the following error message....
Following the RailsTutorial, I keep getting this error message (one of four actually) when
Following the RailsTutorial, I keep getting this error message (one of four actually) when
I keep getting the following error message when I run my code in debug.
I keep getting the following error message: Microsoft JScript runtime error: '$' is undefined
I keep getting the following error message when trying to access the personal website
I keep getting the following error message when trying to UPDATE one of my
I keep getting the following error message at compile time: The name 'Message' does
I keep on getting the following error every time i try to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.