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 > Sysadmauth

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-09, 22:53
bkiddo bkiddo is offline
Registered User
 
Join Date: Aug 2009
Posts: 17
Red face Sysadmauth

Hello, I was asked to do an audit on a DB2 installation then requested the query:

SELECT GRANTEE, GRANTEETYPE, SYSADMAUTH FROM SYSIBM.SYSUSERAUTH WHERE SYSADMAUTH <>' ';

but the DBA reports the column SYSADMAUTH does not exist:

db2 describe table SYSIBM.SYSUSERAUTH
Column Type Type
name schema name Length Scale Nulls
------------------------------ --------- ------------------ -------- ----- ------
GRANTEE SYSIBM VARCHAR 128 0 No
GRANTEETYPE SYSIBM CHARACTER 1 0 No
TABSCHEMA SYSIBM VARCHAR 128 0 No
TABNAME SYSIBM VARCHAR 128 0 No
AUTH_DESC SYSIBM BLOB 2097152 0 No


What I'm missing here? my query correspond to a different version of DB2? The version is V8 on HP-UX.
Reply With Quote
  #2 (permalink)  
Old 08-04-09, 07:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You should not use SYSIBM tables to query the system catalog, as they may change between versions and releases. Use SYSCAT views instead, as recommended by IBM.
Reply With Quote
  #3 (permalink)  
Old 08-04-09, 12:37
rdutton rdutton is offline
Registered User
 
Join Date: Dec 2008
Posts: 76
First, your describe shows that there is no column named SYSADMAUTH.
Second, Nick is correct: use SYSCAT views.
Third - there is no data on SYSADM kept in database tables because SYSADM operates in a higher domain than a database. You can find DBAUTH privileges from the SYSCAT.DBAUTH view. SYSADM is granted to those in the SYSADM_GROUP defined in the results of "db2 get dbm cfg" which is usually run from the command line.
__________________
RD
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