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

    DBA_AUDIT_TRAIL

    Last Updated:2025-12-09 07:06:44  Updated
    share
    What is on this page
    Feature
    Related views
    Fields

    folded

    share

    Feature

    DBA_AUDIT_TRAIL displays all audit trail entries.

    Applicability

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

    Related views

    USER_AUDIT_TRAIL

    Fields

    Field Type Nullable Description
    OS_USERNAME VARCHAR2(255) NO The username of the user whose actions were audited, where the username is used for operating system (OS) logon. At present, this field is not supported and is NULL by default.
    USERNAME VARCHAR2(64) NO The username of the user whose actions were audited.
    USERHOST VARCHAR2(32) NO The name of the client host. At present, this field is not supported and is NULL by default.
    TERMINAL VARCHAR2(255) NO The identifier of the user terminal. At present, this field is not supported and is NULL by default.
    TIMESTAMP DATE NO The date and time when the audit trail entry was created in the time zone of the local database session.
    OWNER VARCHAR2(64) YES The creator of the object that was affected by the action.
    OBJ_NAME VARCHAR2(256) YES The name of the object that was affected by the action.
    ACTION NUMBER(38) NO The numeric action type code. The corresponding name of the action type is in the ACTION_NAME column.
    ACTION_NAME VARCHAR2(128) NO The name of the action type corresponding to the numeric code in the ACTION column.
    NEW_OWNER VARCHAR2(64) YES The owner of the object named in the NEW_NAME column.
    NEW_NAME VARCHAR2(256) YES The new name of an object after a RENAME action or the name of the underlying object.
    OBJ_PRIVILEGE VARCHAR2(255) NO The object privileges granted or revoked by a GRANT or REVOKE statement.
    SYS_PRIVILEGE VARCHAR2(255) NO The system privileges granted or revoked by a GRANT or REVOKE statement.
    ADMIN_OPTION VARCHAR2(1) NO Indicates whether the role or system privilege was granted by using the ADMIN option.
    GRANTEE VARCHAR2(128) NO The name of the grantee specified in a GRANT or REVOKE statement.
    AUDIT_OPTION VARCHAR2(40) NO The auditing option set with the AUDIT statement.
    SES_ACTIONS VARCHAR2(19) NO The session summary. At present, this field is not supported and is NULL by default.
    LOGOFF_TIME DATE NO The date and time when the user was logged off.
    LOGOFF_LREAD NUMBER(38) NO The logical reads for the session.
    LOGOFF_PREAD NUMBER NO The physical reads for the session. At present, this field is not supported and is NULL by default.
    LOGOFF_LWRITE NUMBER NO The logical writes for the session. At present, this field is not supported and is NULL by default.
    LOGOFF_DLOCK VARCHAR2(40) NO Indicates whether deadlocks are detected during the session. At present, this field is not supported and is NULL by default.
    COMMENT_TEXT VARCHAR2(65536) YES The text comment on the audit trail entry.
    SESSIONID NUMBER(38) NO The numeric ID of the session.
    ENTRYID NUMBER(38) NO The numeric ID for each audit trail entry in the session.
    STATEMENTID NUMBER(38) NO The numeric ID for each statement.
    RETURNCODE NUMBER(38) NO The error code generated by the action.
    PRIV_USED VARCHAR2(40) NO The system privilege used to execute the action. At present, this field is not supported and is NULL by default.
    CLIENT_ID VARCHAR2(40) NO The client identifier in the session. At present, OceanBase Database does not support this field, and this field is NULL by default.
    ECONTEXT_ID VARCHAR2(40) NO The identifier of the application execution context. At present, this field is not supported and is NULL by default.
    SESSION_CPU NUMBER(38) NO The amount of CPU time used by the session.
    EXTENDED_TIMESTAMP TIMESTAMP(6) WITH TIME ZONE NO The timestamp of when the audit trail entry was created in the Coordinated Universal Time (UTC) time zone.
    PROXY_SESSIONID NUMBER(38) NO The serial number of the proxy session.
    GLOBAL_UID NUMBER(38) NO The global user identifier (UID) of the user.
    INSTANCE_NUMBER VARCHAR2(40) NO The instance number specified by the INSTANCE_NUMBER initialization parameter. At present, this field is not supported and is NULL by default.
    OS_PROCESS VARCHAR2(40) NO The OS process identifier of the process. At present, this field is not supported and is NULL by default.
    TRANSACTIONID VARCHAR2(128) NO The identifier of the transaction in which the object is accessed or modified.
    SCN NUMBER(38) NO The system change number (SCN) of the query. At present, this field is not supported and is 0 by default.
    SQL_BIND VARCHAR2(2000) YES The bind variable data of the query. At present, this field is not supported and is NULL by default.
    SQL_TEXT VARCHAR2(2000) YES The SQL text of the query.
    OBJ_EDITION_NAME VARCHAR2(128) NO The name of the edition that contains the audited object. At present, this field is not supported and is NULL by default.
    DBID NUMBER(38) NO The identifier of the database that is audited.

    Previous topic

    DBA_AUDIT_STATEMENT
    Last

    Next topic

    DBA_COLL_TYPES
    Next
    What is on this page
    Feature
    Related views
    Fields