ALTER ROLE

Function

Changes the attributes of a role.

Important Notes

None

Syntax

Parameters

Example

Modify the login permission of role manager.

1
ALTER ROLE manager login;

Change the password of role manager:

1
ALTER ROLE manager IDENTIFIED BY '{password}' REPLACE '{old_password}';

Alter role manager to the system administrator:

1
ALTER ROLE manager SYSADMIN;

Modify the fulluser information of the LDAP authentication role:

1
ALTER ROLE role2 WITH LOGIN AUTHINFO 'ldapcn=role2,cn=user2,dc=func,dc=com' PASSWORD DISABLE;

Change the validity period of the login password of the role to 90 days:

1
ALTER ROLE role3 PASSWORD EXPIRATION 90;

Links

CREATE ROLE, DROP ROLE, SET