If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 AS400 privileges

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-05, 13:07
tuvarsha tuvarsha is offline
Registered User
 
Join Date: Dec 2005
Posts: 39
DB2 AS400 privileges

What is the SQL query to retrieve the privileges for different users for different tables/libraries in DB2 for AS400? Please help! Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-30-05, 06:02
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Quote:
Originally Posted by tuvarsha
What is the SQL query to retrieve the privileges for different users for different tables/libraries in DB2 for AS400? Please help! Thanks.
You should be able to get this information from a table called sysauth or systabauth. I presume this to be so, as the parallel for syscat.tables (UDB) is systables on AS/400.

However, you need to refer the table with the library name. e.g., dbtest.systables...

HTH.
Reply With Quote
  #3 (permalink)  
Old 12-30-05, 11:03
tuvarsha tuvarsha is offline
Registered User
 
Join Date: Dec 2005
Posts: 39
There are no such tables, qsys2.sysauth or qsys2.systabauth in DB2 for AS400. syscat.systabauth is present in DB2 UDB for LUW. There is sysibm.sqltableprivileges as a part of JDBC/ODBC catalogs, but its not working for me. Guess I need to install some fix, but I dont know how. Does anyone know?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On