The ALTER USER statement alters the properties assigned to a
user.Syntax
<alter_user_statement> ::= ALTER USER <user_name> [<user_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]
Explanation
At least one of the optional clauses must be specified.
The specified user name must identify a defined user, who is not a member of a usergroup.
The current user must have owner authorization over the user whose properties are to be altered.
The specified user must not be logged onto the database system when the ALTER USER statement is executed.
User class (user_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 user is activated automatically when a session is opened.
PERMLIMIT, TEMPLIMIT, TIMEOUT, COSTWARNING, COSTLIMIT, and [NOT] EXCLUSIVE are described under the
The PERMLIMIT specification may only be altered if the new value is greater than the current space requirement of all private tables.