ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DB2 Connection error

Post new topic  Reply to topic
 DB2 Connection error « View previous topic :: View next topic » 
Author Message
syangloo
PostPosted: Fri Nov 08, 2002 8:47 pm    Post subject: DB2 Connection error Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

Dear All,

I'm using the HPUX 11i and DB2 v7.1.

I have the problem for connecting to the DB with the user id use for createing the DB.

Error message is get as below:
SQL1403N The username and/or password supplied is incorrect. SQLSTATE=08004

i issue the command as below:
db2 connect to QTMQBKDB user qtuser using ut123


I added the setting at the ODBC.ini file as below:
[QTMQBKDB]
Driver=/home/db2inst1/sqllib/lib/libdb2.sl
Description=QTMQBKDB DB2 ODBC Database
Database=QTMQBKDB


If i issue db2 connect to QTMQBKDb, it working fine. So what is the user id use by "db2 connect to" command.

Your advice is appreciated

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kirani
PostPosted: Fri Nov 08, 2002 10:48 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Are you getting this error in a message flow at runtime?
The broker uses user-id/pwd specified in -u & -p parameter in mqsicreatebroker command to connect to the external database. If you don't specify one, broker will use user-id/pwd specified in -i & -a parameter instead.
Pl make sure you are using correct combination of user-id/pwd.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
syangloo
PostPosted: Sat Nov 09, 2002 5:31 am    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

I deleted the broker and broker db before, now i creating the new db for new broker with the same name as i deleted before.

(At this point, i not creating the broker yet)

I can connected to the db with this command db2 connect to QTMQBKDB, but can't connect to the db with db2 connect to QTMQBKDB user qtuser using qt123. qtuser is the user id i use for creating the db.

Let say, i have two db before, now i deleted one db and other db still remain. Now when issue the command to connect to the remain db also hitting the same error.

What will cause this error occur?

I posted the other question for creating the broker at topic creating a config manager.

Any other advice for solving this problem?
What i should check for the db connection authorization id and password?
What is the command i can use for changing the db authorization?

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kirani
PostPosted: Sat Nov 09, 2002 1:17 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi,
What did you login as on your machine when db2 connect to QTMQBKDB command works?
Let's say if you login as Administrator on your machine and issue db2 connect command without any user-id/pwd it will use Administrator user-id to connect to the database.
If you want to connect to the db as different user-id/pwd then you could use db2 connect to db user user-id using pwd command.
From the above error it looks like either the user-id doesn't exist or the password is incorrect. Pl verify your user-id/pwd.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
syangloo
PostPosted: Sat Nov 09, 2002 7:38 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

Hi Kinari,

I use the same user is and password for both command to connect the db.

db2 connect to QTMQBKDB -- unix login user id "qtuser" and password "qt123"


db2 connect to QTMQBKDB user qtuser using qt123

It not a different user id and is the is i use for creating the db.

Why this problem happen? Any thing i need to update the DB connection or athouriztion for all DB?

For the existing DB, also having the same error.

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kirani
PostPosted: Sun Nov 10, 2002 11:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Try giving authorities (connect, administration, ....etc) to user qtuser on QTMQBKDB database. For example,
Code:

GRANT  DBADM,CREATETAB,BINDADD,CONNECT,CREATE_NOT_FENCED,IMPLICIT_SCHEMA,LOAD ON DATABASE TO USER qtuser

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
syangloo
PostPosted: Sun Nov 10, 2002 11:12 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

HI Kiran,

Where should i issue the command?
I using the root id and issue the command, is display GRANT: not found

regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
syangloo
PostPosted: Mon Nov 11, 2002 11:30 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

HI Kiran,

I manage to run the GRANT command in the system, but i still hitting the same errors.

Any other advice for me to solve this problem.

Any other expert can help?

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
syangloo
PostPosted: Thu Nov 14, 2002 9:54 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

Dear All,

thanks for your advice, i solve the problem with IBM DB2 support.

For solving this probelm, we just need to run the db2iupdt command at the db2home/instance directory with root id.

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DB2 Connection error
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.