Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing DB2 with DBD::DB2 on host

Status
Not open for further replies.

mikrom

Programmer
Joined
Mar 27, 2002
Messages
3,016
Location
SK
Hello,
From my PC I need to access IBM DB2/UDB which is located on the host - the host is IBM iSeries (AS/400).
I can access it using ADO as I mentioned in my post here
but now I want to use DBI/DBD which is the standard in Perl.

I downloaded and installed DBD::DB2. But when I try in my program
Code:
use DBD::DB2;
I get an error "This application has failed to start because DB2CLI.dll was not found."

Truly, there is not such a dll on my PC. I assume that this dll will be installed, when I would install DB2 on my PC. But I don't need DB2 on my PC, I need to access it on a remote AS/400.

My questions:

1) Is it not possible to use for this task DBD::DB2?

2) Is DBD::DB2 usable only whe my Perl-program would be on the same computer as my DB2 database?

3) Should I use any other DBD for example DBD::ODBC fo this task?

I'm newbie in Perl, please help me.
 
DB2CLI.dll looks like the DB2 client dll. You should be able to install the client without the rest of DB2. Client code is usually free, too.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
Yes I have a client - IBM iSeries Access, but there is not DB2CLI.dll thereby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top