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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 2nd, 2008, 11:13 AM
nschafer's Avatar
nschafer nschafer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 81 nschafer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 16 sec
Reputation Power: 5
Problem with Windows Client connecting to DB2 Server

I'll start by saying that I know very little about db2. I am proficient with MS-SQL, but not DB2.

I have a DB2 v9.1 server running on Linux (RHEL4). This server has been in operation since Aug. 07. I have a website that accesses data from this server. The website is written in ASP and is running on a Windows 2000 Server with SP4. Everything has been working fine since August.

Recently we had a major power problem in our office that caused the Windows System to be corrupted and we wound up formatting the system and re-installing everything. I re-installed windows, restored the web site files from a backup and installed the IBM DB2 Client (v9.1 Fix Pack 4a) I downloaded the client from here: http://www-1.ibm.com/support/docvie...uid=swg21255394

The problem I am running into is that the asp page is unable to connect to the db2 server and reports the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[IBM][CLI Driver] SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
/refportal/status1.asp, line 63

Just to be clear, the DB2 server has not been modified in any way and the connection string in the asp file has not been modified, so I cannot understand why I would have a user name/password issue unless there is some setup I have to do with the client that I have missed.

I contacted the company that originally setup our system. Their DB2 expert is no longer with them and has not yet been replaced, so they have been unable to help me.

This link shows screen shots of the install of the DB2 client on my web server: http://www.applicationgroup.com/test/db2install.htm

I have done no configuration of the db2 client beyond what is shown in those screen shots.

This is the connection string in use in the asp page (line 63 as specified in the error message):
conn.Open("Driver={IBM DB2 ODBC DRIVER};Database=MyDBName;Hostname=192.168.xx.xx;Port=50000;Protocol=TCPIP;Uid=xxxxxx;Pwd=xxxxxx;")

Thanks for any help,

Neal

Reply With Quote
  #2  
Old April 4th, 2008, 10:47 AM
nschafer's Avatar
nschafer nschafer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 81 nschafer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 16 sec
Reputation Power: 5
Problem Solved

I actually needed to create a user on my Windows Server with the same credentials used in the connection string. I don't know why this was required, but it did solve the problem.

Before doing this I was able to load the control Center and see the table names. I couldn't open the tables, but when I tried I noticed that it was stating that the user did not have rights to open the table and it was showing my Windows Login name. This gave me the idea of creating the user credentials in Windows to match the DB2 connection string I already had. I logged in as that user and was able to open the tables in the Control Center, so I tried the web site and that was working as well.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Problem with Windows Client connecting to DB2 Server


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


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





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