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

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

  •  13-07-2023
  •  | 
  •  

Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top