DB2 - Restrict a DB User to just use Select, Insert and Update Operations

StackOverflow https://stackoverflow.com/questions/23421685

  •  13-07-2023
  •  | 
  •  

سؤال

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

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top