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 > how to grant reorg privilege to any db2 user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-11, 02:12
ikhtear ikhtear is offline
Registered User
 
Join Date: Mar 2011
Posts: 1
how to grant reorg privilege to any db2 user

I'm very new at db2 i'd like to grant reorg privilege to an user i tried with the following command
db2 => grant reorg on database DB_NAME to USR_NAME;

but it shows following error.

DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "reorg" was found following "grant ". Expected
tokens may include: "READ". SQLSTATE=42601

can anyone please help me on this?
Reply With Quote
  #2 (permalink)  
Old 03-06-11, 03:11
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,195
You can see the required authorization for a command in Chapter 5. CLP commands in "DB2 for LUW Command Reference".

Quote:
REORG INDEXES/TABLE

Authorization

One of the following:
v SYSADM
v SYSCTRL
v SYSMAINT
v DBADM
v SQLADM
v CONTROL privilege on the table.
Reply With Quote
Reply

Tags
reorg

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