OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.3.3

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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.3.3
    iconOceanBase Database
    SQL - V 4.3.3
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • 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

    information_schema.events

    Last Updated:2024-12-02 03:48:27  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    • For OceanBase Database V4.3.x, this view was introduced in OceanBase Database V4.3.2.
    • For OceanBase Database V4.2.x, this view was introduced in OceanBase Database V4.2.1 BP5 and V4.2.4.

    Purpose

    The information_schema.events view displays the information about all events.

    Columns

    Column
    Type
    Nullable?
    Description
    EVENT_CATALOG varchar(64) NO The name of the catalog to which the event belongs. The value of this column is always def. def is a universal identifier indicating that an object in a system view belongs to the default catalog.
    EVENT_SCHEMA varchar(128) NO The name of the database to which the event belongs.
    EVENT_NAME varchar(64) NO The name of the event.
    DEFINER varchar(93) NO The user that created the event.
    TIME_ZONE varchar(64) NO The time zone of the event. It is used for scheduling the event and takes effect when the event is executed. The default value is SYSTEM.
    EVENT_BODY varchar(8) NO The language used in the DO clause of the event. The value of this column is always SQL.
    EVENT_DEFINITION mediumtext YES The text of the SQL statement that constitutes theDO clause.
    EVENT_TYPE varchar(9) NO The event repetition type. It indicates whether the event is a one-time or recurring event.
    EXECUTE_AT datetime YES The start time of the event if it is a one-time event. For a recurring event, the value is NULL.
    INTERVAL_VALUE varchar(256) YES The number of intervals to wait between two consecutive executions of the event if it is a recurring event. For a one-time event, the value is always NULL.
    INTERVAL_FIELD varchar(18) YES The time duration of an interval to wait between two consecutive executions of the event if it is a recurring event. For a one-time event, the value is always NULL.
    SQL_MODE text NO The SQL mode that took effect when the event was created or modified, and in which the event is executed.
    STARTS datetime YES The start date and time of the event if it is a recurring event. If no start date and time are defined for the event, the value is NULL. For a one-time event, the value is always NULL.
    ENDS datetime YES For a recurring event whose definition contains an ENDS clause, this column contains the corresponding DATETIME value. Like the EXECUTE_AT column, this column resolves any expressions used. If no ENDS clause affecting the timing of the event is used, the value is NULL.
    STATUS varchar(18) NO The status of the event. Valid values:
    • ENABLED: The event is enabled.
    • DISABLED: The event is disabled.
    • SLAVESIDE_DISABLED: The event is disabled on the OBServer node.
    ON_COMPLETION varchar(12) NO Specifies whether to preserve the event definition after the event is completed. Value values:
    • PRESERVE
    • NOT PRESERVE
    CREATED datetime YES The date and time when the event was created.
    LAST_ALTERED datetime YES The date and time when the event was last modified.
    LAST_EXECUTED datetime YES The date and time when the event was last executed. The value NULL indicates that the event has not been executed. This column indicates the start time of the event. Therefore, the value of this column is not later than that of the ENDS column.
    EVENT_COMMENT text YES The comments on the event. If the event has no comments, this column is left empty.
    ORIGINATOR bigint(0) unsigned NO The service ID of the MySQL server where the event was created. It is used in replication. If you execute the ALTER EVENT statement in the replication source, the value of this column may be updated to the service ID that is used when the statement is executed. The default value is 0.
    CHARACTER_SET_CLIENT varchar(32) NO The value of the character_set_client system variable for the session when the event was created.
    COLLATION_CONNECTION varchar(32) NO The value of the collation_connection system variable for the session when the event was created.
    DATABASE_COLLATION varchar(32) NO The collation of the database associated with the event.

    Sample query

    1. Create an event named e_1 and specify to execute the event at 00:00:00 on January 1, 3000 with the SELECT 1 statement.

      obclient> CREATE EVENT e_1 ON SCHEDULE AT "3000-01-01 00:00:00" DO SELECT 1;
      
    2. Query all information about the e_1 event.

      obclient> SELECT * FROM information_schema.events\G
      

      The query result is as follows:

      *************************** 1. row ***************************
            EVENT_CATALOG: def
              EVENT_SCHEMA: test
                EVENT_NAME: e_1
                  DEFINER: root@%
                TIME_ZONE: SYSTEM
                EVENT_BODY: SQL
          EVENT_DEFINITION: select 1;
                EVENT_TYPE: ONE TIME
                EXECUTE_AT: 3000-01-01 00:00:00
            INTERVAL_VALUE: NULL
            INTERVAL_FIELD: NULL
                  SQL_MODE: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
                    STARTS: NULL
                      ENDS: NULL
                    STATUS: ENABLED
            ON_COMPLETION: NOT PRESERVE
                  CREATED: 2024-06-26 11:29:08
              LAST_ALTERED: 2024-06-26 11:29:08
            LAST_EXECUTED: NULL
            EVENT_COMMENT: NULL
                ORIGINATOR: NULL
      CHARACTER_SET_CLIENT: NULL
      COLLATION_CONNECTION: NULL
        DATABASE_COLLATION: NULL
      1 row in set (0.002 sec)
      

    Previous topic

    information_schema.ENGINES
    Last

    Next topic

    information_schema.GLOBAL_STATUS
    Next
    What is on this page
    Purpose
    Columns
    Sample query