I want to revoke all privileges from all users but one from a database. DB2 10.5 LUW
I was thinking along the lines of:
db2 "revoke all on database from user IN (select grantee from syscat.dbauth where grantee not IN 'SAFEUSER')"
but I can't get it to work.
Any ideas?
There is no
ALL
clause in the REVOKE (database authorities) statement.You may generate the set of statements needed by the following select statement: