How to check DB2 SYSADM or SYSCTRL authorization for a user
How to check DB2 SYSADM or SYSCTRL authorization for a user. I need to verify user/password by means of DB2 authority to create/drop database. Is there any specific command for this? I need to verify user/password with a command that tells whether the user has the authority to create and drop database (means attempt to validate before firing database Create command) or not. db2 connect db2 get authorizations This is how I would do it in from unix shell, it shouldn't be to hard to adapt to the java equivalent; createdb=$(db2 get authorizations|egrep 'SYSADM|SYSCTRL' | grep -c ' = YES') if [[