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 > Users in UDB Db2 v9.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-07, 07:50
Neharao Neharao is offline
Registered User
 
Join Date: Dec 2007
Posts: 49
Users in UDB Db2 v9.1

Hi

Can i create Different Users in UDB Db2 for a database which is on Local Machine

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-31-07, 17:38
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Userids are controlled by the operating system, not in DB2. Same for passwords.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-01-08, 16:27
jyotirmay jyotirmay is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
query in the same direction

hi
i m new to Db2...I found that the concept of users is different for DB2 than Oracle. Db2 uses OS authentication and does not have a separate concept of users.

But, in the DB2 control center, under object view inside <DB_NAME>\Users and Group Objects\DB Users. It lets me create a new user. I am confused which user is this? How to set its password?

I checked OS Users..this is not listed there. I can change its privilege to connect to db. so how do I use it to connect to db using JDBC?

Can I create this user using an SQL statement?

Do let me know, if anyone has any idea about so many of my questions.
Thanks in advance.
Reply With Quote
  #4 (permalink)  
Old 01-01-08, 17:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you grant access to a user with a GRANT statement, a DB2 user will be created automatically in the catalog (if not already created). However, if the user is not defined to the operating system as a user, then authentication will not be allowed. So basically, there is no real reason to explicitly create DB2 users in the database with the create user statement and you should just ignore it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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