权限指用户操作某对象数据或者执行某种sql语句的权力,而角色指某些权限和角色的集合体,角色的出现方便了权限管理工作。权限的划分从某种意义上可以分为两个级别:
- 用户访问或者处理数据的权力
- 用户在使用某些资源的限制,例如cpu
- 系统权限:允许用户执行某些管理功能
- 对象权限:允许用户对某对象进行操作
- 角色:权限或者角色的集合体,方便管理
System Privilege Name | Operations Authorized |
---|---|
Advisor Framework Privileges: All of the advisor framework privileges are part of the DBA role. | — |
Access the advisor framework through PL/SQL packages such as Refer to Oracle Database PL/SQL Packages and Types Reference for information on these packages. | |
Create, drop, select (read), load (write), and delete a SQL tuning set owned by the grantee through the | |
Create, drop, select (read), load (write), and delete a SQL tuning set owned by any user through the | |
Accept a SQL Profile recommended by the SQL Tuning Advisor, which is accessed through Enterprise Manager or by the Note: This privilege has been deprecated in favor of | |
Alter the attributes of an existing SQL Profile. Note: This privilege has been deprecated in favor of | |
Drop an existing SQL Profile. Note: This privilege has been deprecated in favor of | |
Create, alter, and drop a SQL Profile owned by any user through the | |
— | |
Create clusters in the grantee's schema. | |
Create a cluster in any schema. Behaves similarly to | |
Alter clusters in any schema. | |
Drop clusters in any schema. | |
— | |
Create any context namespace. | |
Drop any context namespace. | |
— | |
Alter the database. | |
Issue | |
Issue | |
— | |
Create private database links in the grantee's schema. | |
Create public database links. | |
Modify a fixed-user database link when the password of the connection or authentication user changes. | |
Modify a public fixed-user database link when the password of the connection or authentication user changes. | |
Drop public database links. | |
— | |
Connect the current session to a debugger. | |
Debug all PL/SQL and Java code in any database object. Display information on all SQL statements executed by the application. Note: Granting this privilege is equivalent to granting the | |
— | |
| Analyze any data dictionary object. |
— | |
Create dimensions in the grantee's schema. | |
Create dimensions in any schema. | |
Alter dimensions in any schema. | |
Drop dimensions in any schema. | |
— | |
Create directory database objects. | |
Drop directory database objects. | |
— | |
| Create editions. |
| Drop editions. |
— | |
Create, alter, or drop any flashback data archive. | |
— | |
Create an indextype in the grantee's schema. | |
Create an indextype in any schema and create a comment on an indextype in any schema. | |
Modify indextypes in any schema. | |
Drop an indextype in any schema. | |
Reference an indextype in any schema. | |
— | |
Create in any schema a domain index or an index on any table in any schema. | |
Alter indexes in any schema. | |
Drop indexes in any schema. | |
The following privileges are needed to execute procedures in the | |
Create jobs, schedules, or programs in the grantee's schema. | |
Create, alter, or drop jobs, chains, schedules, programs, or credentials in any schema except Caution: This extremely powerful privilege allows the grantee to execute code as any other user. It should be granted with caution. | |
Create in the grantee's schema an executable scheduler job that runs on the operating system. | |
Use any program in a job in the grantee's schema. | |
Specify any job class in a job in the grantee's schema. | |
Create, alter, or drop any job class, window, or window group. | |
Caution: | |
Create external procedure or function libraries in the grantee's schema. | |
Create external procedure or function libraries in any schema. | |
Alter external procedure or function libraries in any schema. | |
Drop external procedure or function libraries in any schema. | |
Use external procedure or function libraries in any schema. | |
— | |
Create a materialized view in the grantee's schema. | |
Create materialized views in any schema. | |
Alter materialized views in any schema. | |
Drop materialized views in any schema. | |
This privilege has been deprecated. No privileges are needed for a user to enable rewrite for a materialized view that references tables or views in the user's own schema. | |
Enable rewrite using a materialized view when that materialized view references tables or views in any schema. | |
Create a refresh-on-commit materialized view on any table in the database. Alter a refresh-on-demand materialized on any table in the database to refresh-on-commit. | |
Issue a SQL Flashback Query on any table, view, or materialized view in any schema. This privilege is not needed to execute the | |
MINING MODELS: | — |
Create mining models in the grantee's schema using the | |
Create mining models in any schema using the | |
Change the mining model name or the associated cost matrix of any model in any schema by using the applicable | |
Drop any mining model in any schema by using the | |
Score or view any model in any schema. Scoring is done either with the | |
Create a comment on any model in any schema using the SQL | |
OLAP CUBES: | The following privileges are valid when you are using Oracle Database with the OLAP option. |
Create an OLAP cube in the grantee's schema. | |
Create an OLAP cube in any schema. | |
Alter an OLAP cube in any schema. | |
Drop any OLAP cube in any schema. | |
Query or view any OLAP cube in any schema. | |
Update any cube in any schema. | |
OLAP CUBE MEASURE FOLDERS: | The following privileges are valid when you are using Oracle Database with the OLAP option. |
Create an OLAP measure folder in the grantee's schema. | |
Create an OLAP measure folder in any schema. | |
Delete from any OLAP measure folder in any schema. | |
Drop any measure folder in any schema. | |
Insert a measure into any measure folder in any schema. | |
OLAP CUBE DIMENSIONS: | The following privileges are valid when you are using Oracle Database with the OLAP option. |
Create an OLAP cube dimension in the grantee's schema. | |
Create an OLAP cube dimension in any schema. | |
Alter an OLAP cube dimension in any schema. | |
Delete from an OLAP cube dimension in any schema. | |
Drop an OLAP cube dimension in any schema. | |
Insert into an OLAP cube dimension in any schema. | |
View or query an OLAP cube dimension in any schema. | |
Update an OLAP cube dimension in any schema. | |
OLAP CUBE BUILD PROCESSES: | — |
Create an OLAP cube build process in the grantee's schema. | |
Create an OLAP cube build process in any schema. | |
Drop an OLAP cube build process in any schema. | |
Update an OLAP cube build process in any schema. | |
— | |
Create an operator and its bindings in the grantee's schema. | |
Create an operator and its bindings in any schema and create a comment on an operator in any schema. | |
Modify an operator in any schema. | |
Drop an operator in any schema. | |
Reference an operator in any schema. | |
— | |
Create public outlines that can be used in any schema that uses outlines. | |
Modify outlines. | |
Drop outlines. | |
— | |
Perform controlled manipulation of plan history and SQL plan baselines maintained for various SQL statements. | |
— | |
Create stored procedures, functions, and packages in the grantee's schema. | |
Create stored procedures, functions, and packages in any schema. | |
Alter stored procedures, functions, or packages in any schema. | |
Drop stored procedures, functions, or packages in any schema. | |
Execute procedures or functions, either standalone or packaged. Reference public package variables in any schema. | |
— | |
Create profiles. | |
Alter profiles. | |
Drop profiles. | |
— | |
Create roles. | |
Alter any role in the database. | |
Drop roles. | |
Grant any role in the database. | |
— | |
Create rollback segments. | |
Alter rollback segments. | |
Drop rollback segments. | |
— | |
Create sequences in the grantee's schema. | |
Create sequences in any schema. | |
Alter any sequence in the database. | |
Drop sequences in any schema. | |
Reference sequences in any schema. | |
— | |
Connect to the database. | |
Set costs for session resources. | |
Enable and disable the SQL trace facility. | |
Logon after the instance is started using the SQL*Plus | |
SNAPSHOTS: | See |
— | |
Create synonyms in the grantee's schema. | |
Create private synonyms in any schema. | |
Create public synonyms. | |
Drop private synonyms in any schema. | |
Drop public synonyms. | |
Note: For external tables, the only valid privileges are | |
Create a table in the grantee's schema. | |
Create a table in any schema. The owner of the schema containing the table must have space quota on the tablespace to contain the table. | |
Alter any table or view in any schema. | |
Use the Export utility to incrementally export objects from the schema of other users. | |
Delete rows from tables, table partitions, or views in any schema. | |
Drop or truncate tables or table partitions in any schema. | |
Insert rows into tables and views in any schema. | |
Lock tables and views in any schema. | |
Query tables, views, or materialized views in any schema. | |
Issue a SQL Flashback Query on any table, view, or materialized view in any schema. This privilege is not needed to execute the | |
Update rows in tables and views in any schema. | |
— | |
Create tablespaces. | |
Alter tablespaces. | |
Drop tablespaces. | |
Take tablespaces offline and online and begin and end tablespace backups. | |
Use an unlimited amount of any tablespace. This privilege overrides any specific quotas assigned. If you revoke this privilege from a user, then the user's schema objects remain but further tablespace allocation is denied unless authorized by specific tablespace quotas. You cannot grant this system privilege to roles. | |
— | |
Create a database trigger in the grantee's schema. | |
Create database triggers in any schema. | |
Enable, disable, or compile database triggers in any schema. | |
Drop database triggers in any schema. | |
Create a trigger on | |
— | |
Create object types and object type bodies in the grantee's schema. | |
Create object types and object type bodies in any schema. | |
Alter object types in any schema. | |
Drop object types and object type bodies in any schema. | |
Use and reference object types and collection types in any schema, and invoke methods of an object type in any schema if you make the grant to a specific user. If you grant | |
Create subtypes under any nonfinal object types. | |
— | |
Create users. This privilege also allows the creator to:
| |
Alter any user. This privilege authorizes the grantee to:
| |
Drop users | |
— | |
Create views in the grantee's schema. | |
Create views in any schema. | |
Drop views in any schema. | |
Create subviews under any object views. | |
Issue a SQL Flashback Query on any table, view, or materialized view in any schema. This privilege is not needed to execute the | |
If a user has been granted the | |
MISCELLANEOUS: | — |
Analyze any table, cluster, or index in any schema. | |
Audit any object in any schema using | |
Allows users of the Data Pump Import utility (impdp) and the original Import utility (imp) to assume the identity of another user in order to perform operations that cannot be directly performed by a third party (for example, loading objects such as object privilege grants). Allows Streams administrators to create or alter capture users and apply users in a Streams environment. By default this privilege is part of the DBA role. Database Vault removes this privileges from the DBA role. Therefore, this privilege is needed by Streams only in an environment where Database Vault is installed. | |
Create a registration on queries and receive database change notifications in response to DML or DDL changes to the objects associated with the registered queries. Refer to Oracle Database Advanced Application Developer's Guide for more information on database change notification. | |
Comment on any table, view, or column in any schema. | |
Bypass fine-grained access control. Caution: This is a very powerful system privilege, as it lets the grantee bypass application-driven security policies. Database administrators should use caution when granting this privilege. | |
Force the commit or rollback of any in-doubt distributed transaction in the local database. Induce the failure of a distributed transaction. | |
Force the commit or rollback of the grantee's in-doubt distributed transactions in the local database. | |
Grant any object privilege that the object owner is permitted to grant. Revoke any object privilege that was granted by the object owner or by some other user with the | |
Grant any system privilege. | |
Enable resumable space allocation. | |
Query any data dictionary object in the | |
| Query the contents of the Caution: This is a very powerful system privilege, as it lets the grantee view all data in the database, including past data. This privilege should be granted only to users who need to use the Oracle Flashback Transaction Query feature. |
Perform
Includes the | |
Perform
Includes the |
对象权限:
Object Privilege | Operations Authorized |
---|---|
DIRECTORY PRIVILEGES | The following directory privileges provide secured access to the files stored in the operating system directory to which the directory object serves as a pointer. The directory object contains the full path name of the operating system directory where the files reside. Because the files are actually stored outside the database, Oracle Database server processes also need to have appropriate file permissions on the file system server. Granting object privileges on the directory database object to individual database users, rather than on the operating system, allows the database to enforce security during file operations. |
Read files in the directory. | |
Write files in the directory. This privilege is useful only in connection with external tables. It allows the grantee to determine whether the external table agent can write a log file or a bad file to the directory. Restriction: This privilege does not allow the grantee to write to a | |
Execute a preprocessor program that resides in the directory. A preprocessor program converts data to a supported format when loading data records from an external table with the | |
EDITION PRIVILEGE | The following edition privilege authorizes the use of an edition. |
| Use an edition. |
INDEXTYPE PRIVILEGE | The following indextype privilege authorizes operations on indextypes. |
| Reference an indextype. |
The following flashback data archive privilege authorizes operations on flashback data archives. | |
| Enable or disable historical tracking for a table. |
LIBRARY PRIVILEGE | The following library privilege authorizes operations on a library. |
Use and reference the specified object and invoke its methods. Caution: This extremely powerful privilege should be granted only to trusted users. Refer to Oracle Database Security Guide before granting this privilege. | |
MATERIALIZED VIEW PRIVILEGES | The following materialized view privileges authorize operations on a materialized view. The |
Create a refresh-on-commit materialized view on the specified table. | |
Create a materialized view for query rewrite using the specified table. | |
Query the materialized view with the | |
MINING MODEL PRIVILEGES | The following mining model privileges authorize operations on a mining model. These privileges are not required for models within the users own schema. |
Change the mining model name or the associated cost matrix using the applicable | |
Score or view the mining model. Scoring is done with the | |
OBJECT TYPE PRIVILEGES | The following object type privileges authorize operations on a database object type. |
Access, through a debugger, all public and nonpublic variables, methods, and types defined on the object type. Place a breakpoint or stop at a line or instruction boundary within the type body. | |
Use and reference the specified object and invoke its methods. Access, through a debugger, public variables, types, and methods defined on the object type. | |
Create a subtype under this type. You can grant this object privilege only if you have the | |
OLAP PRIVILEGES | The following object privileges are valid if you are using Oracle Database with the OLAP option. |
Insert members into the OLAP cube dimension or measures into the measures folder. | |
Change the definition of the OLAP cube dimension or cube. | |
Delete members from the OLAP cube dimension or measures from the measures folder. | |
View or query the OLAP cube or cube dimension. | |
Update measure values of the OLAP cube or attribute values of the cube dimension. | |
OPERATOR PRIVILEGE | The following operator privilege authorizes operations on user-defined operators. |
Reference an operator. | |
PROCEDURE, FUNCTION, PACKAGE PRIVILEGES | The following procedure, function, and package privileges authorize operations on procedures, functions, and packages. These privileges also apply to Java sources, classes, and resources, which Oracle Database treats as though they were procedures for purposes of granting object privileges. |
Access, through a debugger, all public and nonpublic variables, methods, and types defined on the object. Place a breakpoint or stop at a line or instruction boundary within the procedure, function, or package. This privilege grants access to the declarations in the method or package specification and body. | |
| Execute the procedure or function directly, or access any program object declared in the specification of a package, or compile the object implicitly during a call to a currently invalid or uncompiled function or procedure. This privilege does not allow the grantee to explicitly compile using Access, through a debugger, public variables, types, and methods defined on the procedure, function, or package. This privilege grants access to the declarations in the method or package specification only. Job scheduler objects are created using the Note: Users do not need this privilege to execute a procedure, function, or package indirectly. |
SCHEDULER PRIVILEGES | Job scheduler objects are created using the |
| Operations on job classes, programs, chains, and credentials. |
| Modifications to jobs, programs, chains, credentials, and schedules. |
SEQUENCE PRIVILEGES | The following sequence privileges authorize operations on a sequence. |
Change the sequence definition with the | |
Examine and increment values of the sequence with the | |
SYNONYM PRIVILEGES | Synonym privileges are the same as the privileges for the target object. Granting a privilege on a synonym is equivalent to granting the privilege on the base object. Similarly, granting a privilege on a base object is equivalent to granting the privilege on all synonyms for the object. If you grant to a user a privilege on a synonym, then the user can use either the synonym name or the base object name in the SQL statement that exercises the privilege. |
TABLE PRIVILEGES | The following table privileges authorize operations on a table. Any one of following object privileges allows the grantee to lock the table in any lock mode with the Note: For external tables, the only valid object privileges are |
Change the table definition with the | |
Remove rows from the table with the Note: You must grant the | |
Access, through a debugger:
| |
Create an index on the table with the | |
Add new rows to the table with the Note: You must grant the | |
Create a constraint that refers to the table. You cannot grant this privilege to a role. | |
Query the table with the | |
Change data in the table with the Note: You must grant the | |
VIEW PRIVILEGES | The following view privileges authorize operations on a view. Any one of the following object privileges allows the grantee to lock the view in any lock mode with the To grant a privilege on a view, you must have that privilege with the |
Access, through a debugger:
| |
Remove rows from the view with the | |
Add new rows to the view with the | |
This object privilege has the same behavior as the system privilege | |
Define foreign key constraints on the view. | |
Query the view with the See Also: object_privilege for additional information on granting this object privilege on a view | |
Create a subview under this view. You can grant this object privilege only if you have the | |
Change data in the view with the |
DIRECTORY PRIVILEGES | The following directory privileges provide secured access to the files stored in the operating system directory to which the directory object serves as a pointer. The directory object contains the full path name of the operating system directory where the files reside. Because the files are actually stored outside the database, Oracle Database server processes also need to have appropriate file permissions on the file system server. Granting object privileges on the directory database object to individual database users, rather than on the operating system, allows the database to enforce security during file operations. |
Read files in the directory. | |
Write files in the directory. This privilege is useful only in connection with external tables. It allows the grantee to determine whether the external table agent can write a log file or a bad file to the directory. Restriction: This privilege does not allow the grantee to write to a | |
Execute a preprocessor program that resides in the directory. A preprocessor program converts data to a supported format when loading data records from an external table with the | |
EDITION PRIVILEGE | The following edition privilege authorizes the use of an edition. |
| Use an edition. |
INDEXTYPE PRIVILEGE | The following indextype privilege authorizes operations on indextypes. |
| Reference an indextype. |
The following flashback data archive privilege authorizes operations on flashback data archives. | |
| Enable or disable historical tracking for a table. |
LIBRARY PRIVILEGE | The following library privilege authorizes operations on a library. |
Use and reference the specified object and invoke its methods. Caution: This extremely powerful privilege should be granted only to trusted users. Refer to Oracle Database Security Guide before granting this privilege. | |
MATERIALIZED VIEW PRIVILEGES | The following materialized view privileges authorize operations on a materialized view. The |
Create a refresh-on-commit materialized view on the specified table. | |
Create a materialized view for query rewrite using the specified table. | |
Query the materialized view with the | |
MINING MODEL PRIVILEGES | The following mining model privileges authorize operations on a mining model. These privileges are not required for models within the users own schema. |
Change the mining model name or the associated cost matrix using the applicable | |
Score or view the mining model. Scoring is done with the | |
OBJECT TYPE PRIVILEGES | The following object type privileges authorize operations on a database object type. |
Access, through a debugger, all public and nonpublic variables, methods, and types defined on the object type. Place a breakpoint or stop at a line or instruction boundary within the type body. | |
Use and reference the specified object and invoke its methods. Access, through a debugger, public variables, types, and methods defined on the object type. | |
Create a subtype under this type. You can grant this object privilege only if you have the | |
OLAP PRIVILEGES | The following object privileges are valid if you are using Oracle Database with the OLAP option. |
Insert members into the OLAP cube dimension or measures into the measures folder. | |
Change the definition of the OLAP cube dimension or cube. | |
Delete members from the OLAP cube dimension or measures from the measures folder. | |
View or query the OLAP cube or cube dimension. | |
Update measure values of the OLAP cube or attribute values of the cube dimension. | |
OPERATOR PRIVILEGE | The following operator privilege authorizes operations on user-defined operators. |
Reference an operator. | |
PROCEDURE, FUNCTION, PACKAGE PRIVILEGES | The following procedure, function, and package privileges authorize operations on procedures, functions, and packages. These privileges also apply to Java sources, classes, and resources, which Oracle Database treats as though they were procedures for purposes of granting object privileges. |
Access, through a debugger, all public and nonpublic variables, methods, and types defined on the object. Place a breakpoint or stop at a line or instruction boundary within the procedure, function, or package. This privilege grants access to the declarations in the method or package specification and body. | |
| Execute the procedure or function directly, or access any program object declared in the specification of a package, or compile the object implicitly during a call to a currently invalid or uncompiled function or procedure. This privilege does not allow the grantee to explicitly compile using Access, through a debugger, public variables, types, and methods defined on the procedure, function, or package. This privilege grants access to the declarations in the method or package specification only. Job scheduler objects are created using the Note: Users do not need this privilege to execute a procedure, function, or package indirectly. |
SCHEDULER PRIVILEGES | Job scheduler objects are created using the |
| Operations on job classes, programs, chains, and credentials. |
| Modifications to jobs, programs, chains, credentials, and schedules. |
SEQUENCE PRIVILEGES | The following sequence privileges authorize operations on a sequence. |
Change the sequence definition with the | |
Examine and increment values of the sequence with the | |
SYNONYM PRIVILEGES | Synonym privileges are the same as the privileges for the target object. Granting a privilege on a synonym is equivalent to granting the privilege on the base object. Similarly, granting a privilege on a base object is equivalent to granting the privilege on all synonyms for the object. If you grant to a user a privilege on a synonym, then the user can use either the synonym name or the base object name in the SQL statement that exercises the privilege. |
TABLE PRIVILEGES | The following table privileges authorize operations on a table. Any one of following object privileges allows the grantee to lock the table in any lock mode with the Note: For external tables, the only valid object privileges are |
Change the table definition with the | |
Remove rows from the table with the Note: You must grant the | |
Access, through a debugger:
| |
Create an index on the table with the | |
Add new rows to the table with the Note: You must grant the | |
Create a constraint that refers to the table. You cannot grant this privilege to a role. | |
Query the table with the | |
Change data in the table with the Note: You must grant the | |
VIEW PRIVILEGES | The following view privileges authorize operations on a view. Any one of the following object privileges allows the grantee to lock the view in any lock mode with the To grant a privilege on a view, you must have that privilege with the |
Access, through a debugger:
| |
Remove rows from the view with the | |
Add new rows to the view with the | |
This object privilege has the same behavior as the system privilege | |
Define foreign key constraints on the view. | |
Query the view with the See Also: object_privilege for additional information on granting this object privilege on a view | |
Create a subview under this view. You can grant this object privilege only if you have the | |
Change data in the view with the |