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 tablespace privileges

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-06-07, 09:45
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Thumbs up Create tablespace privileges

Hi,
My User 'A' having local admin right on my PC(XP -professional)and it is a part of a domain User. I installed UDB V8.2 in my PC. Automatically it created a group called DB2ADMNS. Then I added my user 'A' in that group DB2ADMNS and i ran this command ..
db2 update dbm cfg for SYSADM_GROUP DB2ADMNS

It ran successfully...

When Iam trying to create a tablespace form my User 'A' it is showing this error..

C:\Documents and Settings\A>DB2 "CREATE REGULAR TABLESPACE STORE MANAGED BY DATABASE USING (FILE 'DB2\NODE0000\SQL00001\SQLT0001.0\STORE.DBF' 512)"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0552N "A" does not have the privilege to perform operation "CREATE
TABLESPACE". SQLSTATE=42502

Note:Iam able to create tables.


Can any please help on this problem.
__________________
Regards
Mohan
Reply With Quote
  #2 (permalink)  
Old 09-06-07, 11:17
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
according the doc
The privileges held by the authorization ID of the statement must include SYSCTRL or SYSADM authority.
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 09-06-07, 16:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I suspect the problem may be caused by the location where you are attempting to create the container. Did you try to create the new tablespace container in another location, which is not being used as a container for TEMPSPACE1?
Reply With Quote
  #4 (permalink)  
Old 09-07-07, 01:47
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
1. User 'A' is part of SYSADBM ...

2.I ran the above command from db2admin user... It ran successfully...(Then there is no problem in the container also)...

Can you please help on this prblm....
__________________
Regards
Mohan
Reply With Quote
  #5 (permalink)  
Old 09-07-07, 09:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Please provide the output of "dbset -all"
Reply With Quote
  #6 (permalink)  
Old 09-07-07, 10:02
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by d_mohan81
1. User 'A' is part of SYSADBM ...
What is the DBM CFG parameter SYSADM_GROUP set to? And does 'A' belong to the group specified there?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 09-10-07, 01:42
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
1.
C:\Documents and Settings\A>db2set -all
[e] DB2PATH=D:\Program Files\IBM\SQLLIB
[i] DB2ACCOUNTNAME=01HW050390\db2admin
[i] DB2INSTOWNER=01HW050390
[i] DB2PORTRANGE=60000:60003
[i] DB2INSTPROF=D:\PROGRA~1\IBM\SQLLIB
[i] DB2COMM=TCPIP
[g] DB2_EXTSECURITY=YES
[g] DB2_GRP_LOOKUP=LOCAL
[g] DB2SYSTEM=01HW050390
[g] DB2PATH=D:\Program Files\IBM\SQLLIB
[g] DB2INSTDEF=DB2
[g] DB2ADMINSERVER=DB2DAS00

2.
SYSADM group name (SYSADM_GROUP) = DB2ADMNS
SYSCTRL group name (SYSCTRL_GROUP) =
SYSMAINT group name (SYSMAINT_GROUP) =
SYSMON group name (SYSMON_GROUP) =

The User 'A' belong to DB2ADMNS group..

Lookiing for your advices..to reslove the problem..
__________________
Regards
Mohan
Reply With Quote
  #8 (permalink)  
Old 09-11-07, 02:29
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
A very basic q ..

Did you restart the instance after changing the parm ?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #9 (permalink)  
Old 09-11-07, 08:29
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Yes I restared the instance as well as database ALSO....

Note:
I thik there is problem with my user id 'A'..Because my user 'A' is a part of domain and does not have the admin privillage for that Domain.But I have admin privleges for my local system.

Please help me on this prblm
__________________
Regards
Mohan
Reply With Quote
  #10 (permalink)  
Old 09-11-07, 09:35
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
maybe this setting can help
For example, if a user logs on to a domain account and tries to access a DB2 database, DB2 goes to a domain controller to enumerate groups (including the Administrators group). You can force DB2 to always perform group lookup on the local computer by setting the registry variable DB2_GRP_LOOKUP=local and adding the domain accounts (or global groups) to the local group.
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #11 (permalink)  
Old 09-12-07, 06:25
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Thanks for the inforamtion.But I already added the registry variable.

:\Documents and Settings\A>db2set -all
[g] DB2_GRP_LOOKUP=LOCAL
[g] DB2SYSTEM=01HW050390

and I added the domain account 'A' in the local group called DB2ADMNS...
__________________
Regards
Mohan
Reply With Quote
  #12 (permalink)  
Old 02-28-11, 19:54
robsinner robsinner is offline
Registered User
 
Join Date: Feb 2011
Posts: 1
Did you ever get resolution to this problem. I am experiencing the same thing.
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