Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Do we have the system table to check Read/ write access ?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Nov 11, 2008 2:39 pm    Post subject: Reply to: Do we have the system table to check Read/ write a
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    Post subject: Reply to: Do we have the system table to check Read/ write a
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    Post subject: Reply to: Do we have the system table to check Read/ write a
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: 2284
Location: @my desk

PostPosted: Tue Nov 11, 2008 7:31 pm    Post subject:
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    Post subject:
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: 2284
Location: @my desk

PostPosted: Tue Nov 11, 2008 9:08 pm    Post subject:
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    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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us