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 » Need Help! wmbadmin unable to connect to DB on Linux x-86

Post new topic  Reply to topic
 Need Help! wmbadmin unable to connect to DB on Linux x-86 « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Sat Feb 07, 2009 7:09 pm    Post subject: Need Help! wmbadmin unable to connect to DB on Linux x-86 Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

Hi,

I installed MQ v7, DB2 9.1 and wmb6.1 on a x-86 Linux machine. and configured WMBBKRDB as documented. But my mqsicreatebroker command:

mqsicreatebroker MYBROKER -i wmbadmin -a passwd -q MYBROKER -n WMBBKRDB -u wmbadmin -p passwd

failed with
SQL State ''08001''; Native Error Code '-30082'; Error Text ''[IBM][CLI Driver] SQL30082N Security processing failed with reason "15"

to check security, I run the command as wmbadmin

db2 connect to WMBBKRDB
successfully. But connect failed if I provide the user name and passwd in the following command:

db2 connect to WMBBKRDB user wmbadmin using "passwd"

SQL30082N Security processing failed with reason "15" ("PROCESSING FAILURE").
SQLSTATE=08001

I couldn't understand, how could it be that I can connect to DB without a specifying userid and password, but fail when I supply them explicitly?

I uninstalled and reinstalled DB2 9.1, plus fixpack 6a, but everything still the same. I also applied the license after installation.

Has anyone ever expierenced such strange behavior? what could I have missed?

thank you for any insight!
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Feb 08, 2009 12:07 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Have you googled for the error code?

I did and at the top of the list is
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.msg.doc/doc/sql30082.htm

Why don't you start there?

I am also assuming that you have configured the database connection details in .odbc.ini correctly?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
pcelari
PostPosted: Sun Feb 08, 2009 8:56 am    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

thank you for pointing that out. But that reason code explanation is also part of the error message.

Yes, I set my .odbc.ini correctly. but "db2 connect to" command doesn't even use ODBCINI, right?

How come the one without specifying id/pswd succeeds, while the same command with id/pswd fails?
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Feb 08, 2009 9:15 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Db2 connect to ....

does not use ODBC as you surmised.

However broker uses ODBC for its connections. This has to be setup properly before broker will work. There are numerous posts in this forum about this very topic.

Back to your db2 connects.

I would hazard at a guess that you are using a command terminal that is looged on as something like 'db2admin'. If so then you get admin access to the db without having to specify a password.
Make sure the user you are trying to use is properly authorised to access the particular database in question. I always test the connectivity this way before trying to create the broker.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
jonesn
PostPosted: Thu Mar 05, 2009 6:33 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 47

Guys,

Did this question get resolved? I have the same issue when trying to create a 6.1 broker on Linux and do not undestand why the command is failing. I am supplying the correct userid & password when I attempt to connect manually but the command fails. Does DB2 need the username/password to be configured over & above the standard linux security, i.e. /etc/passwd?

Another point to note is that I have previously created brokers using DB2 on AIX without problems & as I am porting the creating steps across to Linux I would not expect this to be an issue.

Thanks
_________________
---

Nick Jones
IBM Certified Solutions Expert (WebSphere MQ Integrator)
Back to top
View user's profile Send private message
pcelari
PostPosted: Thu Mar 05, 2009 2:46 pm    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

No, it's not yet resolved.

I uninstalled the db2 v9.1 and installed v8.2 expecting it to work. But it didn't. Still getting the same error:

SQL30082N Attempt to establish connection failed with security reason "26" ("SERVER SECURITY PLUGIN ERROR"). SQLSTATE=08001
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
jonesn
PostPosted: Thu Mar 05, 2009 3:27 pm    Post subject: Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 47

I think this problem is nothing to do with message broker nor ODBC, it is simply how to configure DB2 on Linux (Fedora 9 with all latest patches). These are the steps I followed...

As Root user
Install DB2 9.1 using db2setup creating dbinst as instance owner
Install FixPack 6a using installFixPack

As dbinst user
db2 start database manager
db2 create database mqsibkdb
db2 connect to mqsibkdb
db2 bind ~/sqllib/bnd/@db2cli.lst grant public CLIPKG 5
db2 grant connect, createtab, bindadd, create_external_routine on database to user mqm

Note that no errors or warnings are generated by running these commands so I have no reason to think anything failed.

As dbinst user
db2 connect to mqsibkdb user mqm using <passwd>
SQL30082N Security processing failed with reason "15" ("PROCESSING FAILURE")

Any help gratefully accepted.

Thanks
_________________
---

Nick Jones
IBM Certified Solutions Expert (WebSphere MQ Integrator)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 05, 2009 3:35 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Just try with grant all.
You might be a few permission shy of the needed set. (I did not see any execute (for stored procs etc...)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jonesn
PostPosted: Fri Mar 06, 2009 6:20 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 47

Success

I have managed to create the broker after making the following change. Amend /etc/pam.d/system-auth-ac so that the password encryption algorithm is changed to sha256 rather than sha512 which is the default. The password for the user must be reset using the passwd command. This is explained more fully in the following...

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14223029

Thanks
_________________
---

Nick Jones
IBM Certified Solutions Expert (WebSphere MQ Integrator)
Back to top
View user's profile Send private message
pcelari
PostPosted: Fri Mar 06, 2009 8:31 am    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

SUCCESS!

Thanks a lot for sharing this!

I changed the encription to DES as IBM suggested, and reset all user password.

with this, the mqsicreatebroker command completed successfully.


_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need Help! wmbadmin unable to connect to DB on Linux x-86
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.