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 > Create Database Permissions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 11:28
ansonee ansonee is offline
Registered User
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 253
Create Database Permissions

I've been through this about a thousand times with DB2, and I eeventually get the problem solved but always forget the solution!!! Here's the deal:

Have a new developer. He installed DB2 v8 on his machine. He was logged into the network as himself. He does have local admin rights. When he tries to create a new database, he gets the "you don't have the right" error...

If he is a local admin, shouldn't that give him the proper permissions? ANY insight would be greatly appreciated....

Thanks!
__________________
Anthony Robinson

"If I'm curt with you, it's because time is a factor here. I think fast, I talk fast, and I need you guys to act fast if you want to get out of this. So, pretty please - with sugar on top..."
Reply With Quote
  #2 (permalink)  
Old 02-11-04, 11:42
CrimsonBane CrimsonBane is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
Re: Create Database Permissions

Log in has him and type

db2 "GET AUTHORIZATIONS"

This should show you the admin privileges the user has. If he has proper permissions it should be set to Direct CREATETAB = YES.
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 11:52
ansonee ansonee is offline
Registered User
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 253
In the event he doesn't have permissions - which is more than likely the case - what's the syntax to grant those permissions?
__________________
Anthony Robinson

"If I'm curt with you, it's because time is a factor here. I think fast, I talk fast, and I need you guys to act fast if you want to get out of this. So, pretty please - with sugar on top..."
Reply With Quote
  #4 (permalink)  
Old 02-11-04, 11:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Create Database Permissions

Quote:
Originally posted by ansonee
I've been through this about a thousand times with DB2, and I eeventually get the problem solved but always forget the solution!!! Here's the deal:

Have a new developer. He installed DB2 v8 on his machine. He was logged into the network as himself. He does have local admin rights. When he tries to create a new database, he gets the "you don't have the right" error...

If he is a local admin, shouldn't that give him the proper permissions? ANY insight would be greatly appreciated....

Thanks!
By default DB2 uses the domain's "Administrators" group, not the local one. To make it check for authorization locally use:

db2set DB2_GRP_LOOKUP=local
Reply With Quote
  #5 (permalink)  
Old 02-12-04, 12:50
ansonee ansonee is offline
Registered User
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 253
How do you change or set the authorizations for a local user? The user essentially doesn't have any permissions to create anything....

He needs CREATEDB - DBADM ideally. I've tried every combination of GRANT and nothing seems to work.

Thanks!
__________________
Anthony Robinson

"If I'm curt with you, it's because time is a factor here. I think fast, I talk fast, and I need you guys to act fast if you want to get out of this. So, pretty please - with sugar on top..."

Last edited by ansonee; 02-12-04 at 16:04.
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