ALTER USERGROUP statement 

The ALTER USERGROUP statement alters the properties assigned to a usergroup.

Syntax

<alter_usergroup_statement> ::= ALTER USERGROUP <usergroup_name> [<usergroup_mode>]
[PERMLIMIT <unsigned_integer> | PERMLIMIT NULL]
[TEMPLIMIT <unsigned_integer> | TEMPLIMIT NULL]
[TIMEOUT <unsigned_integer> | TIMEOUT NULL]
[COSTWARNING <unsigned_integer> | COSTWARNING NULL] [COSTLIMIT <unsigned_integer> | COSTLIMIT NULL]
[DEFAULT ROLE ALL [EXCEPT <role_name>]
| DEFAULT ROLE NONE
| DEFAULT ROLE <role_name> [IDENTIFIED BY <password>]]
[[NOT] EXCLUSIVE]

usergroup_name, usergroup_mode, unsigned_integer

Explanation

At least one of the optional clauses must be specified.

The specified usergroup must identify a defined usergroup.

The current user must have owner authorization over the usergroup whose properties are to be altered.

The members of the specified usergroup must not be logged onto the database system when the ALTER USERGROUP statement is executed.

User class of the usergroup (usergroup_mode)

NULL

If the NULL value is specified, the value defined previously is cancelled.

DEFAULT ROLE

DEFAULT ROLE defines which of the roles assigned to the usergroup is activated automatically when a session is opened by a group member.

 

PERMLIMIT, TEMPLIMIT, TIMEOUT, COSTWARNING, COSTLIMIT, and [NOT] EXCLUSIVE are described under the CREATE USERGROUP statement.

The PERMLIMIT specification may only be altered if the new value is greater than the current space requirement of all private tables.