If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Users under linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-11, 05:56
tweetysat tweetysat is offline
Registered User
 
Join Date: Jul 2011
Posts: 14
Question DB2 Users under linux

Hi.

I'm working under ubuntu 11.04 installed on virtualbox.
I have installed a db2 express-c 9.74.
So it creates db2inst1,dasusr1 and db2fenc1 users.
Under db2inst1, I created a data base DB1.
So using db vizualizer, I can connect to my DB1 using db2inst1 user.
It's ok.
But now I want to create some other users, let say dbuser1.
I first tried to simply create this user under ubuntu. Tried connecting (db visualizer) ... User id or password invalid.
I also tried assigning a specific group for this user (dbusers) and under db2cc add this group and grant connect but same problem.
So what can I do ?
Reply With Quote
  #2 (permalink)  
Old 07-29-11, 06:08
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
what is the complete message when connecting? try also connect from command line in server : connect to db1 user xxx using yyy
try logon to telnet with this user - maybe the pw needs to be changed ....
messages are over here :
IBM DB2 9.7 for Linux, UNIX and Windows Information Center
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 07-29-11, 06:52
tweetysat tweetysat is offline
Registered User
 
Join Date: Jul 2011
Posts: 14
Ok, I tried directly from the command line in server.
The message is :
SQL30082N Security processing failed with reason "24" ("USER NAME AND/OR
PASSWORD INVALID") . SQLSTATE=08001

For telnet ... don't understand what you mean. But the password is ok. I also tried changing the password to be sure i'm using the good one.

Last edited by tweetysat; 07-29-11 at 06:56.
Reply With Quote
  #4 (permalink)  
Old 07-29-11, 06:59
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
as indicated : uid/pw not valid
try to open a telnet session (with putty or other) and logon with this user/pw not with instance owner.
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 07-29-11, 07:15
tweetysat tweetysat is offline
Registered User
 
Join Date: Jul 2011
Posts: 14
Sorry but how can i do that (i'm not familiar with linux) ?
The only thing i did is closing the db2inst1 session and try opening a session with the db2user user. Ans it's ok.
Reply With Quote
  #6 (permalink)  
Old 07-29-11, 07:28
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if you opened a session and entered uid and pw and this was accepted - then logon is ok and probably pw also
so : what was the syntax of connect that resulted in the error message ?
was this executed in instance owner environment ?
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #7 (permalink)  
Old 07-29-11, 07:40
tweetysat tweetysat is offline
Registered User
 
Join Date: Jul 2011
Posts: 14
I don't understand.

The syntax is : connect to db1 user dbuser1 using dbuser1
And yes it's from dbinst1.
Reply With Quote
  #8 (permalink)  
Old 07-29-11, 09:15
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if dbuser1 is also the pw for this user dbuser1 and logon is ok - this is a mystery
must be something else I don't see immediatly
I will have a deeper look on it..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #9 (permalink)  
Old 08-01-11, 02:37
tweetysat tweetysat is offline
Registered User
 
Join Date: Jul 2011
Posts: 14
Hi.

This morning trying with a brand new ubuntu and db2 installation (still same versions).

After install, connection with db2inst1 user.
db2start
/opt/ibm/V9.7/das/bin/db2admin start
create database ... db1

under db visualizer : connection with dbinst1 .. ok

under ubuntu : create a new user : db2user1 pw db2user1

under db visualizer : connection with db2user1 .. not ok - username and/or password invalid.

Do I miss something ?

- edit -

under db2 comand line, using ? sql30082n tells me for reason code 24 :
1- run db2iupdt <instName> to update the instance
2- ensure the username created is valid. review the db2 general naming rules.
3- ensure the catalog information is correct.

So i do 1- and ... nothing changes.
For 2- i suppose it's ok since I can connect under ubuntu with the user db2user1.
For 3- ? I don't know what it is.

Last edited by tweetysat; 08-01-11 at 03:07.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On