473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Perl DBD::DB2 connect error

I'm attempting to connect to a DB2 database using DBD::DB2 running on
a Linux device. I'm getting the following error:

** connect: Unable to get database handle: DBI
connect('p88flaq','ip88flaq',...) failed: [IBM][CLI Driver] SQL1042C
An unexpected system error occurred. SQLSTATE=58004
at /usr/lib/perl5/site_perl/5.8.5/Oasis2/DBConn.pm line 2155

I've installed the DB2 client for the user in question:

../db2icrt -a SERVER_ENCRYPT -s client -w32 orbit

The user CAN connect using the db2 command line interface.

I know (think!) that I need to install the 'Developers Toolkit' but I
can't find any reference as to how to install this.

I have another account on the same device that CAN connect usiing
DBD::DB2 but I can't remember what I did to get this user working.
The DB2 DBA that we had up and quit and didn't leave behind many
notes :-(

Any help would be appreciated!

Aug 9 '07 #1
3 2695
on the two accounts, type the following commands and see if they are
pointing to two different installations of db2:

db2level

also check if the perl and db2 dbi module are installed on the system
as a whole or is custom for the user which is capable of running it.

regards,
dotyet

On Aug 9, 3:54 pm, roxrox_1...@yahoo.com wrote:
I'm attempting to connect to a DB2 database using DBD::DB2 running on
a Linux device. I'm getting the following error:

** connect: Unable to get database handle: DBI
connect('p88flaq','ip88flaq',...) failed: [IBM][CLI Driver] SQL1042C
An unexpected system error occurred. SQLSTATE=58004
at /usr/lib/perl5/site_perl/5.8.5/Oasis2/DBConn.pm line 2155

I've installed the DB2 client for the user in question:

./db2icrt -a SERVER_ENCRYPT -s client -w32 orbit

The user CAN connect using the db2 command line interface.

I know (think!) that I need to install the 'Developers Toolkit' but I
can't find any reference as to how to install this.

I have another account on the same device that CAN connect usiing
DBD::DB2 but I can't remember what I did to get this user working.
The DB2 DBA that we had up and quit and didn't leave behind many
notes :-(

Any help would be appreciated!

Aug 9 '07 #2
On Aug 9, 5:12 pm, dotyet <dot...@yahoo.comwrote:
on the two accounts, type the following commands and see if they are
pointing to two different installations of db2:

db2level

also check if the perl and db2 dbi module are installed on the system
as a whole or is custom for the user which is capable of running it.

regards,
dotyet

On Aug 9, 3:54 pm, roxrox_1...@yahoo.com wrote:
I'm attempting to connect to a DB2 database using DBD::DB2 running on
a Linux device. I'm getting the following error:
** connect: Unable to get database handle: DBI
connect('p88flaq','ip88flaq',...) failed: [IBM][CLI Driver] SQL1042C
An unexpected system error occurred. SQLSTATE=58004
at /usr/lib/perl5/site_perl/5.8.5/Oasis2/DBConn.pm line 2155
I've installed the DB2 client for the user in question:
./db2icrt -a SERVER_ENCRYPT -s client -w32 orbit
The user CAN connect using the db2 command line interface.
I know (think!) that I need to install the 'Developers Toolkit' but I
can't find any reference as to how to install this.
I have another account on the same device that CAN connect usiing
DBD::DB2 but I can't remember what I did to get this user working.
The DB2 DBA that we had up and quit and didn't leave behind many
notes :-(
Any help would be appreciated!
Thanks,

The perl is installed so that everyone has access.

The db2level shows that the user that 'works' has 64 bit vs 32 bit for
the user that doesn't 'work'. I'll see if I can fix that.

[root@mdsxocd1 ~]# su - orbit
[orbit@mdsxocd1 ~]$ db2level
DB21085I Instance "orbit" uses "64" bits and DB2 code release
"SQL08026" with
level identifier "03070106".
Informational tokens are "DB2 v8.1.3.120", "s060801", "MI00167", and
FixPak
"13".
Product is installed at "/opt/IBM/db2/V8.1".

[orbit@mdsxocd1 ~]$
[root@mdsxocd1 ~]# su - appit
[appit@mdsxocd1 ~]$ db2level
DB21085I Instance "appit" uses "32" bits and DB2 code release
"SQL08026" with
level identifier "03070106".
Informational tokens are "DB2 v8.1.3.120", "s060801", "MI00167", and
FixPak
"13".
Product is installed at "/opt/IBM/db2/V8.1".

[appit@mdsxocd1 ~]$

Aug 10 '07 #3
On Aug 10, 9:14 am, roxrox_1...@yahoo.com wrote:
On Aug 9, 5:12 pm, dotyet <dot...@yahoo.comwrote:
on the two accounts, type the following commands and see if they are
pointing to two different installations of db2:
db2level
also check if the perl and db2 dbi module are installed on the system
as a whole or is custom for the user which is capable of running it.
regards,
dotyet
On Aug 9, 3:54 pm, roxrox_1...@yahoo.com wrote:
I'm attempting to connect to a DB2 database using DBD::DB2 running on
a Linux device. I'm getting the following error:
** connect: Unable to get database handle: DBI
connect('p88flaq','ip88flaq',...) failed: [IBM][CLI Driver] SQL1042C
An unexpected system error occurred. SQLSTATE=58004
at /usr/lib/perl5/site_perl/5.8.5/Oasis2/DBConn.pm line 2155
I've installed the DB2 client for the user in question:
./db2icrt -a SERVER_ENCRYPT -s client -w32 orbit
The user CAN connect using the db2 command line interface.
I know (think!) that I need to install the 'Developers Toolkit' but I
can't find any reference as to how to install this.
I have another account on the same device that CAN connect usiing
DBD::DB2 but I can't remember what I did to get this user working.
The DB2 DBA that we had up and quit and didn't leave behind many
notes :-(
Any help would be appreciated!

Thanks,

The perl is installed so that everyone has access.

The db2level shows that the user that 'works' has 64 bit vs 32 bit for
the user that doesn't 'work'. I'll see if I can fix that.

[root@mdsxocd1 ~]# su - orbit
[orbit@mdsxocd1 ~]$ db2level
DB21085I Instance "orbit" uses "64" bits and DB2 code release
"SQL08026" with
level identifier "03070106".
Informational tokens are "DB2 v8.1.3.120", "s060801", "MI00167", and
FixPak
"13".
Product is installed at "/opt/IBM/db2/V8.1".

[orbit@mdsxocd1 ~]$
[root@mdsxocd1 ~]# su - appit
[appit@mdsxocd1 ~]$ db2level
DB21085I Instance "appit" uses "32" bits and DB2 code release
"SQL08026" with
level identifier "03070106".
Informational tokens are "DB2 v8.1.3.120", "s060801", "MI00167", and
FixPak
"13".
Product is installed at "/opt/IBM/db2/V8.1".

[appit@mdsxocd1 ~]$
BINGO!

I reinstalled the client with the following command:

../opt/IBM/db2/V8.1/instance/db2icrt -a SERVER_ENCRYPT -s client -w 64
appit

After I registered the database I could connect.

Many thanks!!!

Aug 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Philip Nelson | last post by:
Noticed today that there have been two new versions of the DB2 driver released over the last week.   This is the first time IBM has released an update since October 2001, so to give us...
1
by: Larry | last post by:
I'm having problems getting any CLI trace info from my Perl script (which uses DBI and DBD::DB2). I did: db2 update cli cfg for section common using trace 1 db2 update cli cfg for section...
2
by: bastb | last post by:
Hi, We've been using the perl DBD::DB2 driver on Perl version 5.8.0 (aix_thread_multi) for a project we're working on without any problems until now. We've been using DBD::DB2 version 0.78 on...
4
by: Larry | last post by:
I have a Perl script using DBD::DB2, that runs during system startup on a Solaris system. The script is working fine during startup on many machines, except on one machine it fails complaining...
2
by: Tomas | last post by:
Hey all, I'm trying to parse the output from the get_dbsize_info procedure with a Perl script, using the DBI and the DB2 DBD. Below is the relevant part of the code: my $dbsql = "call...
2
by: Evie | last post by:
I'm attempting to connect to a DB2 database using perl DBD::DB2. I'm consistently getting the following error: SQL1042C An unexpected system error occurred. SQLSTATE=58004 What I have...
1
by: lucybridges | last post by:
Can anyone shed some light on what is causing this, please? Using Perl 5.8.5 (64 bit) on RH enterprise Linux AS release 4 (2.6.9-22.ELsmp) I'm receiving the following error: DBI...
1
by: bijoej | last post by:
Can anybody tell me about the following error: "String Not Found" I'm new to Perl so please help me out... Thanks in Advance... Regards Bij
1
by: rajpar | last post by:
Environment: Solaris (client + server) db2 version 7.2 latest fixpak (DB2 v7.1.0.111", "s050516" and "U803330") Compiler: gcc Here is my SP code executed on the client: CREATE PROCEDURE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.