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.1.0Enterprise Edition

    Download PDF

    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.1.0
    iconOceanBase Database
    SQL - V 4.1.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

    Oracle tenants

    Last Updated:2023-08-01 06:02:22  Updated
    share
    What is on this page
    Tenant administrator
    Database security administrator
    Database auditor
    Users
    Roles

    folded

    share

    This topic describes the users and their roles under Oracle tenants.

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL mode.

    Tenant administrator

    The built-in SYS user under each Oracle tenant in OceanBase Database acts as the tenant administrator. Tenant administrators in OceanBase Database can configure database parameters, create database objects, and allocate access privileges under the corresponding tenants.

    Database security administrator

    After OceanBase Database is deployed, the system creates a built-in LBACSYS user under each tenant to act as the database security administrator of the tenant. The database security administrator of an Oracle tenant can configure database audit settings of the tenant, define new database auditors, view database audit records, set security levels, scopes, and groups of the system, and define security tags for subjects and objects, to comprehensively improve the system security.

    Database auditor

    After OceanBase Database is deployed, the system creates a built-in ORAAUDITOR user under each tenant to act as the database auditor of the tenant. The database auditor of an Oracle tenant can implement forcible access control on the system under the tenant, set the objects and operations to be audited, define new database auditors, view and analyze audit records, and set system strategies and tags. After auditing is set up, almost any operations performed by any users in the system can be tracked, to facilitate subsequent tracing.

    Users

    Regular users must be granted the required access and operation privileges before they can access and manage database objects under the corresponding tenants. Regular users are usually created and granted privileges by the tenant administrator. For more information about how to create and grant privileges to a user, see Create a user and Modify user privileges.

    Roles

    In Oracle mode, a role is a set of system privileges and object privileges. You can use roles to manage user privileges.

    In OceanBase Database, you can perform the following operations on roles:

    • You can grant system privileges or object privileges to roles.

    • You can assign a role to another role. This means that a role can contain other roles.

    • A user can have several roles, and a role can be assigned to several users.

    In Oracle mode, by default, the system has some built-in roles. The following table describes the privileges of the roles.

    Role Privileges
    CONNECT This role has the CREATE SESSION privilege.
    DBA This role has all system privileges.
    PUBLIC This role applies to all users in a tenant. By default, no privilege is granted to the role.
    RESOURCE This role has the CREATE TABLE, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER, and CREATE TYPE privileges.

    For more information about roles, see Overview of role management.

    Previous topic

    sys tenant
    Last

    Next topic

    MySQL tenants
    Next
    What is on this page
    Tenant administrator
    Database security administrator
    Database auditor
    Users
    Roles