OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.0.0Enterprise Edition

  • Overview
    • Overview
    • System architecture
    • Compatibility with MySQL
    • Compatibility with Oracle
      • Overview
      • SQL data types
      • Built-in functions
      • System views
    • Limits
  • Get Started
    • Quick start with OceanBase Database
    • Hands on for OceanBase SQL
      • Usage notes
      • Basic SQL operations (MySQL mode)
      • Basic SQL operations (Oracle mode)
    • Build applications (MySQL Mode)
      • Connect Python applications to OceanBase Database
      • Connect Java applications to OceanBase Database
      • Connect C applications to OceanBase Database
    • Build applications(Oracle Mode)
      • Connect Python applications to OceanBase Database
      • Connect Java applications to OceanBase Database
      • Connect C applications to OceanBase Database
    • Experience OceanBase advanced features
      • Experience scalable OLTP
        • Run the TPC-C benchmark in OceanBase Database
        • Experience the hot row update capability of OceanBase Database
      • Experience operational OLAP
      • Experience parallel import and data compression
      • Experience the multitenancy feature
  • Develop
    • Develop (MySQL Mode)
      • Connect to Oceanbase Database with client
        • Overview
        • Connect to an OceanBase Database tenant by using a MySQL client
        • Connect to an OceanBase Database tenant by using OBClient
        • Connect to OceanBase Database by using ODC
        • Java application
          • OceanBase Connector/J
          • Java APIs
          • Connect Java applications to OceanBase Database
        • C application
          • OceanBase Connector/C
          • C API functions
          • Connect C applications to OceanBase Database
        • Python applications
        • SpringBoot connection example
        • SpringBatch connection example
        • Example of Database connection pool configuration
          • Overview of database connection pool configuration
          • Example of configuring a Tomcat connection pool
          • Example of configuring a C3P0 connection pool
          • Example of configuring a Proxool connection pool
          • Example of configuring a HiKariCP connection pool
          • Example of configuring a DBCP connection pool
          • CommonPool configuration example
          • Example of configuring a JDBC connection pool
        • SpringJDBC connection example
        • SpringJPA connection example
        • Hibernate connection example
        • MyBatis connection example
      • Create and manage database objects
        • About DDL statements
        • View the currently connected database
        • Change the password of a user
        • Data type
          • General data types
          • Unsupported data types
        • Create and manage tables
          • About tables
          • Create a table
          • About auto-increment columns
          • About types of column constraints
          • About table structure modification
          • About table clearing
          • About table dropping
          • Flash back a dropped table
          • About table privileges
        • Create and manage partition tables
          • About partitioned tables
          • Create a partitioned table
          • Manage a partitioned table
          • Create a subpartitioned table
          • Manage a subpartitioned table
          • Partition routing
          • Indexes on partitioned tables
          • Suggestions on using partitioned tables
        • Create and manage indexes
          • About indexes
          • Create an index
          • Drop an index
        • Create and manage views
          • About views
          • Create a view
          • Modify a view
          • Delete a view
        • Create and manage sequences
          • About sequences
          • Create a sequence
          • Modify a sequence
          • Delete a sequence
        • Create and manage triggers
          • About triggers
          • Create a trigger
          • Delete a trigger
      • Query
        • About queries
        • Single-table queries
        • Conditional queries
        • ORDER BY queries
        • GROUP BY queries
        • Use the LIMIT clause in queries
        • Query data from multiple tables
          • About multi-table join queries
          • INNER JOIN queries
          • OUTER JOIN queries
          • Subqueries
        • Use operators and functions in a query
          • Use arithmetic operators in queries
          • Use numerical functions in queries
          • Use string connectors in queries
          • Use string functions in queries
          • Use datetime functions in queries
          • Use type conversion functions in queries
          • Use aggregate functions in queries
          • Use NULL-related functions in queries
          • Use the CASE conditional operator in queries
          • Use the SELECT FOR UPDATE statement to lock query results
        • Execution plan
          • View an execution plan
          • Understand an execution plan
        • Use SQL hints in queries
        • Variables of query timeout
      • DML statements and transactions
        • DML statement
          • About DML statements
          • About the INSERT statement
          • UPDATE statements
          • About the DELETE statement
          • About the REPLACE INTO statement
        • Transactions
          • About transaction control statements
          • Start a transaction
          • Transaction savepoints
          • Commit a transaction
          • Roll back a transaction
          • About transaction timeout
      • Common errors and solutions
        • About error codes
        • Database connection error
        • About timeout
          • Idle session timeout
          • Transaction timeout errors
        • About user
          • Locked user
          • Incorrect user password
        • About table
          • Table already exists
          • Table does not exist
          • Invalid use of NULL value
        • About constraint
          • Unique key conflict
          • Foreign key conflict
        • About SQL commands
          • Data truncation
    • Develop (Oracle Mode)
      • Connect to Oceanbase Database with client
        • Overview
        • Connect to an OceanBase tenant by using an Oracle client
        • Connect to an OceanBase Database tenant by using OBClient
        • Connect to OceanBase Database by using ODC
      • Application development
        • Java application
          • OceanBase Connector/J
          • Java APIs
          • Connect Java applications to OceanBase Database
        • Python application
          • OceanBase Connector/J in Python
          • Python APIs
          • Connect Python applications to OceanBase Database
        • 300.c-application-1
          • OceanBase Connector/C
          • OBCI APIs
          • Connect C applications to OceanBase Database
      • Create and manage database objects
        • About DDL statements
        • View the currently connected database
        • Change the password of a user
        • Data type
          • General data types
          • Unsupported data types
        • Create and manage tables
          • About tables
          • Create a table
          • Define an auto-increment column by using the SEQUENCE keyword
          • About types of column constraints
          • About table structure modification
          • About table clearing
          • About table dropping
          • Flash back a dropped table
          • About table privileges
        • Create and manage partition tables
          • About partitioned tables
          • Create a partitioned table
          • Manage a partitioned table
          • Create a subpartitioned table
          • Manage a subpartitioned table
          • Partition routing
          • Indexes on partitioned tables
          • Suggestions on using partitioned tables
        • Create and manage indexes
          • Drop an index
          • About indexes
          • Create an index
        • Create and manage views
          • About views
          • Create a view
          • Modify a view
          • Drop a view
        • Create and manage sequences
          • About sequences
          • Create a sequence
          • Modify a sequence
          • Delete a sequence
        • Create and manage synonyms
          • About synonyms
          • Create a synonym
          • Delete a synonym
        • Create and manage triggers
          • About triggers
          • Create a trigger
          • Modify a trigger
          • Delete a trigger
          • Enable or disable a trigger
      • Query
        • About queries
        • Single-table queries
        • Conditional queries
        • ORDER BY queries
        • GROUP BY queries
        • Use Row_Limiting_Clause in queries
        • Query data from multiple tables
          • About multi-table join queries
          • INNER JOIN queries
          • OUTER JOIN queries
          • Subqueries
        • Use operators and functions in a query
          • Use arithmetic operators in queries
          • Use numerical functions in queries
          • Use string concatenation operators in queries
          • Use string functions in queries
          • Use datetime functions in queries
          • Use type conversion functions in queries
          • Use aggregate functions in queries
          • Use NULL-related functions in queries
          • Use CASE functions in queries
          • Use the SELECT FOR UPDATE statement to lock query results
        • Execution plan
          • View execution plans of queries
          • Understand an execution plan
        • Use SQL hints in queries
        • About query timeout variables
      • DML statements and transactions
        • DML statement
          • About DML statements
          • About the INSERT statement
          • UPDATE statements
          • About the MERGE statement
          • About the DELETE statement
        • Transactions
          • About transaction control statements
          • Start a transaction
          • Transaction savepoints
          • Commit a transaction
          • Roll back a transaction
          • About transaction timeout
      • Common errors and solutions
        • Overview
        • Database connection error
        • About timeout
          • Idle session timeout
          • Transaction timeout errors
        • About user
          • Locked user
          • Incorrect user password
        • About object
          • Object already exists
          • Object does not exist
        • About constraint
          • Unique key conflict
          • Foreign key conflict
        • About sql
          • Data type inconsistency
  • Deploy
    • Overview
    • Deployment procedure
    • Preparations before deployment
      • Prepare servers
      • Configure servers
      • Prepare installation packages
    • HA solution for OceanBase clusters
    • Deploy through the CLI
      • Configure the deployment environment
        • Install oat-cli
        • Use oat-cli to configure the deployment environment
        • Configure the clock source
        • Upload installation packages
        • Configure host information
        • Check the environment before deployment
      • Deploy OCP
        • Deployment description
        • Generate a configuration file
        • Start deployment
        • Check after deployment
      • Deploy the OceanBase cluster
        • Deploy a single-replica OceanBase cluster
        • Deploy a three-replica OceanBase cluster
      • Deploy OBProxy
        • Deploy OBProxy through the CLI
      • Create an OceanBase tenant
        • View resources available for a business tenant
        • Create a tenant
        • Verify after deployment
      • Deploy OMS
        • Deployment description
        • Modify the configuration file
        • Start deployment
        • Check after deployment
      • Deploy ODC
        • Deployment description
        • Modify the configuration file
        • Start deployment
        • Check after deployment
  • Migrate
    • Overview
    • Migrate data by using SQL scripts
    • Migrate data by using MySQLDump
    • Migrate data by using DataX
    • Migrate data by using OUTFILE statements

Download PDF

Overview System architecture Compatibility with MySQL Overview SQL data types Built-in functions System views Limits Quick start with OceanBase Database Usage notes Basic SQL operations (MySQL mode) Basic SQL operations (Oracle mode) Connect Python applications to OceanBase Database Connect Java applications to OceanBase Database Connect C applications to OceanBase Database Connect Python applications to OceanBase Database Connect Java applications to OceanBase Database Connect C applications to OceanBase Database Experience operational OLAP Experience parallel import and data compression Experience the multitenancy feature Overview Deployment procedure Prepare servers Configure servers Prepare installation packages HA solution for OceanBase clustersOverview Migrate data by using SQL scripts Migrate data by using MySQLDumpMigrate data by using DataX Migrate data by using OUTFILE statements
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Database
  3. SQL
  4. V4.0.0
iconOceanBase Database
SQL - V 4.0.0Enterprise Edition
SQL
KV
  • V 4.4.2
  • V 4.3.5
  • V 4.3.3
  • V 4.3.1
  • V 4.3.0
  • V 4.2.5
  • V 4.2.2
  • V 4.2.1
  • V 4.2.0
  • V 4.1.0
  • V 4.0.0
  • V 3.1.4 and earlier

About table privileges

Last Updated:2023-07-24 09:52:12  Updated
share
What is on this page
Grant privileges
Overview
Syntax
Parameters
Examples
Revoke privileges
Prerequisites
Syntax
Parameters
Privileges that can be revoked
Examples

folded

share

This topic describes how to grant and revoke table privileges.

Grant privileges

Overview

System administrators can use this statement to grant object privileges, system privileges, and roles to users.

Note

  • To grant object privileges, you must be the owner of the object, or have the GRANT OPTION privilege and the privileges to be granted. For example, if user1 wants to grant the SELECT privilege on the tbl1 table to user2, user1 must have the GRANT OPTION privilege and the SELECT privilege on tbl1.
  • To grant system privileges or roles to a user, you must have the GRANT OPTION privilege and the privileges or roles to be granted.
  • After a user is granted a role, the privileges of the role takes effect only after the user reconnects to OceanBase Database.
  • The privileges directly granted to a user take effect immediately.

Syntax

/*Grant object privileges*/
GRANT obj_with_col_priv_list
    ON obj_clause TO grant_list [WITH GRANT OPTION];

obj_with_col_priv_list:
    obj_with_col_priv
    | obj_with_col_priv_list, obj_with_col_priv

obj_with_col_priv:
    obj_privilege [column_list]

obj_privilege:
    ALTER
    | DELETE
    | INDEX
    | INSERT
    | SELECT
    | UPDATE
    | REFERENCES
    | EXECUTE

obj_clause:
    relation_name
    | relation_name '.' relation_name
    | DIRECTORY relation_name

grantee_list:
    grantee_user_list[,grantee_role_list]

grantee_user_list:
    user_name[,user_name...]

grantee_role_list:
    role_name [, role_name ...]

/*Grant system privileges*/
GRANT {system_privilege_list | ALL PRIVILEGES}
    TO grantee_list [IDENTIFIED BY password];

system_privilege_list:
    system_privilege [, system_privilege ...]

grantee_user_list:
    user_name[,user_name...]

grantee_role_list:
    role_name [, role_name ...]

system_privilege:
    CREATE SESSION
    | EXEMPT REDACTION POLICY
    | SYSDBA
    | SYSOPER
    | SYSBACKUP
    | CREATE TABLE
    | CREATE ANY TABLE
    | ALTER ANY TABLE
    | BACKUP ANY TABLE
    | DROP ANY TABLE
    | LOCK ANY TABLE
    | COMMENT ANY TABLE
    | SELECT ANY TABLE
    | INSERT ANY TABLE
    | UPDATE ANY TABLE
    | DELETE ANY TABLE
    | FLASHBACK ANY TABLE
    | CREATE ROLE
    | DROP ANY ROLE
    | GRANT ANY ROLE
    | ALTER ANY ROLE
    | AUDIT ANY
    | GRANT ANY PRIVILEGE
    | GRANT ANY OBJECT PRIVILEGE
    | CREATE ANY INDEX
    | ALTER ANY INDEX
    | DROP ANY INDEX
    | CREATE ANY VIEW
    | DROP ANY VIEW
    | CREATE VIEW
    | SELECT ANY DICTIONARY
    | CREATE PROCEDURE
    | CREATE ANY PROCEDURE
    | ALTER ANY PROCEDURE
    | DROP ANY PROCEDURE
    | EXECUTE ANY PROCEDURE
    | CREATE SYNONYM
    | CREATE ANY SYNONYM
    | DROP ANY SYNONYM
    | CREATE PUBLIC SYNONYM
    | DROP PUBLIC SYNONYM
    | CREATE SEQUENCE
    | CREATE ANY SEQUENCE
    | ALTER ANY SEQUENCE
    | DROP ANY SEQUENCE
    | SELECT ANY SEQUENCE
    | CREATE TRIGGER
    | CREATE ANY TRIGGER
    | ALTER ANY TRIGGER
    | DROP ANY TRIGGER
    | CREATE PROFILE
    | ALTER PROFILE
    | DROP PROFILE
    | CREATE USER
    | ALTER USER
    | DROP USER
    | CREATE TYPE
    | CREATE ANY TYPE
    | ALTER ANY TYPE
    | DROP ANY TYPE
    | EXECUTE ANY TYPE
    | UNDER ANY TYPE
    | PURGE DBA_RECYCLEBIN
    | CREATE ANY OUTLINE
    | ALTER ANY OUTLINE
    | DROP ANY OUTLINE
    | SYSKM
    | CREATE TABLESPACE
    | ALTER TABLESPACE
    | DROP TABLESPACE
    | SHOW PROCESS
    | ALTER SYSTEM
    | CREATE DATABASE LINK
    | CREATE PUBLIC DATABASE LINK
    | DROP DATABASE LINK
    | ALTER SESSION
    | ALTER DATABASE

/*Grant roles.*/
GRANT role_list TO grantee_list [IDENTIFIED BY password][WITH ADMIN OPTION];

role_list:
    role_name [, role_name ...]

grantee_list:
    grantee_user_list[,grantee_role_list]

grantee_user_list:
    user_name[,user_name...]

grantee_role_list:
    role_name [, role_name ...]

Parameters

Parameter Description
obj_with_col_priv The type of the privilege to be granted. For information about the specific privilege types and their description, see the following table. To grant multiple privileges to a user, separate the types with commas (,).
system_privilege Specifies the type of the system privilege to be granted. To grant multiple privileges to a user, separate the types with commas (,).
obj_clause The object involved in object privileges.
WITH GRANT OPTION Specifies whether to enable privilege delegation. When privilege delegation is enabled, grant revocation extends to dependent users.
WITH ADMIN OPTION Specifies whether to enable admin privilege delegation. When admin privilege delegation is enabled, grant revocation does not extend to dependent users.
grantee_list The list of objects to which privileges or roles are to be granted.

Such objects can be roles or users.

user_name The username.
role_name The role name.

The following table lists the types of privileges that can be granted.

Privilege type Description
ALL PRIVILEGES All privileges except GRANT OPTION.
ALTER The ALTER TABLE privilege.
CREATE The CREATE TABLE privilege.
DELETE The DELETE privilege.
DROP The DROP privilege.
GRANT OPTION The GRANT OPTION privilege.
INSERT The INSERT privilege.
UPDATE The UPDATE privilege.
SELECT The SELECT privilege.
INDEX The CREATE INDEX and DROP INDEX privileges.
REFERENCES The privilege to create constraints on a table.
EXECUTE The privilege to execute the precompiler program.
FLASHBACK The FLASHBACK privilege.
READ The READ privilege.
WRITE The WRITE privilege.
CREATE SESSION The privilege to connect to a database.
EXEMPT REDACTION POLICY The privilege to bypass any existing redaction policies and to view data.
SYSDBA The SYSDBA privilege.
SYSOPER The SYSOPER privilege.
SYSBACKUP The SYSBACKUP privilege.
CREATE TABLE The privilege to create a table in the schema of a specified user.
CREATE ANY TABLE The privilege to create a table in the schema of any user except the SYS user.
ALTER ANY TABLE The privilege to modify a table in the schema of any user except the SYS user.
BACKUP ANY TABLE The privilege to create a table in the schema of any user except the SYS user.
DROP ANY TABLE The privilege to drop a table from the schema of any user except the SYS user.
LOCK ANY TABLE The privilege to lock a table in the schema of any user except the SYS user.
COMMENT ANY TABLE The privilege to comment a table in the schema of any user except the SYS user.
SELECT ANY TABLE The privilege to view a table in the schema of any user except the SYS user.
INSERT ANY TABLE The privilege to insert rows into a table in the schema of any user except the SYS user.
UPDATE ANY TABLE The privilege to update rows of a table in the schema of any user except the SYS user.
DELETE ANY TABLE The privilege to delete a table from the schema of any user except the SYS user.
FLASHBACK ANY TABLE The privilege to flash back a table in the schema of any user except the SYS user.
CREATE ROLE The privilege to create a role.
DROP ANY ROLE The privilege to drop any role.
GRANT ANY ROLE The privilege to grant any role.
ALTER ANY ROLE The privilege to modify any role.
AUDIT ANY The privilege to audit objects in the schema of any user except the SYS user.
GRANT ANY PRIVILEGE The privilege to grant any system privilege.
GRANT ANY OBJECT PRIVILEGE The privilege to grant any object privilege.
CREATE ANY INDEX The privilege to create an index in the schema of any user except the SYS user.
ALTER ANY INDEX The privilege to modify an index in the schema of any user except the SYS user.
DROP ANY INDEX The privilege to drop an index from the schema of any user except the SYS user.
CREATE ANY VIEW The privilege to create a view in the schema of any user except the SYS user.
DROP ANY VIEW The privilege to drop an index from the schema of any user except the SYS user.
CREATE VIEW The privilege to create a view in the schema of a specified user.
SELECT ANY DICTIONARY The privilege to query a dictionary in the schema of a specified user.
CREATE PROCEDURE The privilege to create a procedure in the schema of a specified user.
CREATE ANY PROCEDURE The privilege to create a procedure in the schema of any user except the SYS user.
ALTER ANY PROCEDURE The privilege to modify a procedure in the schema of any user except the SYS user.
DROP ANY PROCEDURE The privilege to drop a procedure from the schema of any user except the SYS user.
EXECUTE ANY PROCEDURE The privilege to execute a procedure in the schema of any user except the SYS user.
CREATE SYNONYM The privilege to create a synonym in the schema of a specified user.
CREATE ANY SYNONYM The privilege to create a synonym in the schema of any user except the SYS user.
DROP ANY SYNONYM The privilege to drop a synonym from the schema of any user except the SYS user.
CREATE PUBLIC SYNONYM The privilege to create a public synonym.
DROP PUBLIC SYNONYM The privilege to drop a public synonym.
CREATE SEQUENCE The privilege to create a sequence in the schema of a specified user.
CREATE ANY SEQUENCE The privilege to create a sequence in the schema of any user except the SYS user.
ALTER ANY SEQUENCE The privilege to modify a sequence in the schema of any user except the SYS user.
DROP ANY SEQUENCE The privilege to drop a sequence from the schema of any user except the SYS user.
SELECT ANY SEQUENCE The privilege to query a sequence in the schema of any user except the SYS user.
CREATE TRIGGER The privilege to create a trigger in the schema of a specified user.
CREATE ANY TRIGGER The privilege to create a trigger in the schema of any user except the SYS user.
ALTER ANY TRIGGER The privilege to modify a trigger in the schema of any user except the SYS user.
DROP ANY TRIGGER The privilege to drop a trigger in the schema of any user except the SYS user.
CREATE PROFILE The privilege to create a profile.
ALTER PROFILE The privilege to modify a profile.
DROP PROFILE The privilege to drop a profile.
CREATE USER The privilege to create a user.
ALTER USER The privilege to modify a user.
DROP USER The privilege to drop a user.
CREATE TYPE The privilege to create a type in the schema of a specified user.
CREATE ANY TYPE The privilege to create a type in the schema of any user except the SYS user.
ALTER ANY TYPE The privilege to modify a type in the schema of any user except the SYS user.
DROP ANY TYPE The privilege to drop a type from the schema of any user except the SYS user.
EXECUTE ANY TYPE The privilege to execute a type in the schema of any user except the SYS user.
UNDER ANY TYPE The privilege to create subtypes under a type in the schema of any user except the SYS user.
PURGE DBA_RECYCLEBIN The privilege to purge all objects from the recycle bin.
CREATE ANY OUTLINE The privilege to create an outline in the schema of any user except the SYS user.
ALTER ANY OUTLINE The privilege to modify an outline in the schema of any user except the SYS user.
DROP ANY OUTLINE The privilege to drop an outline from the schema of any user except the SYS user.
SYSKM The SYSKM privilege.
CREATE TABLESPACE The privilege to create a tablespace.
ALTER TABLESPACE The privilege to modify a tablespace.
DROP TABLESPACE The privilege to drop a tablespace.
ALTER SYSTEM The ALTER SYSTEM privilege.
CREATE DATABASE LINK The privilege to create a database link in the schema of a specified user.
DROP DATABASE LINK The privilege to drop a database link from the schema of a specified user.
ALTER SESSION The privilege to modify a session.
ALTER DATABASE The privilege to modify a database.

Examples

  1. Grant all privileges to a user.

    Grant all privileges to the ny user.

    obclient>GRANT ALL PRIVILEGES TO ny;
    Query OK, 0 rows affected
    
  2. View the privileges of the ny user.

    obclient>SELECT * FROM USER_SYS_PRIVS;
    +----------+-----------------------------+--------------+
    | USERNAME | PRIVILEGE                   | ADMIN_OPTION |
    +----------+-----------------------------+--------------+
    | SYS      | CREATE SESSION              | YES          |
    | SYS      | CREATE TABLE                | YES          |
    | SYS      | CREATE ANY TABLE            | YES          |
    | SYS      | ALTER ANY TABLE             | YES          |
    | SYS      | BACKUP ANY TABLE            | YES          |
    | SYS      | DROP ANY TABLE              | YES          |
    | SYS      | LOCK ANY TABLE              | YES          |
    | SYS      | COMMENT ANY TABLE           | YES          |
    | SYS      | SELECT ANY TABLE            | YES          |
    | SYS      | INSERT ANY TABLE            | YES          |
    | SYS      | UPDATE ANY TABLE            | YES          |
    | SYS      | DELETE ANY TABLE            | YES          |
    | SYS      | FLASHBACK ANY TABLE         | YES          |
    | SYS      | CREATE ROLE                 | YES          |
    | SYS      | DROP ANY ROLE               | YES          |
    | SYS      | GRANT ANY ROLE              | YES          |
    | SYS      | ALTER ANY ROLE              | YES          |
    | SYS      | AUDIT ANY                   | YES          |
    | SYS      | GRANT ANY PRIVILEGE         | YES          |
    | SYS      | GRANT ANY OBJECT PRIVILEGE  | YES          |
    | SYS      | CREATE ANY INDEX            | YES          |
    | SYS      | ALTER ANY INDEX             | YES          |
    | SYS      | DROP ANY INDEX              | YES          |
    | SYS      | CREATE ANY VIEW             | YES          |
    | SYS      | DROP ANY VIEW               | YES          |
    | SYS      | CREATE VIEW                 | YES          |
    | SYS      | SELECT ANY DICTIONARY       | YES          |
    | SYS      | CREATE PROCEDURE            | YES          |
    | SYS      | CREATE ANY PROCEDURE        | YES          |
    | SYS      | ALTER ANY PROCEDURE         | YES          |
    | SYS      | DROP ANY PROCEDURE          | YES          |
    | SYS      | EXECUTE ANY PROCEDURE       | YES          |
    | SYS      | CREATE SYNONYM              | YES          |
    | SYS      | CREATE ANY SYNONYM          | YES          |
    | SYS      | DROP ANY SYNONYM            | YES          |
    | SYS      | CREATE PUBLIC SYNONYM       | YES          |
    | SYS      | DROP PUBLIC SYNONYM         | YES          |
    | SYS      | CREATE SEQUENCE             | YES          |
    | SYS      | CREATE ANY SEQUENCE         | YES          |
    | SYS      | ALTER ANY SEQUENCE          | YES          |
    | SYS      | DROP ANY SEQUENCE           | YES          |
    | SYS      | SELECT ANY SEQUENCE         | YES          |
    | SYS      | CREATE TRIGGER              | YES          |
    | SYS      | CREATE ANY TRIGGER          | YES          |
    | SYS      | ALTER ANY TRIGGER           | YES          |
    | SYS      | DROP ANY TRIGGER            | YES          |
    | SYS      | CREATE PROFILE              | YES          |
    | SYS      | ALTER PROFILE               | YES          |
    | SYS      | DROP PROFILE                | YES          |
    | SYS      | CREATE USER                 | YES          |
    | SYS      | BECOME USER                 | YES          |
    | SYS      | ALTER USER                  | YES          |
    | SYS      | DROP USER                   | YES          |
    | SYS      | CREATE TYPE                 | YES          |
    | SYS      | CREATE ANY TYPE             | YES          |
    | SYS      | ALTER ANY TYPE              | YES          |
    | SYS      | DROP ANY TYPE               | YES          |
    | SYS      | EXECUTE ANY TYPE            | YES          |
    | SYS      | UNDER ANY TYPE              | YES          |
    | SYS      | PURGE DBA_RECYCLEBIN        | YES          |
    | SYS      | CREATE ANY OUTLINE          | YES          |
    | SYS      | ALTER ANY OUTLINE           | YES          |
    | SYS      | DROP ANY OUTLINE            | YES          |
    | SYS      | SYSKM                       | YES          |
    | SYS      | CREATE TABLESPACE           | YES          |
    | SYS      | ALTER TABLESPACE            | YES          |
    | SYS      | DROP TABLESPACE             | YES          |
    | SYS      | SHOW PROCESS                | YES          |
    | SYS      | ALTER SYSTEM                | YES          |
    | SYS      | CREATE DATABASE LINK        | YES          |
    | SYS      | CREATE PUBLIC DATABASE LINK | YES          |
    | SYS      | DROP DATABASE LINK          | YES          |
    | SYS      | ALTER SESSION               | YES          |
    | SYS      | ALTER DATABASE              | YES          |
    | SYS      | CREATE ANY DIRECTORY        | YES          |
    | SYS      | DROP ANY DIRECTORY          | YES          |
    +----------+-----------------------------+--------------+
    76 rows in set
    
  3. Grant a user all the privileges on a table.

    1. Grant the ny user all privileges on the dws_ny table.

      obclient> GRANT ALL PRIVILEGES ON dws_ny to ny with GRANT OPTION;
      Query OK, 0 rows affected
      
    2. View the privileges on the dws_ny table that are granted to the ny user.

      obclient> SELECT * FROM ALL_TAB_PRIVS;
      +---------+---------+--------------+------------+------------+-----------+-----------+
      | GRANTOR | GRANTEE | TABLE_SCHEMA | TABLE_NAME | PRIVILEGE  | GRANTABLE | HIERARCHY |
      +---------+---------+--------------+------------+------------+-----------+-----------+
      | SYS     | NY      | SYS          | DWS_NY     | ALTER      | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | DELETE     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | INDEX      | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | INSERT     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | SELECT     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | REFERENCES | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | FLASHBACK  | YES       | NO        |
      +---------+---------+--------------+------------+------------+-----------+-----------+
      7 rows in set
      

      Note

      Both the SYS user and the ALL_TAB_PRIVS user can query the privileges on the dws_ny table in the ALL_TAB_PRIVS table.

Revoke privileges

Prerequisites

  • When you revoke an object privilege, you must have the privilege to be revoked. For example, for user1 to revoke the SELECT privilege on table t1 from user2, user1 must have the SELECT privilege on table t1. In addition, you must have the GRANT OPTION or GRANT ANY OBJECT PRIVILEGE privilege.

  • When you revoke a system privilege or a role, you must have the privilege or role to be revoked and have the GRANT OPTION, GRANT ANY PRIVILEGE, or GRANT ANY ROLE privilege.

  • To revoke the ALL PRIVILEGES and GRANT OPTION privileges, you must have the global GRANT OPTION privilege or the UPDATE and DELETE privileges on the table.

Syntax

Syntax for revoking object privileges:

REVOKE obj_privileges
  ON obj_clause FROM user_list;

user_list:
  user [, user ...]

obj_privileges:
  obj_privilege [, obj_privilege ...]

obj_privilege:
    ALTER
  | DELETE
  | INDEX
  | INSERT
  | SELECT
  | UPDATE
  | REFERENCES
  | EXECUTE

obj_clause:
  relation_name
  | relation_name '.' relation_name
  | DIRECTORY relation_name

relation_name:
  STR_VALUE

Syntax for revoking system privileges:

REVOKE {system_privilege_list | ALL PRIVILEGES}
  FROM user_list;
REVOKE ALL [PRIVILEGES], GRANT_OPTION FROM user_list;

system_privilege_list:
  system_privilege [, system_privilege ...]

system_privilege:
  CREATE SESSION
  | EXEMPT REDACTION POLICY
  | SYSDBA
  | SYSOPER
  | SYSBACKUP
  | CREATE TABLE
  | CREATE ANY TABLE
  | ALTER ANY TABLE
  | BACKUP ANY TABLE
  | DROP ANY TABLE
  | LOCK ANY TABLE
  | COMMENT ANY TABLE
  | SELECT ANY TABLE
  | INSERT ANY TABLE
  | UPDATE ANY TABLE
  | DELETE ANY TABLE
  | FLASHBACK ANY TABLE
  | CREATE ROLE
  | DROP ANY ROLE
  | GRANT ANY ROLE
  | ALTER ANY ROLE
  | AUDIT ANY
  | GRANT ANY PRIVILEGE
  | GRANT ANY OBJECT PRIVILEGE
  | CREATE ANY INDEX
  | ALTER ANY INDEX
  | DROP ANY INDEX
  | CREATE ANY VIEW
  | DROP ANY VIEW
  | CREATE VIEW
  | SELECT ANY DICTIONARY
  | CREATE PROCEDURE
  | CREATE ANY PROCEDURE
  | ALTER ANY PROCEDURE
  | DROP ANY PROCEDURE
  | EXECUTE ANY PROCEDURE
  | CREATE SYNONYM
  | CREATE ANY SYNONYM
  | DROP ANY SYNONYM
  | CREATE PUBLIC SYNONYM
  | DROP PUBLIC SYNONYM
  | CREATE SEQUENCE
  | CREATE ANY SEQUENCE
  | ALTER ANY SEQUENCE
  | DROP ANY SEQUENCE
  | SELECT ANY SEQUENCE
  | CREATE TRIGGER
  | CREATE ANY TRIGGER
  | ALTER ANY TRIGGER
  | DROP ANY TRIGGER
  | CREATE PROFILE
  | ALTER PROFILE
  | DROP PROFILE
  | CREATE USER
  | ALTER USER
  | DROP USER
  | CREATE TYPE
  | CREATE ANY TYPE
  | ALTER ANY TYPE
  | DROP ANY TYPE
  | EXECUTE ANY TYPE
  | UNDER ANY TYPE
  | PURGE DBA_RECYCLEBIN
  | CREATE ANY OUTLINE
  | ALTER ANY OUTLINE
  | DROP ANY OUTLINE
  | SYSKM
  | CREATE TABLESPACE
  | ALTER TABLESPACE
  | DROP TABLESPACE
  | SHOW PROCESS
  | ALTER SYSTEM
  | CREATE DATABASE LINK
  | CREATE PUBLIC DATABASE LINK
  | DROP DATABASE LINK
  | ALTER SESSION
  | ALTER DATABASE

Parameters

Parameter Description
obj_privileges Specifies the type of the object privilege to be revoked. For information about the specific privilege types and their description, see the following table. To revoke multiple types of privileges, separate them with commas (,).
system_privilege Specifies the type of the system privilege to be revoked. To revoke multiple types of privileges, separate them with commas (,).
obj_clause The level of the privilege to be revoked. relation_name specifies the name of the object. Privileges can be divided into the following levels:
  • Global: Privileges at this level apply to all databases.
  • Database level: Privileges at this level apply to all objects in a specified database.
  • Table level: Privileges at this level apply to all columns in a specified table.
role_list The role list.

Privileges that can be revoked

Privilege type Description
ALL PRIVILEGES All privileges except GRANT OPTION.
ALTER The ALTER TABLE privilege.
CREATE The CREATE TABLE privilege.
DELETE The DELETE privilege.
DROP The DROP privilege.
GRANT OPTION The GRANT OPTION privilege.
INSERT The INSERT privilege.
UPDATE The UPDATE privilege.
SELECT The SELECT privilege.
INDEX The CREATE INDEX and DROP INDEX privileges.
SHOW VIEW The SHOW CREATE VIEW privilege.
SHOW DATABASES The global SHOW DATABASES privilege.
SUPER The SET GLOBAL privilege for modifying global system parameters.
REFERENCES The privilege to create constraints on a table.
EXECUTE The privilege to execute the precompiler program.
FLASHBACK The FLASHBACK privilege.
READ The READ privilege.
WRITE The WRITE privilege.
CREATE SESSION The privilege to connect to a database.
EXEMPT REDACTION POLICY The privilege to bypass any existing redaction policies and to view data.
SYSDBA The SYSDBA privilege.
SYSOPER The SYSOPER privilege.
SYSBACKUP The SYSBACKUP privilege.
CREATE TABLE The privilege to create a table in the schema of a specified user.
CREATE ANY TABLE The privilege to create a table in the schema of any user except the SYS user.
ALTER ANY TABLE The privilege to modify a table in the schema of any user except the SYS user.
BACKUP ANY TABLE The privilege to create a table in the schema of any user except the SYS user.
DROP ANY TABLE The privilege to drop a table from the schema of any user except the SYS user.
LOCK ANY TABLE The privilege to lock a table in the schema of any user except the SYS user.
COMMENT ANY TABLE The privilege to comment a table in the schema of any user except the SYS user.
SELECT ANY TABLE The privilege to view a table in the schema of any user except the SYS user.
INSERT ANY TABLE The privilege to insert rows into a table in the schema of any user except the SYS user.
UPDATE ANY TABLE The privilege to update rows of a table in the schema of any user except the SYS user.
DELETE ANY TABLE The privilege to delete a table from the schema of any user except the SYS user.
FLASHBACK ANY TABLE The privilege to flash back a table in the schema of any user except the SYS user.
CREATE ROLE The privilege to create a role.
DROP ANY ROLE The privilege to drop any role.
GRANT ANY ROLE The privilege to grant any role.
ALTER ANY ROLE The privilege to modify any role.
AUDIT ANY The privilege to audit objects in the schema of any user except the SYS user.
GRANT ANY PRIVILEGE The privilege to grant any system privilege.
GRANT ANY OBJECT PRIVILEGE The privilege to grant any object privilege.
CREATE ANY INDEX The privilege to create an index in the schema of any user except the SYS user.
ALTER ANY INDEX The privilege to modify an index in the schema of any user except the SYS user.
DROP ANY INDEX The privilege to drop an index from the schema of any user except the SYS user.
CREATE ANY VIEW The privilege to create a view in the schema of any user except the SYS user.
DROP ANY VIEW The privilege to drop an index from the schema of any user except the SYS user.
CREATE VIEW The privilege to create a view in the schema of a specified user.
SELECT ANY DICTIONARY The privilege to query a dictionary in the schema of a specified user.
CREATE PROCEDURE The privilege to create a procedure in the schema of a specified user.
CREATE ANY PROCEDURE The privilege to create a procedure in the schema of any user except the SYS user.
ALTER ANY PROCEDURE The privilege to modify a procedure in the schema of any user except the SYS user.
DROP ANY PROCEDURE The privilege to drop a procedure from the schema of any user except the SYS user.
EXECUTE ANY PROCEDURE The privilege to execute a procedure in the schema of any user except the SYS user.
CREATE SYNONYM The privilege to create a synonym in the schema of a specified user.
CREATE ANY SYNONYM The privilege to create a synonym in the schema of any user except the SYS user.
DROP ANY SYNONYM The privilege to drop a synonym from the schema of any user except the SYS user.
CREATE PUBLIC SYNONYM The privilege to create a public synonym.
DROP PUBLIC SYNONYM The privilege to drop a public synonym.
CREATE SEQUENCE The privilege to create a sequence in the schema of a specified user.
CREATE ANY SEQUENCE The privilege to create a sequence in the schema of any user except the SYS user.
ALTER ANY SEQUENCE The privilege to modify a sequence in the schema of any user except the SYS user.
DROP ANY SEQUENCE The privilege to drop a sequence from the schema of any user except the SYS user.
SELECT ANY SEQUENCE The privilege to query a sequence in the schema of any user except the SYS user.
CREATE TRIGGER The privilege to create a trigger in the schema of a specified user.
CREATE ANY TRIGGER The privilege to create a trigger in the schema of any user except the SYS user.
ALTER ANY TRIGGER The privilege to modify a trigger in the schema of any user except the SYS user.
DROP ANY TRIGGER The privilege to drop a trigger in the schema of any user except the SYS user.
CREATE PROFILE The privilege to create a profile.
ALTER PROFILE The privilege to modify a profile.
DROP PROFILE The privilege to drop a profile.
CREATE USER The privilege to create a user.
ALTER USER The privilege to modify a user.
DROP USER The privilege to drop a user.
CREATE TYPE The privilege to create a type in the schema of a specified user.
CREATE ANY TYPE The privilege to create a type in the schema of any user except the SYS user.
ALTER ANY TYPE The privilege to modify a type in the schema of any user except the SYS user.
DROP ANY TYPE The privilege to drop a type from the schema of any user except the SYS user.
EXECUTE ANY TYPE The privilege to execute a type in the schema of any user except the SYS user.
UNDER ANY TYPE The privilege to create subtypes under a type in the schema of any user except the SYS user.
PURGE DBA_RECYCLEBIN The privilege to purge all objects from the recycle bin.
CREATE ANY OUTLINE The privilege to create an outline in the schema of any user except the SYS user.
ALTER ANY OUTLINE The privilege to modify an outline in the schema of any user except the SYS user.
DROP ANY OUTLINE The privilege to drop an outline from the schema of any user except the SYS user.
SYSKM The SYSKM privilege.
CREATE TABLESPACE The privilege to create a tablespace.
ALTER TABLESPACE The privilege to modify a tablespace.
DROP TABLESPACE The privilege to drop a tablespace.
ALTER SYSTEM The ALTER SYSTEM privilege.
CREATE DATABASE LINK The privilege to create a database link in the schema of a specified user.
CREATE PUBLIC DATABASE LINK The privilege to create a public database link.
DROP DATABASE LINK The privilege to drop a database link from the schema of a specified user.
ALTER SESSION The privilege to modify a session.
ALTER DATABASE The privilege to modify a database.

Examples

  1. Revoke the UPDATE privilege from a user.

    1. Revoke the UPDATE privilege on the dws_ny table in the data_ny database from the ny user.

      obclient> revoke update on dws_ny from ny;
      Query OK, 0 rows affected
      
    2. View the privileges of the ny user on the dws_ny table.

      obclient> SELECT * FROM ALL_TAB_PRIVS;
      +---------+---------+--------------+------------+------------+-----------+-----------+
      | GRANTOR | GRANTEE | TABLE_SCHEMA | TABLE_NAME | PRIVILEGE  | GRANTABLE | HIERARCHY |
      +---------+---------+--------------+------------+------------+-----------+-----------+
      | SYS     | NY      | SYS          | DWS_NY     | ALTER      | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | DELETE     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | INDEX      | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | INSERT     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | SELECT     | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | REFERENCES | YES       | NO        |
      | SYS     | NY      | SYS          | DWS_NY     | FLASHBACK  | YES       | NO        |
      +---------+---------+--------------+------------+------------+-----------+-----------+
      7 rows in set
      

      Note

      Both the root user and ny user can query the privileges on the dws_ny table in the TABLE_PRIVILEGES table.

  2. Revoke the UPDATE privilege from a user.

    1. Revoke the UPDATE privilege from the ny user.

      obclient> revoke UPDATE on *.* from ny;
      Query OK, 0 rows affected
      
    2. View the current privileges of the ny user.

      obclient> SELECT * FROM USER_SYS_PRIVS;
      +----------+-----------------------------+--------------+
      | USERNAME | PRIVILEGE                   | ADMIN_OPTION |
      +----------+-----------------------------+--------------+
      | SYS      | CREATE SESSION              | YES          |
      | SYS      | CREATE TABLE                | YES          |
      | SYS      | CREATE ANY TABLE            | YES          |
      | SYS      | ALTER ANY TABLE             | YES          |
      | SYS      | BACKUP ANY TABLE            | YES          |
      | SYS      | DROP ANY TABLE              | YES          |
      | SYS      | LOCK ANY TABLE              | YES          |
      | SYS      | COMMENT ANY TABLE           | YES          |
      | SYS      | SELECT ANY TABLE            | YES          |
      | SYS      | INSERT ANY TABLE            | YES          |
      | SYS      | UPDATE ANY TABLE            | YES          |
      | SYS      | DELETE ANY TABLE            | YES          |
      | SYS      | FLASHBACK ANY TABLE         | YES          |
      | SYS      | CREATE ROLE                 | YES          |
      | SYS      | DROP ANY ROLE               | YES          |
      | SYS      | GRANT ANY ROLE              | YES          |
      | SYS      | ALTER ANY ROLE              | YES          |
      | SYS      | AUDIT ANY                   | YES          |
      | SYS      | GRANT ANY PRIVILEGE         | YES          |
      | SYS      | GRANT ANY OBJECT PRIVILEGE  | YES          |
      | SYS      | CREATE ANY INDEX            | YES          |
      | SYS      | ALTER ANY INDEX             | YES          |
      | SYS      | DROP ANY INDEX              | YES          |
      | SYS      | CREATE ANY VIEW             | YES          |
      | SYS      | DROP ANY VIEW               | YES          |
      | SYS      | CREATE VIEW                 | YES          |
      | SYS      | SELECT ANY DICTIONARY       | YES          |
      | SYS      | CREATE PROCEDURE            | YES          |
      | SYS      | CREATE ANY PROCEDURE        | YES          |
      | SYS      | ALTER ANY PROCEDURE         | YES          |
      | SYS      | DROP ANY PROCEDURE          | YES          |
      | SYS      | EXECUTE ANY PROCEDURE       | YES          |
      | SYS      | CREATE SYNONYM              | YES          |
      | SYS      | CREATE ANY SYNONYM          | YES          |
      | SYS      | DROP ANY SYNONYM            | YES          |
      | SYS      | CREATE PUBLIC SYNONYM       | YES          |
      | SYS      | DROP PUBLIC SYNONYM         | YES          |
      | SYS      | CREATE SEQUENCE             | YES          |
      | SYS      | CREATE ANY SEQUENCE         | YES          |
      | SYS      | ALTER ANY SEQUENCE          | YES          |
      | SYS      | DROP ANY SEQUENCE           | YES          |
      | SYS      | SELECT ANY SEQUENCE         | YES          |
      | SYS      | CREATE TRIGGER              | YES          |
      | SYS      | CREATE ANY TRIGGER          | YES          |
      | SYS      | ALTER ANY TRIGGER           | YES          |
      | SYS      | DROP ANY TRIGGER            | YES          |
      | SYS      | CREATE PROFILE              | YES          |
      | SYS      | ALTER PROFILE               | YES          |
      | SYS      | DROP PROFILE                | YES          |
      | SYS      | CREATE USER                 | YES          |
      | SYS      | BECOME USER                 | YES          |
      | SYS      | ALTER USER                  | YES          |
      | SYS      | DROP USER                   | YES          |
      | SYS      | CREATE TYPE                 | YES          |
      | SYS      | CREATE ANY TYPE             | YES          |
      | SYS      | ALTER ANY TYPE              | YES          |
      | SYS      | DROP ANY TYPE               | YES          |
      | SYS      | EXECUTE ANY TYPE            | YES          |
      | SYS      | UNDER ANY TYPE              | YES          |
      | SYS      | PURGE DBA_RECYCLEBIN        | YES          |
      | SYS      | CREATE ANY OUTLINE          | YES          |
      | SYS      | ALTER ANY OUTLINE           | YES          |
      | SYS      | DROP ANY OUTLINE            | YES          |
      | SYS      | SYSKM                       | YES          |
      | SYS      | CREATE TABLESPACE           | YES          |
      | SYS      | ALTER TABLESPACE            | YES          |
      | SYS      | DROP TABLESPACE             | YES          |
      | SYS      | SHOW PROCESS                | YES          |
      | SYS      | ALTER SYSTEM                | YES          |
      | SYS      | CREATE DATABASE LINK        | YES          |
      | SYS      | CREATE PUBLIC DATABASE LINK | YES          |
      | SYS      | DROP DATABASE LINK          | YES          |
      | SYS      | ALTER SESSION               | YES          |
      | SYS      | ALTER DATABASE              | YES          |
      | SYS      | CREATE ANY DIRECTORY        | YES          |
      | SYS      | DROP ANY DIRECTORY          | YES          |
      +----------+-----------------------------+--------------+
      76 rows in set
      

Previous topic

Flash back a dropped table
Last

Next topic

About partitioned tables
Next
What is on this page
Grant privileges
Overview
Syntax
Parameters
Examples
Revoke privileges
Prerequisites
Syntax
Parameters
Privileges that can be revoked
Examples