Purpose
Used to modify the authentication method of a role.
Note
Users who have already been granted the role are not affected.
Syntax
ALTER ROLE role_name
{ NOT IDENTIFIED
| IDENTIFIED BY password
} ;
Parameters
| Parameter | Description |
|---|---|
role_name |
The name of the role to be modified. It can be a string, a NAME_OB value, or a predefined role name (DBA, RESOURCE, CONNECT, or PUBLIC). |
NOT IDENTIFIED |
Specifies that no authentication method is used when the role is enabled. |
IDENTIFIED BY password |
Specifies the password for authenticating the role. Note Users granted the role must specify a password to enable the role using the SET ROLE statement. |
Examples
Create a role named
role1and change the authentication method of the role to use password authentication with the passwordpassword1.obclient> CREATE ROLE role1; obclient> ALTER ROLE role1 IDENTIFIED BY password1;Change the authentication password of the role
role1topassword2.obclient> ALTER ROLE role1 IDENTIFIED BY password2;Change the role
role1to not use any authentication method.obclient> ALTER ROLE role1 NOT IDENTIFIED;
