DB2INSTANCE Warning

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
Nick_6789
Participant
Posts: 32
Joined: Thu Jan 05, 2006 2:07 am

DB2INSTANCE Warning

Post by Nick_6789 »

Hi guys,

I am encountering the below warning each time I load data into the db2 server:

FNC_STG_DATA1: The environment variable DB2INSTANCE is currently set to `db2inst1'
and is being changed to `db2inst2' as specified in the server option;
if this instance is a different version of DB2, the program may not succeed.

Can anyone explain how to rid this warning from the log?

As well as why this is occuring? I've read a similar thread and correct me if I'm wrong... this has something to do with my client instance name not matching that of the db2 server instance name? Still vague in understanding this.

Additional info would be, my ETL server is seperate from the DB2 server. Thus remote connection is needed.

Please advice. Thanks in advanced all!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Either via the Server option in your DB2 stage, or via the APT_DBNAME environment variable, you've specified db2inst2.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
my_stm
Premium Member
Premium Member
Posts: 58
Joined: Mon Mar 19, 2007 9:49 pm
Location: MY

Post by my_stm »

Hi Ray,

In my db2 stage I set the server as db2inst2 whereas my client instance name is db2inst1. I guess that's the cause.

But I was wondering how this works. Please correct if me if my understanding is wrong.

The client instance name is set as db2inst1 in my project (ETL Server) /home/db2inst1/sqllib/db2profile file.

My guess that it's because in the db2 remote server the instance name is set as db2inst2...? Does that hit the mark?

Does the solution encompass syncing the instance names between the 2 servers?

I've tried to contact my DBA... to no avail yet... prolly he would get back to me some time later.

Please advice if my understanding's correct?

PS. The APT_DBNAME in Administrator is set to blank... so I dun think it's to do with the warning I'm having... I think.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Just look at the help in the client. What's supposed to happen is what you expected. That it's not is a worry.
A quick fix might be to include $DB2INSTANCE as a job parameter, with a default value of $UNSET so that, in the job, it is not set unless explicitly overridden. In this case the property in the stage must be the only available value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply