role Keywords and Parameters
is the name of the role to be created. It is recommended that the role contain at least one single-byte character regardless of whether the database character set also contains multi-byte characters.
indicates that a user granted the role need not be verified when enabling it.
IDENTIFIED
indicates that a user granted the role must be verified when enabling it with the SET ROLE command:
BY password The user must specify the password to Oracle7 when enabling the role. The password can only contain single-byte characters from your database character set regardless of whether this character set also contains multi-byte characters.
If you omit both the NOT IDENTIFIED option and the IDENTIFIED clause, the role defaults to NOT IDENTIFIED.
A role's privilege domain contains all privileges granted to the role and all privileges in the privilege domains of the other roles granted to it. A new role's privilege domain is initially empty. You can add privileges to a role's privilege domain with the GRANT command.
When you create a role, Oracle7 grants you the role with ADMIN OPTION. The ADMIN OPTION allows you to perform the following operations:
The EXP_FULL_DATABASE and IMP_FULL_DATABASE roles are provided for convenience in using the Import and Export utilities.
For more information on these roles, see Table 4 - 12.
Oracle7 also creates other roles that authorize you to administer the database. On many operating systems, these roles are called OSOPER and OSDBA. Their names may be different on your operating system.
Example
The following statement creates the role TELLER:
CREATE ROLE teller IDENTIFIED BY cashflow
Users who are subsequently granted the TELLER role must specify the passwords CASHFLOW to enable the role.