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 > Check authorization level in DB2 Express C

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-11, 12:27
Breako Breako is offline
Registered User
 
Join Date: Jan 2006
Posts: 119
Check authorization level in DB2 Express C

I thought I could check the authorization level for a user by just looking at the sysibm.SYSUSERAUTH table.

However, Express C version DB29v7 does not contain the column AUTHHOWGOT. On other version of DB2 this column will indicate if the user is DBADM, SYSCTRL, DBMAINT, etc.

Anyone how I check the authorization level in Express C?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 08-14-11, 15:03
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Look in the Appendix of the SQL Reference Vol 1, which contains a description of the catalog views (SYSCAT schema). Check out all the catalog views with AUTH in them to find what you need.
https://www-304.ibm.com/support/docv...id=swg27015148
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 08-14-11, 17:35
Breako Breako is offline
Registered User
 
Join Date: Jan 2006
Posts: 119
Quote:
Originally Posted by Marcus_A View Post
Look in the Appendix of the SQL Reference Vol 1, which contains a description of the catalog views (SYSCAT schema). Check out all the catalog views with AUTH in them to find what you need.
https://www-304.ibm.com/support/docv...id=swg27015148
There are nine in the auth tables in the syscat none of them give me the authorization level which is what prompted the question.

SYSCAT.DBAUTH
SYSCAT.TABAUTH
SYSCAT.COLAUTH
SYSCAT.INDEXAUTH
SYSCAT.PACKAGEAUTH
SYSCAT.ROUTINEAUTH
SYSCAT.SCHEMAAUTH
SYSCAT.SEQUENCEAUTH
SYSCAT.TBSPACEAUTH
Reply With Quote
  #4 (permalink)  
Old 08-14-11, 19:38
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
What in SYSCAT.DBAUTH?
Reply With Quote
  #5 (permalink)  
Old 08-14-11, 20:20
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
DBADM is located in DBAUTH. SYSCTRL, SYSMAINT (and SYSADM, SYSMON) are handled in the dbm cfg using operating system group accounts.

I don't know what manuals you were looking at, but DB2 Linux, UNIX, Windows is a different product than DB2 z/OS or DB2 iSerieis.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 08-14-11, 23:42
skchandra skchandra is offline
Registered User
 
Join Date: Nov 2010
Posts: 14
I am not sure whether these commands and table functions available in DB2-Express -C. However worth a try.

"GET AUTHORIZATIONS" command
AUTH_LIST_AUTHORITIES_FOR_AUTHID table function.

Also check other admin functions related to DB2 security in "Supported administrative SQL routines and views" section in infocenter.

Thanks,
SK Chandra
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