Online Documentation for SQL Manager for DB2

Roles


All users interact with a DB2 server within the context of a Role. A user can belong to multiple groups and have multiple roles, and the operations that are permitted by each role determine the actions that a user can perform.

 

 

Creating Roles

 

To create a new role:

Hint: To create a new role, you can also right-click the Roles node of the DB Explorer tree and select the New Role... context menu item.

 

 

Editing Roles

 

To edit an existing role:

  • select the role for editing in the DB Explorer tree (type the first letters of the role name for quick search);
  • right-click the object and select the Edit Role <role_name>... context menu item, or simply double-click the role;
  • edit role definition using the appropriate tabs of Role Editor.

 

Dropping Roles

 

To drop a role:

  • select the role to drop in the DB Explorer tree;
  • right-click the object and select the Drop Role <role_name>... context menu item;
  • confirm dropping in the dialog window.

 

Note: If more convenient, you can also use the following shortcuts:

Ctrl+N to create a new role;

Ctrl+O to edit the selected role;

Shift+Del to drop the object from the database.