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 use db2look to see the grants

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-10-04, 11:36
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
how to use db2look to see the grants

db2 ver7 on liunux

Trying to get only the grant statement given by grantor SYSIBM to
<user1> on <user2>.<table_name.
The USER enviroment set to instance owner

I am using this command

db2look -d <db_name> -z <user1> -x

but the grants are not showing , I am seeing the grants from the
syscat.tabauth.

regards,
Reply With Quote
  #2 (permalink)  
Old 09-11-04, 21:41
dlafreni dlafreni is offline
Registered User
 
Join Date: Jun 2003
Location: Canada
Posts: 35
try -xd

From the doc:
-xd
|
If this option is specified, the db2look utility will generate all authorization | DDL including authorization DDL for objects whose authorizations were granted | by SYSIBM at object creation time. |
Reply With Quote
  #3 (permalink)  
Old 09-11-04, 22:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would try it without the -z (schema) parameter. The schema name is not necessarily the same as the userid.
__________________
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
  #4 (permalink)  
Old 09-14-04, 21:43
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
The xd option is introduced in version 8 , what about ver 7.

regards,

Mujeeb
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