DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 2nd, 2003, 09:35 AM
JAGANNATHAN RAM JAGANNATHAN RAM is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 JAGANNATHAN RAM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Odbc.net Error When Connecting To Db2

I am using ODBC.Net to connect to DB2 and I get this error randomly.

"ERROR [08001] [IBM][CLI Driver] 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 specifi
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"


Any help on this will be appreciated.

Thanks
Jagan.

Reply With Quote
  #2  
Old October 2nd, 2003, 10:30 AM
emladris emladris is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: SC
Posts: 26 emladris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink More details, and I can probably help you out:

Give me some more details:

What are you connecting from (language) and what OS are you connecting to? Is it DB2 on WIN or AS400? What data driver are you using? (Client that connects you to the DB2 Library?)

Also, are you trying to use ADO in .NET? or are you trying to use ADO.NET?

Thanks!

Reply With Quote
  #3  
Old October 2nd, 2003, 10:52 AM
JAGANNATHAN RAM JAGANNATHAN RAM is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 JAGANNATHAN RAM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am using Windows 2000 Professional with IIS 5.0. Using ADO.net with ODBC.Net. Its DB2 on Mainframe UDB and I connect using CAE

Reply With Quote
  #4  
Old October 2nd, 2003, 02:42 PM
emladris emladris is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: SC
Posts: 26 emladris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink Ok, look here for the error:

The error is likely due to a connection pool on the mainframe that is running over. On a mainframe, each connection is maintained seperately. And ADO.NET uses a new connection for each and every request.

The amount of connections available to the pool are limited by the MAINFRAME. SO... either have the admin guys watch the pool limit and either make the old ones die faster or add more available connections to the pool.....

OR...

You are not setting your connections to NOTHING just after you are done using it.

Dim OLEDBCONN as blah blah blah.....

OdedbConn = NOTHING

This will kill the connection as well... Other wise the mainframe has to expire it itself.

Hope this helps!

Reply With Quote
  #5  
Old October 2nd, 2003, 04:08 PM
JAGANNATHAN RAM JAGANNATHAN RAM is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 JAGANNATHAN RAM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am doing a ODBCConnection.Close() after running the query. I will try to get more info on the connection pool on the mainframe.

Thanks for your reply.
Jagan.

Reply With Quote
  #6  
Old March 9th, 2004, 09:34 AM
palem2004 palem2004 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 palem2004 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi
can you tell me which driver and gateway i have to use to connect to db2. i am using windows xp professional, c#, odbc.net. can you tell me where i will get more info

thanks
sri

Reply With Quote
  #7  
Old March 30th, 2004, 10:59 PM
PUNEETBANGALORE PUNEETBANGALORE is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 PUNEETBANGALORE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Same Problem I am Facing

I AM EVEN FACING THE SAME PROBLEM. I HOPE YOU MIGHT HAVE GOT THE WAY TO CORRECT IT BY NOW.
I NEED TO CONNECT TO MAINFRAME DB2 FROM A MICROSOFT 2000 PROFESSIONAL OS USING VB.NET AND ODBC WITHOUT USING ANY THIRD PARTY TOOL.
KINDLY CONVEY IT TO ME AT MY EMAIL ID URL


THANKS




Quote:
Originally Posted by JAGANNATHAN RAM
I am using ODBC.Net to connect to DB2 and I get this error randomly.

"ERROR [08001] [IBM][CLI Driver] 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 specifi
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"


Any help on this will be appreciated.

Thanks
Jagan.

Last edited by PUNEETBANGALORE : March 30th, 2004 at 11:04 PM. Reason: MORE DETAILS

Reply With Quote
  #8  
Old April 29th, 2004, 05:36 PM
aantony aantony is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 aantony User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Db2 Disconnect Issue Solved

WE HAVE THE SAME ISSUE BUT HAVE FOUND A WORKAROUND UNTIL IBM / MICROSOFT CLEARS THE ISSUE. IT APPEARS THAT MICROSOFT HAS A FIX FOR ODBC.NET DRIVERS TO ADDRESS THE INVALID CONNECTION POOL. ON DB2 SIDE YOU WILL NEED TO INSTALL A NEW FIXPAK5 GATEWAY AND CLIENT.

HOWEVER HERE IS THE CODE THAT WE IMPLEMENTED TO SOLVE THE DB2 DRIVER DISCONNECT ISSUE.

catch (Exception ex)
{
IBM.Data.DB2.DB2ConnPool.PurgePool();
throw new Exception("Error occurred calling 'DB2()'", ex);
}


GOOD LUCK..

LET ME KNOW IF THIS WORKS FOR YOU.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Odbc.net Error When Connecting To Db2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway