Question

i want to restrict a db2 user to just do some operations like select,insert and update operations. Is there a way in DB2 to do it? i am newbie to db2. Please let me know Thanks in advance

Was it helpful?

Solution

This is what you use GRANT for. Examples from the manual:

GRANT SELECT ON DSN8A10.EMP TO SOME_USER;
GRANT UPDATE (EMPNO, WORKDEPT) ON TABLE DSN8A10.EMP TO SOME_USER;

In general, in SQL databases, you don't restrict privileges, you grant them, starting from almost no privileges.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top