DataStage 7.5.1 vs. DB2 UDB 8.2 in 64bit-mode

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi And Welcome Aboard :),
DS is still 32Bit application (except Itanium processors on HP which has 64Bit version), therefor in order to have it interact with 64Bit DB you need a 32Bit client to connect to your DB.
Usually there is a version for 32Bit or one that supports both 64Bit and 32Bit applications.
You'll have to check if one exists for your configuration.

You might want to check future releases of 64Bit DS application availability options with your support.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Gazelle
Premium Member
Premium Member
Posts: 108
Joined: Mon Nov 24, 2003 11:36 pm
Location: Australia (Melbourne)

Post by Gazelle »

Our issue goes a little deeper...

Our situation:
- Upgrading to a 64-bit DB2 database and 64-bit DB2 client (but the directories for 32-bit are also installed)
- AIX 5.2 operating system
- Datastage PX 7.5

We have datastage jobs that:
- read and write to DB2 tables
- call unix scripts that use DB2 CLI command line statements (eg. "db2 connect to zzz").

The problem:
- We can get Datastage working with DB2 by changing the LIBPATH to point to the 32-bit library. We also change the PATH to use the 32-bit bin. However, the "db2 connect to" statement times out before it connects.
It seems like we cannot have a situation that allows us to use Datastage AND use the CLI.

Options we're considering:
- Write a "wrapper" for the unix scripts called by Datastage, to change the PATH and LIBPATH to point to the 64-bit DB2 directories. It's more of a kludge than an elegant solution. It also worries me that by "tricking" the system to use 32-bit, things may fall in a heap if there are any unexpected 64-bit function calls.
- Install another DB2 instance that is 32-bit (to be used by Datastage), and remotely use the 64-bit instance, which requires some fiddling with the unix scripts and database binding, and complicates the configuration.

Has anyone got a solution to this issue, or can they suggest other options?
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

We are using DB2 V8.2 64-bit (on AIX 5.2 64-bit), and DataStage EE 7.5. I know we ran into all sorts of issues when we converted, but I'll need to get back to you on what they were.

However, and most importantly, we did get it working with no wierd work arounds. No wrappers needed.

Brad.
gpatton
Premium Member
Premium Member
Posts: 47
Joined: Mon Jan 05, 2004 8:21 am

Post by gpatton »

Gazelle


Is the DB2 database on the same machine as DataStage or is it on a different machine?
Gazelle
Premium Member
Premium Member
Posts: 108
Joined: Mon Nov 24, 2003 11:36 pm
Location: Australia (Melbourne)

Post by Gazelle »

Currently the database is on the same server as Datastage, ie. local.

Another 32-bit application (that uses the DB2 client) has problems accessing the 64-bit database, so it sounds like it's a DB2 issue. We have referred it to our friendly DBA's to also seek a solution. I'll keep you posted.
Gazelle
Premium Member
Premium Member
Posts: 108
Joined: Mon Nov 24, 2003 11:36 pm
Location: Australia (Melbourne)

Post by Gazelle »

The DB2 guys suggested:
- Installing a 32-bit DB2 instance, and remotely use the 64-bit instance.

We didn't really want to do that, so for now we've gone with the "kludge" in the called unix script that changes the LIBPATH and PATH to point to the 64-bit directories, just prior to running the "db2" command.
dwblore
Charter Member
Charter Member
Posts: 40
Joined: Tue Mar 28, 2006 12:02 am

db2 connection error when pre-job subroutine script

Post by dwblore »

Gazelle wrote:The DB2 guys suggested:
- Installing a 32-bit DB2 instance, and remotely use the 64-bit instance.

We didn't really want to do that, so for now we've gone with the "kludge" in the called unix script that changes the LIBPATH and PATH to point to the 64-bit directories, just prior to running the "db2" command.
Hi i'm getting the similar kind of error , when connecting to DB2 64-bit instance.
Currently the LD_LIBRARY_PATH has this value which points to 64 bit lib.
/IBMdb2/home/db2rtcl/sqllib/lib64:/opt/IBMdb2/V8.1/lib64

But should the PATH variable also needs a change ? And if could you specify them also ?

Thanks !
Post Reply