Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only
  • 1.  RACF commands for Db2

    Posted 06/10/24 10:09 AM
    Edited by Scott Walker 06/10/24 10:09 AM

    Does anyone have examples of RACF commands to see IDs that have privileges on a table? 

    The commands I use are:

    LISTUSER DBA17     
    LISTGRP DBA        

    SEARCH CLASS(GDSNTB) ALL       
    SEARCH CLASS(DSNR) ALL         
    RLIST DSNR D2*.RRSAF AUTHUSER  

    I don't have anything that will show select,insert, update, delete on a table. OR similar for other objects. 

    ------------------------------
    Scott Walker
    Database Engineer IV - Db2 z/OS
    Navy Federal Credit Union
    Pensacola
    ------------------------------



  • 2.  RE: RACF commands for Db2
    Best Answer

    Posted 06/16/24 04:36 AM

    hi Scott,

    try something like: RLIST MDSNTB   qual1.qual2.tbname.authority all 

    where authority is INSERT/UPDATE/DELETE/SELECT 

    qual1 could be a datasharing group pattern, qual2 - schema pattern etc 

    Regards

    Dhiren 



    ------------------------------
    Dhiren Chaudhary
    Natwest Group
    ------------------------------



  • 3.  RE: RACF commands for Db2

    Posted 06/17/24 10:53 AM

    That worked perfectly. 

    RLIST MDSNTB DDD.SSS.TTT.SELECT ALL AUTHUSER

    Where:

    DDD = Db2 data sharing group name. 

    SSS = Table schema

    TTT = Table name 

    .



    ------------------------------
    Scott Walker
    Database Engineer IV - Db2 z/OS
    Navy Federal Credit Union
    Pensacola
    ------------------------------