MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to know what all tables my userid has read access

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Thu Aug 19, 2010 5:54 am    Post subject: how to know what all tables my userid has read access Reply with quote

Hi,

Is there any way to know for what all tables in any TEST / PRD environment my userid has SELECT access to ? I am trying the below query:

Code:

SELECT * FROM SYSIBM.SYSTABAUTH WHERE GRANTEE ='YADAV';

But it does not yield any result .
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Aug 19, 2010 6:06 am    Post subject: Reply with quote

maybe look for 'PUBLIC'?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Aug 19, 2010 11:30 am    Post subject: Reply with quote

yadav2005,

The Grantee does NOT always contain individual user id's . It sometimes contains the group name(such as dept you work ). So your table authorities will be listed under that group name.

The best way to find out that info is , get a table name for sure you have access to and try the following query.

Code:

 SELECT *                           
       FROM SYSIBM.SYSTABAUTH       
 WHERE STNAME = 'Your table name for which you have select access'             
;


Now check the grantee name under this record and use that in the query
Code:

SELECT * FROM SYSIBM.SYSTABAUTH WHERE GRANTEE ='?????';



Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Aug 19, 2010 3:05 pm    Post subject: Reply with quote

Quote:

But it does not yield any result .
If the query was executed, it yielded some result. . .

Show the sqlcode that was returned when the query was executed.
_________________
All the best,

di
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Thu Aug 19, 2010 9:34 pm    Post subject: Reply with quote

Thanks Kolusu , your explanation is very clear.
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Fri Aug 20, 2010 6:44 am    Post subject: Reply with quote

If your shop uses the "standard exit" IBM provides for populating the so called SECONDARY USERIDs (DSN3AUTH), you should look, to which RACF groups your userid is connected (under ISPF, type "TSO LU" in the command line).

Then perform your query against SYSTABAUTH with all the group-ids that are listed with the "list user" command, plus of course PUBLIC.

regards
Christian
Back to top
View user's profile Send private message
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Thu Sep 23, 2010 5:53 am    Post subject: Reply with quote

Hi All,

I executed the following query,
SELECT *
FROM SYSIBM.SYSTABAUTH
WHERE STNAME = 'Your table name for which you have select access'

And, I found in the GRANTEE column all the program names were listed which had accesses to this table Rolling Eyes .

So, well in this case how to get the list.

Thanks in Advance,
Computer
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 23, 2010 12:40 pm    Post subject: Reply with quote

computer,

Read this post once again

http://www.mvsforums.com/helpboards/viewtopic.php?p=56254#56254

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Mon Sep 27, 2010 5:11 am    Post subject: Reply with quote

I tried executing the command to get the group id name as suggested - 'TSO LU', but ended up with the following error message....

RACF PRODUCT DISABLED: COMMAND ENDED.
***

Thanks in Advance,
Computer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group