Problem viewing data in DB2/UDB Enterprise

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
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Problem viewing data in DB2/UDB Enterprise

Post by yinyin61 »

hi, i had created a simple job that loads the records from DB2/UDB Enterprise to sequential file. however when i try to view the record in the DB2 stage, i'm getting the following error:
>DB2 Driver Embedded SQL message: SQL30082N Attempt to establish connection failed with security reason "3"
>("PASSWORD MISSING"). SQLSTATE=08001
>;
>sqlcode = -30082;
>sqlstate = 08001
i had hardcoded all the parameter including the password but i still getting this error, really run out of idea.. anyone can help me resolve this issue? :cry:

aileen
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Post by yinyin61 »

anyone? :cry:
Thank you.

Regards,
Aileen Chong
Software Engineer
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

It is evident with the error messages that the password is wrong.

following could be some of the scenarios for the same


You have given the correct password but for a different server name.

or

correct server name but the wrong password.


Please make sure that you are using both appropriate once.
Regards,
Shree
785-816-0728
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Post by yinyin61 »

Sreedhar wrote:It is evident with the error messages that the password is wrong.

following could be some of the scenarios for the same


You have given the correct password but for a different server name.

or

correct server name but the wrong password.


Please make sure that you are using both appropriate once.
finally someone reply my post, thanks sreedhar :)

i'm very sure that i provide the correct server name and password.. i able to use it connect to database through IBM DB2 Control Center
Thank you.

Regards,
Aileen Chong
Software Engineer
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

if that is the case,

make sure you have given these 5 parameters correctly

Client Instance name <DB2 iinstance name>
Database Name <DB2 server name>
Password <password>
server <datastage server name>
user <Datastage user name>

please note if there is any difference in user name and password for connecting to data base (we give only these 5 as the user name and password for both the data Stage and db2 are one and the same.)
Regards,
Shree
785-816-0728
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Post by yinyin61 »

Sreedhar wrote:if that is the case,

make sure you have given these 5 parameters correctly

Client Instance name <DB2 iinstance name>
Database Name <DB2 server name>
Password <password>
server <datastage server name>
user <Datastage user name>
thanks for the prompt reply :)

May i know where can i find the Client Instance Name? what i did is i refer to the dsenv and inside has the value of DB2INSTANCE (which in my case is db2inst1). Is it correct?

And for server, i insert the same value as Client Instance Name which i'm not sure whether it's correct or not :oops:

here's the parameter that i enter:

Client Instance Name: db2inst1
Database: <DB2 Name>
Password: <DB2 password>
Server: db2inst1
Use Default Database : False
Use Default Server : False
User: <DB2 user id>

please note if there is any difference in user name and password for connecting to data base (we give only these 5 as the user name and password for both the data Stage and db2 are one and the same.)
erm... the user name and password for the db2 and DataStage is different for my case here. is two of them must be same for it to work?

thanks ~~
:P
Thank you.

Regards,
Aileen Chong
Software Engineer
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Hi chong, A search gave me this result :
viewtopic.php?t=105703&highlight=SQLSTATE%3D08001

IHTH
sam
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Post by yinyin61 »

us1aslam1us wrote:Hi chong, A search gave me this result :
viewtopic.php?t=105703&highlight=SQLSTATE%3D08001

IHTH
sam
Thanks for the link :)

i had search through the forum before i post up my problem here and i had tried the solution give by the link above as well.. however it's still not working :cry:
Thank you.

Regards,
Aileen Chong
Software Engineer
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you checked the DB2 environment variables, such as DB2INSTANCE, to make sure these are correctly set for the user executing the DataStage job? They need to be set in the $DSHOME/dsenv script.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
yinyin61
Participant
Posts: 28
Joined: Mon Nov 07, 2005 7:40 pm

Post by yinyin61 »

ray.wurlod wrote:Have you checked the DB2 environment variables, such as DB2INSTANCE, to make sure these are correctly set for the user executing the DataStage job? They need to be set in the $DSHOME/dsenv script. ...
i did check the dsenv file and the DB2INSTANCE already set there.. :(
Thank you.

Regards,
Aileen Chong
Software Engineer
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

Is this DB2 database clustered on multiple servers? If yes, have to set up SSH for your id?

Open a db2 session from your ETL server and see if you are able to connect with user name password from prompt.
Assume everything I say or do is positive
my_stm
Premium Member
Premium Member
Posts: 58
Joined: Mon Mar 19, 2007 9:49 pm
Location: MY

Post by my_stm »

csrazdan wrote:Is this DB2 database clustered on multiple servers? If yes, have to set up SSH for your id?
nope, the DB2 database is not cluster on multiple servers.. mind explain more in SSH? :oops:
csrazdan wrote:Open a db2 session from your ETL server and see if you are able to connect with user name password from prompt.
i tried to open db2 session from ETL server, here's the error i get

XXXX003:dsadm:/home/dsadm> db2 connect to SAMPLE
SQL30082N Attempt to establish connection failed with security reason "3"
("PASSWORD MISSING"). SQLSTATE=08001


any idea? did i missed out some configuration?

thanks

:roll:
Post Reply