Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Finding the access levels using catalog tables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
jagadeeshkumar

New User


Joined: 17 May 2007
Posts: 11
Location: Chennai, India

PostPosted: Wed Feb 13, 2008 11:01 pm    Post subject: Finding the access levels using catalog tables
Reply with quote

Hi,

Is there anyway to find the list of all PLAN/Packages which has update previlege for a particular column in a table?

I tried to use the SYSIBM.SYSCOLAUTH and SYSIBM.SYSPLANDEP tables but I am not getting that right.

Can anyone help me if you have the answer?
Thanks in advance.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 13, 2008 11:17 pm    Post subject:
Reply with quote

Hello,

Quote:
list of all PLAN/Packages which has update previlege for a particular column in a table
Possibly, i misunderstand your question, but update permission is granted on a table not a column and the permission is granted to an authorization id, not a plan/package.
Back to top
View user's profile Send private message
jagadeeshkumar

New User


Joined: 17 May 2007
Posts: 11
Location: Chennai, India

PostPosted: Thu Feb 14, 2008 12:46 am    Post subject: Reply to: Finding the access levels using catalog tables
Reply with quote

Hi,

I have a scenario, where i should find all the programs which access (select/insert/update/delete) a particular Column in a Db2 table.


I have the query to find the list of programs accessing a given table.

SELECT A.GRANTEE , A.TCREATOR , A. GRANTOR ,
A.SELECTAUTH , A.UPDATEAUTH
FROM SYSIBM.SYSTABAUTH A, SYSIBM.SYSPACKDEP B
WHERE A.STNAME = <table name> AND B.BNAME = <table name>
AND A.GRANTEETYPE = 'P'
AND A.GRANTEE = B.DNAME
AND
( ( A.SELECTAUTH = 'Y')
OR
( A.UPDATEAUTH = 'Y' ) )
ORDER BY A.GRANTEE ;

but I don't have any SQL similar to this to find this detail at the column level.

I believe there must be a way to find this easily instead of scanning through thousands of programs I have.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Feb 14, 2008 12:55 am    Post subject:
Reply with quote

Hello,

Quote:
but I don't have any SQL similar to this to find this detail at the column level.
No, there isn't any. . .

Quote:
I believe there must be a way to find this easily instead of scanning through thousands of programs I have.
Lots of us believe this would be very useful, but it is not part of standard db2 (as far as i know).

There may be 3rd party products that provide this level of impact analysis, but in several languages using several database products, my teams have scanned the source for reference(s) to the field names.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts Finding IMS resource blocker after se... Hooman24 IMS DB/DC 1 Wed Aug 16, 2017 9:17 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us