db2: to get role name and grantee

 db2 "select substr(rolename,1,18) as rolename, substr(grantee,1,18) as grantee from syscat.roleauth order by rolename, grantee with ur"


Example:

TIBCO              ESBGCPDB2PRDUSER  

UC4                UC4GCPDB2PRDUSER  

Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS