ALTER ROLE

Function

ALTER ROLE changes the attributes of a role.

Important Notes

None

Syntax

Parameters

For details about other parameters, see Parameter Description in CREATE ROLE.

Example

Change the password of role manager.

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

Alter role manager to a 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