View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Thu Aug 19, 2010 5:54 am Post subject: how to know what all tables my userid has read access |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Aug 19, 2010 6:06 am Post subject: |
|
|
maybe look for 'PUBLIC'? _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Aug 19, 2010 11:30 am Post subject: |
|
|
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 |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Aug 19, 2010 3:05 pm Post subject: |
|
|
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 |
|
 |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Thu Aug 19, 2010 9:34 pm Post subject: |
|
|
Thanks Kolusu , your explanation is very clear. |
|
Back to top |
|
 |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Fri Aug 20, 2010 6:44 am Post subject: |
|
|
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 |
|
 |
computer Beginner
Joined: 12 Jun 2007 Posts: 64 Topics: 17 Location: Hyderabad
|
Posted: Thu Sep 23, 2010 5:53 am Post subject: |
|
|
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 .
So, well in this case how to get the list.
Thanks in Advance,
Computer |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
computer Beginner
Joined: 12 Jun 2007 Posts: 64 Topics: 17 Location: Hyderabad
|
Posted: Mon Sep 27, 2010 5:11 am Post subject: |
|
|
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 |
|
 |
|
|