IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Do we have the system table to check Read/ write access ?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Tue Nov 11, 2008 2:19 pm
Reply with quote

Hi,

Do we have the system table in DB2 to check the read/write access for the user-id for the perticular table.

Thanks,
Amol
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 11, 2008 2:39 pm
Reply with quote

if You have the need to know, the database/security support groups
will be glad(it depends) to provide You the info
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Tue Nov 11, 2008 3:07 pm
Reply with quote

enrico,

Thanks a lot for suggestion. icon_biggrin.gif

Regards,
Amol
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Tue Nov 11, 2008 7:18 pm
Reply with quote

enrico,

I have refer DB2- Manual and found that we have system table

SYSIBM.SYSTABAUTH With columns

GRANTOR
GRANTEE
GRANTEETYPE
DBNAME
SCREATOR
STNAME
TCREATOR
TTNAME - Will be the table name
AUTHHOWGOT
TIMESTAMP
DATEGRANTED
TIMEGRANTED
UPDATECOLS
ALTERAUTH
DELETEAUTH
INDEXAUTH
INSERTAUTH
SELECTAUTH
UPDATEAUTH
IBMREQD
UPDATEAUTH
IBMREQD
GRANTEELOCATION
LOCATION
COLLID
CONTOKEN
CAPTUREAUTH
REFERENCESAUTH
REFCOLS
GRANTEDTS
TRIGGERAUTH

We can get desired information from this table


Regards,
Amol
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Nov 11, 2008 7:31 pm
Reply with quote

Quote:
We can get desired information from this table

Amol,

Yes, it'll give information on the authids/plans/packages and their respective privileges on a table. But the original post was regarding the read/write access for a particular user-id for a table. Do we get the same info from this table?
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Tue Nov 11, 2008 7:57 pm
Reply with quote

Arun,

You have column GRANTEE - Group-name.
You should know the group to which you belong or grantee can be public.

Also you have the columns UPDATECOLS, ALTERAUTH, DELETEAUTH, SELECTAUTH, UPDATEAUTH which will tell you what access your id-has
on that table ( Column =TTNAME )

Regards,
Amol
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Nov 11, 2008 9:08 pm
Reply with quote

Quote:
GRANTEE VARCHAR(128) NOT NULL
Authorization ID of the user who holds the privileges or the name of an application plan or package that uses the privileges. PUBLIC for a grant to PUBLIC. PUBLIC followed by an asterisk for a grant to PUBLIC AT ALL LOCATIONS.


Just curious where do I see the Auth-id for a particular user? icon_rolleyes.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top