A system privilege confers the right to perform a particular action in the database or to perform an action on a type of schema objects. For example, the privileges to create tablespaces and to delete the rows of any table in a database are system privileges.
You can perform specific operations on mining models in other schemas if you have the appropriate system privileges. For example, CREATE ANY MINING MODEL
enables you to create models in other schemas. SELECT ANY MINING MODEL
enables you to apply models that reside in other schemas. You can add comments to models if you have the COMMENT ANY MINING MODEL
privilege.
To grant a system privilege, you must either have been granted the system privilege with the ADMIN OPTION
or have been granted the GRANT ANY PRIVILEGE
system privilege.
The system privileges listed in Table 8-2 control operations on mining models.
Table 8-2 System Privileges for Data Mining
System Privilege | Allows you to.... |
---|---|
|
Create mining models in your own schema. |
|
Create mining models in any schema. |
|
Change the name or cost matrix of any mining model in any schema. |
|
Drop any mining model in any schema. |
|
Apply a mining model in any schema, also view model details in any schema. |
|
Add a comment to any mining model in any schema. (See "Adding a Comment to a Mining Model".) |
|
Generate an audit trail for any mining model in any schema. (See Oracle Database Security Guide for details.) |
Example 8-8 Grant System Privileges for Data Mining
The following statements allow dmuser
to score data and view model details in any schema as long as SELECT
access has been granted to the data. However, dmuser
can only create models in the dmuser
schema.
GRANT CREATE MINING MODEL TO dmuser; GRANT SELECT ANY MINING MODEL TO dmuser;
The following statement revokes the privilege of scoring or viewing model details in other schemas. When this statement is executed, dmuser
can only perform data mining activities in the dmuser
schema.
REVOKE SELECT ANY MINING MODEL FROM dmuser;