Solved

How to Properly Configure ODBC DSN for DB2 access on  Windows 2003 x64 using IIS

Posted on 2009-04-03
2
2,238 Views
Last Modified: 2013-11-29
Trying to configure the ODBC DSN (using IBM DB2 ODBC Driver v 9.05.00.808) to connect an IIS Crystal Reports report to a DB2 database. The server is a Windows 2003 Standard x64 with IIS 6.0 installed fully patched. DB2 is v8.1 (or 8.5) running on Linux.

We configure the DSN and test it and it says it Connected Successfully (both as x32 and x64 bit) BUT we get the following error in the Application Log:

The description for Event ID ( 4 ) in Source ( DB2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:
2009-04-03-07.42.26.186000   Instance:DB2   Node:000
PID:3316(odbcad32.exe)   TID:3604   Appid:none
RAS/PD component  pdLogInternal Probe:20

ADM14000E  DB2 is unable to open diagnostic log file
"C:\PROGRA~1\IBM\IBMDAT~1\db2\db2diag.log".  Run the command "db2diag -rc %s"
to find out more.

We have been unalbe to locate this "db2diag" program anywhere so this is all we get.

Since the test ran fine in the ODBC Administrator, we tried running our reporting tool in IIS and get the same error message again AND it cause a lock up in IIS where the application pool has to be restarted after you KILL the PID for that service.

This is only my second time using ODBC stuff but first time I'm having to connect to a DB2 database. Any assistance in either websites, online books, or just thoughts would be appreciated.  OH please don't send me to IBMs site either unless you know its 100% workable. I've spent the last 2 days combing the beast and I've pretty much given up on them.
0
Comment
Question by:dwbutcher
2 Comments
 

Author Comment

by:dwbutcher
ID: 24064623
We've found the fix. It was two problems. First, the major one was that fact that the DB2 driver only wanted to use the 32 bit driver. The servers are configured for 64 bit only. Reconfigured the IIS to support 32 bit apps to run on the 64 bit IIS.
Second problem was an issue with the DB2 driver. The developer and I had the same version loaded but when you compared the db2cli.dll files, They were not the same size or date. Once I loaded the same driver the and configured it, the app worked perfectly.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 24246344
dwbutcher,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Show hidden user account 7 32
Mouse freeze on PC 10 52
Cant protect clients on DPM 2012 R2 2 28
Electric Violin to Computer 4 15
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

746 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

12 Experts available now in Live!

Get 1:1 Help Now