How do we set the DB2DIR variable?

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
Salegueule
Participant
Posts: 35
Joined: Fri May 21, 2004 4:22 pm

How do we set the DB2DIR variable?

Post by Salegueule »

Having connectivity problem with DB2 after migrating to V9. In Director I see that we are still poinitng to DB2 V8. The DB2DIR variable do not seems to be iclude in the DS Administrator Environment panels.

Curently we have DB2DIR=/usr/opt/db2_08_01

Where do we set this variable? Besides the path ,does any other variable needs to be change after a DB2 upgrade?

Thanks.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Have you checked the "dsenv" file, it is set there or it calls a DB2 script which might set it.
dunquach
Participant
Posts: 4
Joined: Mon Jun 06, 2005 9:27 am

Post by dunquach »

Set this in dvenv file :

DB2DIR=/opt/ibm/db2;export DB2DIR
DB2INSTANCE=db2inst1;export DB2INSTANCE INSTHOME=/home/db2inst1;export INSTHOME PATH=$PATH:$INSTHOME/sqllib/bin:$INSTHOME/sqllib/adm:$INSTHOME/sqllib/misc
export PATH

Then restart the DataStage server with the following command under $DSHOME/DSEngine:
. ./dsenv
bin/uv -admin -stop
bin/uv -admin -start
Post Reply