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

  • What's New
  • What is OceanBase Database
    • Compatibility with MySQL
    • Overview
    • Differences between Enterprise Edition and Community Edition
    • Limitations
    • System architecture
    • Compatibility with Oracle
      • Overview
      • System views
      • SQL data types
      • Built-in functions
  • Get Started
    • Video tutorial
    • Quick start with OceanBase Database Community Edition
    • Try out advanced features of OceanBase Database
      • Try out the multi-tenant feature
      • Try out operational OLAP
      • Try out parallel import and data compression
      • Scalable OLTP
        • Try out the hot row update capability of OceanBase Database
        • Run the TPC-C benchmark in OceanBase Database
    • Build a sample application (Oracle mode)
      • Build a C application
      • Build a Java application
    • Learn OceanBase SQL
      • Basic SQL operations (Oracle mode)
      • Basic SQL operations (MySQL mode)
      • Before you begin
    • Build a sample application (MySQL mode)
      • Build a Go application
      • Build a Java application
      • Build a C application
      • Build a Python application
  • Develop
    • Develop applications (MySQL mode)
      • Sample applications
        • Go
          • GORM
          • Go-SQL-Driver/MySQL
        • PHP
          • MySQLi
          • PDO
          • EXT
        • Java
          • Spring Data JDBC
          • Spring Boot
          • Spring Data JPA
          • MyBatis
          • Spring Batch
          • TestContainers
          • Connect to OceanBase Database by using Hibernate
          • Connector/J
        • C
          • MySQL Connector/C
        • Python
          • MySQL-connector-python
          • PyMySQL
          • mysqlclient
      • Write data
        • Delete data
        • Generate test data in batches
        • Update data
        • Insert data
        • Replace data
      • Application errors
        • Common errors and troubleshooting practices
          • Table does not exist, with ERROR 1146 reported
          • Data truncated while being inserted, with ERROR 1265 reported
          • Incorrect user password, with ERROR 1045 reported
          • Transaction timed out, with ERROR 4012 reported
          • User locked, with ERROR 3118 reported
          • Idle transaction timed out, with ERROR 6002 reported
          • Table already exists, with ERROR 1050 reported
          • Duplicate data inserted, with ERROR 1062 reported
          • Disconnected from the server, with ERROR 2013 reported
          • ERROR 1215 reported in foreign key addition
        • Troubleshooting guidelines
          • About error codes
          • Error handling specifications for MySQL-compatible applications
      • Connect to OceanBase Database
        • Connect to OceanBase Database by using DBeaver
        • Connect to an OceanBase tenant by using OBClient
        • Connect to OceanBase Database by using Navicat
        • Connect to an OceanBase tenant by using the mysql client
        • Connect to OceanBase Database by using ODC
        • Overview
        • Use database connection pool
          • HikariCP
          • Proxool
          • DBCP
          • Commons Pool
          • Druid
          • Database connection pool configuration
          • Tomcat
          • c3p0
          • Configuration example of JDBC connections
      • Read data
        • Use a DBLink in queries
        • Single-table queries
        • Set operations
        • Use operators and functions in queries
          • Use aggregate functions in queries
          • Use numerical functions in queries
          • Use the SELECT ... LOCK IN SHARE MODE statement to lock query results
          • Use the CASE conditional operator in queries
          • Use type conversion functions in queries
          • Use datetime functions in queries
          • Use arithmetic operators in queries
          • Use string functions in queries
          • Use string concatenation operators in queries
          • Use NULL-related functions in queries
          • Use the SELECT ... FOR UPDATE statement to lock query results
        • Join tables
          • RIGHT JOIN queries
          • Lateral derived table
          • Subqueries
          • LEFT JOIN queries
          • INNER JOIN queries
          • FULL JOIN queries
      • Plan database objects
        • Create an external table
        • Create an index
        • Create a table group
        • Create a database
        • Create a table
      • Transactions
        • Roll back a transaction
        • Commit a transaction
        • Overview
        • Start a transaction
        • Savepoints
          • Mark a savepoint
          • Release a savepoint
          • Roll back a transaction to a savepoint
    • Develop applications (Oracle mode)
      • Sample applications
        • Java
          • Spring Boot
          • MyBatis
          • JFinal
          • OceanBase Connector/J
          • Spring Data JPA
          • Spring Data JDBC
          • Hibernate
          • Spring Batch
        • C/C++
          • OceanBase Connector/C
          • SqlSugar
          • OceanBase Connector/ODBC
      • Read data
        • Set operations
        • Single-table queries
        • Use a DBLink in queries
        • Join tables
          • INNER JOIN queries
          • RIGHT JOIN queries
          • Lateral derived tables
          • LEFT JOIN queries
          • Subqueries
          • FULL JOIN queries
        • Use operators and functions in queries
          • Use arithmetic operators in queries
          • Use type conversion functions in queries
          • Use aggregate functions in queries
          • Use numerical functions in queries
          • Use string concatenation operators in queries
          • Use CASE functions in queries
          • Use the SELECT...FOR UPDATE statement to lock query results
          • Use string functions in queries
          • Use NULL-related functions in queries
          • Use datetime functions in queries
      • Connect to OceanBase Database
        • Overview
        • Connect to OceanBase Database by using ODC
        • Connect to an OceanBase tenant by using OBClient
        • Use database connection pool
          • c3p0
          • Database connection pool configuration
          • DBCP
          • HikariCP
          • Druid
          • Proxool
          • Tomcat
          • Commons Pool
      • Application errors
        • Common errors and troubleshooting practices
          • Transaction timed out, with Error OBE-00600 reported
          • Idle transaction timed out, with Error OBE-24761 reported
          • Duplicate data inserted, with Error OBE-00001 reported
          • Table does not exist, with Error OBE-04043 reported
          • Inconsistent data types, with Error OBE-00932 reported
          • User locked, with ERROR 3118 reported
          • Table already exists, with Error OBE-00955 reported
          • Error OBE-00600 reported in foreign key addition
          • Incorrect user password, with ERROR 1045 reported
        • Troubleshooting guidelines
          • Error handling specifications for Oracle-compatible applications
          • About error codes
      • Write data
        • Insert data
        • Update data
        • Replace data
        • Delete data
        • Generate test data in batches
      • Transactions
        • Overview
        • Roll back a transaction
        • Commit a transaction
        • Start a transaction
        • Savepoints
          • Roll back a transaction to a savepoint
          • Mark a savepoint
      • Plan database objects
        • Create a table
        • Create an index
        • Create an external table
        • Create a table group
  • Deploy
    • Clear an OceanBase cluster
    • Overview
    • HA deployment solutions for OceanBase clusters
    • Recommended configurations
    • Deploy OceanBase Database Community Edition
      • Overview
      • Deploy an OceanBase cluster in a Kubernetes environment
      • Deploy locally
        • Deploy OceanBase Database in a production environment using the command line
        • Software and hardware requirements
        • Deploy OceanBase Database by using systemd
        • Before deployment
          • (Optional) Configure sysctl.conf
          • (Optional) Configure the clock source
          • (Optional) Check resources
          • (Optional) Perform disk planning
          • (Optional) Set password-free SSH login
          • (Optional) Configure limits.conf
          • (Optional) Create a user
          • (Optional) Disable the firewall and SELinux
        • Deploy through GUI
          • Deploy an OceanBase cluster through the GUI of OCP
          • Deploy an OceanBase cluster through the GUI of obd
    • Deploy OceanBase Database Enterprise Edition
      • Deployment process
      • Deploy through GUI
        • (Optional) Deploy ODP
        • Deploy OceanBase clusters using OCP
          • Deploy a standalone OceanBase database by using OCP
          • Deploy a two-replica OceanBase cluster with the arbitration service by using OCP
          • Deploy a three-replica OceanBase cluster by using OCP
          • Deploy a single-replica OceanBase cluster by using OCP
        • Configure deployment environment using OAT
          • Add a server
        • Deploy OCP
          • Deploy OCP
          • Create MetaDB
          • Upload installation packages
          • Overview
      • Deploy through CLI
        • (Optional) Deploy ODP
        • Configure deployment environment
          • (Optional) Configure the clock source
          • Initialize an OBServer node by using oatcli
        • Deploy OceanBase clusters using CLI
          • Deploy a standalone OceanBase database by using the CLI
          • Deploy a two-replica OceanBase cluster with the arbitration service by using the CLI
          • Deploy a three-replica OceanBase cluster by using the CLI
          • Deploy a single-replica OceanBase cluster by using the CLI
      • Before deployment
        • Deploy OAT
        • Prepare installation packages
        • Configure servers
        • Prepare servers
  • Migrate
    • Import data from SQL files to OceanBase Database
    • Overview
    • Migrate from DB2 databases to OceanBase Database
      • Use OMS to migrate data from a DB2 LUW database to a MySQL tenant of OceanBase Database
      • Use OMS to migrate data from a DB2 LUW database to an Oracle tenant of OceanBase Database
      • Use DBCAT to migrate table schemas from a DB2 LUW database to OceanBase Database
    • Migrate from Oracle databases to OceanBase Database
      • Use OMS to migrate data from an Oracle database to an Oracle tenant of OceanBase Database
      • Use DataX to migrate table data from an Oracle database to OceanBase Database
      • Use DBCAT to migrate schemas from an Oracle database to OceanBase Database
      • Use OMS to migrate data from an Oracle database to a MySQL tenant of OceanBase Database
    • Migrate from OceanBase Database to MySQL databases
      • Use DataX to migrate table data from OceanBase Database to a MySQL database
      • Use OMS to migrate incremental data from an Oracle tenant of OceanBase Database to a MySQL database
      • Use Flink CDC to migrate data from OceanBase Database to a MySQL database
      • Use ChunJun to migrate data from OceanBase Database to a MySQL database
      • Use Canal to synchronize data from OceanBase Database to a MySQL database
      • Use DBCAT to migrate schemas from OceanBase Database to a MySQL database
      • Use CloudCanal to migrate data from OceanBase Database to a MySQL database
      • Use OMS to migrate data from a MySQL tenant of OceanBase Database to a MySQL database
    • Migrate data between OceanBase Database
      • Use obloader & obdumper to migrate data from a MySQL tenant to an Oracle tenant in OceanBase Database
      • Use OMS to migrate data from an OceanBase tenant to another of the same type
      • Use OMS to migrate data from an OceanBase tenant to another of the same type in active-active disaster recovery scenarios
      • Use obloader & obdumper to migrate data between Oracle tenants in OceanBase Database
      • Use obloader & obdumper to migrate data between MySQL tenants in OceanBase Database
      • Use obloader & obdumper to migrate data from an Oracle tenant to a MySQL tenant in OceanBase Database
    • Migrate from MySQL databases to OceanBase Database
      • Use Flink CDC to synchronize data from a MySQL database to OceanBase Database
      • Use OMS to migrate data from a MySQL database to a MySQL tenant of OceanBase Database
      • Use mydumper and myloader to migrate data from a MySQL database to OceanBase Database
      • Use ChunJun to migrate data from a MySQL database to OceanBase Database
      • Use CloudCanal to migrate data from a MySQL database to OceanBase Database
      • Use DataX to migrate table data from a MySQL database to OceanBase Database
      • Use DBCAT to migrate schemas from a MySQL database to OceanBase Database
      • Use Canal to synchronize data from a MySQL database to OceanBase Database
    • Direct load
      • Overview
      • Full direct load
      • Incremental direct load
      • Import data in direct load mode by using :obloader
    • Migrate from CSV files to OceanBase Database
      • Import data by using the LOAD DATA statement
      • Use DataX to migrate CSV files to OceanBase Database
    • Migrate from OceanBase Database to Oracle databases
      • Use DBCAT to migrate schemas from OceanBase Database to an Oracle database
      • Use DataX to migrate table data from OceanBase Database to an Oracle database
      • Use OMS to migrate data from an Oracle tenant of OceanBase Database to an Oracle database
    • Migrate from PostgreSQL databases to OceanBase Database
      • Use OMS to migrate data from a PostgreSQL database to a MySQL tenant of OceanBase Database
    • Migrate data using SQL statements
      • Export data by using the SELECT INTO OUTFILE statement
      • Migrate resource units
      • Migrate data between tables
    • Migrate from OceanBase Database to DB2 databases
      • Use OMS to migrate data from a MySQL tenant of OceanBase Database to a DB2 LUW database
      • Use OMS to migrate data from an Oracle tenant of OceanBase Database to a DB2 LUW database
    • Migrate from TiDB databases to OceanBase Database
      • Use OMS to migrate data from a TiDB database to a MySQL tenant of OceanBase Database
  • Manage
    • Log in to an OceanBase tenant
    • Manage replicas
      • Traffic distribution
      • Data distribution
      • Overview
      • Data load balancing
        • Cancel a load balancing job
        • Transfer a partition
        • Cancel a partition transfer task
        • Overview
      • Replica distribution
        • Locality
        • Common locality operations
          • View locality
          • Adjust the distribution of replicas
          • Remove replicas
          • Add replicas
          • View the locality change history
          • Migrate replicas
          • Modify locality
          • Convert the type of a replica
          • Modify the number of Paxos replicas of a log stream
          • Cancel a replica task
    • Performance tuning
      • Identify bottlenecks on the data link
      • Overview
      • SQL tuning
        • Locate and analyze slow queries II
        • Locate and analyze slow queries I
        • Typical scenarios and cases
        • SQL tuning system
        • Execution plan optimization
          • Order and limit optimization
            • Overview
            • Optimization in ORDER BY + LIMIT scenarios
            • SORT assignment and optimization
          • Plan management
            • Disadvantages of the plan cache and countermeasures
            • Plan cache
            • Views related to the plan cache
          • Statistical information and row estimation
            • Overview
            • Use statistical information and row estimation
            • Statistical information
              • Query statistics
              • Overview
              • Manage statistical information
                • Overview
                • Lock statistics
                • Configure statistics collection strategies
                • Query historical versions of statistics and roll back to a specified version
                • Delete and set statistics
                • Import and export statistics
              • Collect statistical information
                • Automatic statistics collection
                • Overview
                • Manually collect statistics
            • Row estimation
              • Row estimation based on the selectivity
              • Overview
              • Row estimation based on the storage layer
          • Join order and join algorithm
            • Join order
            • Join types
            • Joins
            • Join algorithm
              • Nested loop joins
              • Common business issues
              • Hash joins
              • Merge joins
          • Index selection
            • Reduce row reads
            • Avoid sorting
            • Overview
            • Avoid table access by index primary key
        • Business logic optimization
          • Schema specifications
          • SQL specifications
      • Identify bottlenecks within components
        • ODP performance bottlenecks
        • ODP performance analysis
        • OBServer performance bottlenecks
          • Overview
          • Capacity issues
          • Hard parsing
          • Internal wait events
          • Non-optimal plan
            • Non-optimal plan
            • Cardinality
            • Buffer tables
    • Daily inspection
      • Deadlock detection
      • Overview
      • Check tenant resource usage
      • Check cluster parameters
      • Check cluster resource usage
      • Check the host status
      • Check the NTP offset
      • Check the OBServer node status
      • End-to-end tracing
        • Show end-to-end tracing information
        • Process
        • Methods
        • Overview
        • Quick start: End-to-end diagnosis with obdiag
    • Manage clusters
      • Cluster parameters
      • Overview
      • Common cluster operations
        • Delete a zone
        • Isolate a zone
        • Add a zone
        • Reset a cluster parameter
        • Restart a node
        • Delete a node
        • Modify a zone
        • Modify cluster parameters
        • Isolate a node
        • Online upgrade from standalone deployment to distributed deployment
        • View cluster parameters
        • View a zone
        • Add a node
        • Start a zone
        • View a node
        • Replace a node
        • Upgrade a cluster
          • OceanBase Database Enterprise Edition
            • Upgrade an arbitration service
            • Overview
            • Upgrade an OceanBase cluster
            • Check upgrade results
          • OceanBase Database Community Edition
            • Upgrade OceanBase Database by using obd
      • Troubleshoot common problems
        • Failures of a minority of nodes
        • Failures of the majority of nodes
    • Security and permissions
      • Overview
      • Access control
        • Network security access control
        • Row-level access control
        • RPC connection authentication
        • Overview
        • Users and permissions
          • Overview
          • MySQL mode
            • Privilege delegation
            • Drop a user
            • Create a user
            • Lock or unlock a user
            • Grant direct privileges
            • Revoke privileges
            • View user privileges
            • Grant indirect privileges
            • Privilege types in MySQL mode
            • Role management
              • Grant privileges to a role
              • Revoke privileges from a role
              • View roles
              • Activate a role
              • Revoke a role from a user or another role
              • Overview
              • Grant a role to a user or another role
              • Create a role
              • Drop a role
          • Oracle mode
            • Privilege types in Oracle mode
            • Revoke privileges
            • Grant indirect privileges
            • View user privileges
            • Create a user
            • Privilege delegation
            • View the information of a user
            • Grant direct privileges
            • Drop a user
            • Lock or unlock a user
            • Use a proxy user
            • Manage roles
              • View roles
              • Create a role
              • Grant a role to a user
              • Overview
              • Activate or deactivate roles for a user
              • Revoke a role
              • Drop a role
              • Modify a role
              • Grant a role to another role
      • Transparent data encryption
        • Overview
        • Oracle mode
          • Decrypt a table
          • Enable TDE for existing tables
          • Enable TDE for new tables
        • MySQL mode
          • Enable TDE for existing tables
          • Decrypt a table
          • Enable TDE for new tables
      • Identification and authentication
        • Oracle mode
          • Login failure processing
          • Password complexity
          • Identity authentication
        • MySQL mode
          • Password complexity
          • Identity authentication
          • Login failure processing
      • Security audit
        • Audit specified database objects
        • Overview
        • Enable security audit
        • Audit user login operations
        • Set and view audit rules
        • View audit records
        • Audit user operations
      • Data transmission encryption
        • ODP transmission encryption
        • OBServer transmission encryption
        • Overview
    • Backup and restore
      • Overview of physical backup and restore
      • Experience physical backup and restore with simplified deployment
      • Deploy NFS
      • Restore by table
        • Preparations
        • Parameters related to table restore
        • View the table restore result
        • Views related to table restore
        • View the table restore progress
        • Perform table restore
        • Cancel table restore
      • Clear backup data
        • Stop backup cleanup
        • Backup cleanup parameter
        • Query the backup cleanup history
        • Query the backup cleanup progress
        • Views related to backup cleanup
        • Automatic cleanup of expired backups
      • Restore data
        • Replay logs to a standby tenant
        • Parameters related to physical restore
        • Views related to physical restore
        • Convert a standby tenant into primary tenant
        • Cancel physical restore
        • Preparations
        • Upgrade a tenant after restore
        • View the physical restore progress
        • View physical restore results
        • Perform physical restore
        • Perform restore from the specified paths
      • Log archive
        • Overview
        • Disable ARCHIVELOG
        • Change the log archive destination
        • View information about pieces
        • Views related to log archiving
        • View the archiving progress
        • Preparations
        • View the archiving history
        • Suspend archiving
        • View archiving parameter settings
        • Enable ARCHIVELOG
        • Clear the archive path setting
      • Data backup
        • Views related to data backup
        • View data backup parameter settings
        • Change the backup destination
        • Preparations
        • View the data backup history
        • Initiate an incremental data backup job
        • Initiate a full data backup job
        • Stop a backup job
        • View the data backup progress
    • Emergency response
      • Emergency response overview
      • Analysis, diagnosis, and decision-making procedure
      • Common emergency problem handling
        • Capacity issues
          • Node data disk full
          • obproxy thread exhaustion
          • Exceptions of SQL queries
          • Tenant memory full
          • Node network card overload
          • Tenant request queue backlog
          • Node disk I/O high
          • Node clog disk full
        • Hardware issues
          • Other hardware and network issues
          • Node failure
          • ODP failure
          • Network failure
        • Other cluster issues
          • Insufficiency or leakage of system memory
          • sys tenant or RootService exceptions
    • High availability
      • Flashback queries
      • High availability overview
      • Physical standby database disaster recovery
        • Limitations
        • Overview
        • Log storage service
        • Drop primary and standby tenants
        • Log transmission service
          • Pause or resume log synchronization
          • View the log synchronization progress
          • Overview
          • Specify log compression
          • Optimize the log synchronization performance
          • Set the log synchronization bandwidth limit
          • View log restore source information
          • Configure log transmission service
            • Specify a log restore source
            • Specify a log restore endpoint
        • Create a standby tenant
          • Create a standby tenant by using the BACKUP DATABASE PLUS ARCHIVELOG feature
          • Create a standby tenant by using the backup and restore (with complete logs) feature
          • Create an empty standby tenant
          • Preparations
        • Switch roles
          • Switchover
          • Overview of tenant roles
          • Failover
      • Multi-replica disaster recovery
        • Disaster recovery architecture and levels
        • ODP high availability
        • Database-level high availability
        • Data link introduction
      • Arbitration high availability
        • Enable the arbitration service for a tenant
        • Remove the arbitration service for a cluster
        • Disable the arbitration service for a tenant
        • Query log stream upgrade/downgrade information
        • Replace the arbitration service for a cluster
        • Clear residual cluster information
        • Overview
        • Modify the log stream downgrade control time
      • Manage recycle bin
        • Purge the recycle bin
        • Overview
        • Enable or disable the recycle bin
        • Restore objects from the recycle bin
        • View objects in the recycle bin
    • Manage tenants
      • User tenant introduction
      • Tenant system variables
      • Tenant capacity
      • Tenant types
      • Tenant introduction
      • Common tenant operations
        • Rename a tenant
        • Drop a tenant
        • Lock and unlock a tenant
        • Modify attributes of a tenant
        • View tenant and resource information
        • Cancel tenant cloning
        • Modify attributes of a resource pool
        • Create a tenant
        • View and set the tenant allowlist
        • Modify system variables of a tenant
        • Clone a tenant
        • Restore a tenant
        • View system variables of a tenant
        • Manage services
          • Create a service
          • Query the service status
          • Start a service
          • Stop a service
          • Delete a service
        • Manage unit configs
          • Query unit configs
          • Modify a unit config
          • Drop a unit config
        • Resource isolation
          • Overview
          • Manage resource isolation (MySQL mode)
            • Delete a resource management plan
            • Delete a resource group
            • Configure resource isolation within a tenant
            • Clear cgroup configurations
            • Delete a plan directive
            • Update a plan directive
            • Configure cgroups
            • Calibrate the disk performance
            • Configure global CPU resource isolation for foreground and background tasks
          • Manage resource isolation (Oracle mode)
            • Update a plan directive
            • Configure cgroups
            • Delete a resource management plan
            • Configure resource isolation within a tenant
            • Delete a plan directive
            • Clear cgroup configurations
            • Calibrate the disk performance
            • Delete a resource group
            • Configure global CPU resource isolation for frontend and backend tasks
        • Manage resource pools
          • Drop a resource pool
          • Merge and split resource pools
          • View resource pool information
          • Remove resource pools from a tenant
          • Allocate a resource pool to a tenant
        • Scale in/out
          • Modify the unit config for a tenant
          • Modify the number of primary zones for a tenant
          • Introduction to scaling in/out
          • Plan resources
          • Modify the number of resource units for a tenant
    • Troubleshooting
      • Bootstrap
      • Log synchronization-related errors
      • Overview
      • Arbitration server process startup failures
      • Troubleshoot SQL execution errors
      • Application exception -- error message does not contain OceanBase error code
      • Application exception -- error message contains OceanBase error code
      • Physical standby database
        • Switchover and failover issues
        • Log synchronization stuck for the physical standby database
        • Other issues
      • Backup and restore
        • Physical restore failures
        • Data backup failures
      • Transaction
        • Suspended transactions
        • Long-running transactions
        • Transaction-related errors
        • Transaction rollbacks
        • Idle transactions
      • Election
        • Leader switchover exceptions
        • Absence of the leader
        • Election
      • Storage
        • Migration, replication, and rebuild tasks
        • Minor compaction and major compaction
        • Memory-related errors
    • Monitor
      • Overview
      • Cases
      • Metrics
        • SQL monitoring
          • Overview
          • SQL audit
          • Execution plans
        • System monitoring
          • Wait events
          • Metrics
          • Latch events
          • Overview
    • Logs
      • Log levels
      • Log compression and decompression
      • Log metrics
      • Log control
      • Overview
      • Log stability
      • Alert logs
      • View logs
        • Query the log of a previous SQL request by using the SQL Trace feature
        • Search for the logs of a specific SQL request
  • OceanBase AP
    • Get started with OceanBase AP
    • Core features
    • Export data
    • Ecosystem integration
    • Overview
    • Data table design
      • Best practices
      • Overview
      • Data distribution
    • Performance diagnosis and tuning
      • Use the DBMS_XPLAN package for performance diagnostics
      • Views related to AP performance analysis
      • Use the GV$SQL_PLAN_MONITOR view for performance analysis
    • Deployment
      • Overview
      • Recommended parameter configurations for AP scenarios
    • Query acceleration
      • Full direct load
      • Statistics
      • Auto DOP
      • Materialized views
      • Table groups
      • Hints
      • Hybrid row-column storage
    • Performance test
      • TPC-DS benchmark report
      • TPC-H benchmark
      • TPC-DS benchmark
      • TPC-H benchmark report
    • Import data
      • ETL acceleration
      • Strategies and best practices
      • Overview
  • Vector Search
    • Generate vector embeddings
    • Store vector embeddings
    • Create a vector index
    • Use SQL functions
    • Reference
      • Overview
      • FAQ about vector search
    • Quick start
      • Use SQL for quick vector search
      • Use Python for vector retrieval
    • Overview
      • Overview
      • Vector search core features
    • Tutorial
      • Overview
  • OBKV
    • Architecture
    • Overview
    • OBKV-HBase
      • FAQ
      • Compatibility with HBase
      • Deployment
      • Overview
      • Views
      • Core features
      • Performance test
      • Use OBKV-HBase
        • Connect to a cluster by using the OBKV-HBase client
        • Overview
        • Data model design
        • Data operation examples
        • Data model
        • Delete expired data
      • OBKV-HBase integration
        • Synchronize data to OBKV-HBase by using Flink
      • OBKV-HBase management
        • Security and permissions
        • Monitoring metrics
        • Overview
        • High availability
    • OBKV-Table
      • FAQ
      • Use the OBKV-Table GO client
        • Use the OBKV-Table Go client to connect to a cluster
        • Overview of the Go client
        • Individual API operations
        • Batch operations
        • Filters
        • Aggregation API
        • About queries
      • Use the OBKV-Table Java client
        • Use the OBKV-Table Java client
        • Set client parameters
        • Supported client interfaces
        • Use the OBKV-Table Java client to connect to a cluster
      • Introduction
        • Differences between replace and insert_or_update
        • Supported value types
        • OBKV-Table data models
        • Overview
        • OBKV-Table operation types
  • Tutorials
    • Build an image search application with OceanBase Database
    • Build an intelligent Q&A robot with OceanBase Database
    • Build an offline data warehouse and a visual dashboard with OceanBase Database
  • Reference
    • Parameters and system variables
      • Overview
      • Parameters
        • Overview
        • Cluster-level parameters
          • alert_log_level
          • all_cluster_list
          • all_server_list
          • auto_broadcast_location_cache_rate_limit
          • auto_leader_switch_interval
          • auto_refresh_location_cache_rate_limit
          • autoinc_cache_refresh_interval
          • backup_backup_dest
          • backup_backup_dest_option
          • backup_concurrency
          • backup_dest
          • backup_dest_option
          • backup_log_archive_option
          • backup_net_limit
          • backup_recovery_window
          • backup_region
          • backup_zone
          • balance_blacklist_failure_threshold
          • balance_blacklist_retry_interval
          • balancer_emergency_percentage
          • balancer_log_interval
          • balancer_task_timeout
          • balancer_timeout_check_interval
          • balancer_tolerance_percentage
          • bf_cache_miss_count_threshold
          • bf_cache_priority
          • builtin_db_data_verify_cycle
          • cache_wash_threshold
          • clog_cache_priority
          • clog_disk_usage_limit_percentage
          • clog_disk_utilization_threshold
          • clog_expire_days
          • clog_sync_time_warn_threshold
          • clog_transport_compress_func
          • cluster
          • cluster_id
          • config_additional_dir
          • cpu_count
          • cpu_reserved
          • data_copy_concurrency
          • data_dir
          • data_disk_usage_limit_percentage
          • data_disk_write_limit_percentage
          • data_storage_error_tolerance_time
          • data_storage_warning_tolerance_time
          • datafile_disk_percentage
          • datafile_maxsize
          • datafile_next
          • datafile_size
          • dead_socket_detection_timeout
          • debug_sync_timeout
          • default_compress
          • default_compress_func
          • default_row_format
          • default_transport_compress_func
          • devname
          • diag_syslog_per_error_limit
          • disk_io_thread_count
          • dtl_buffer_size
          • election_blacklist_interval
          • election_cpu_quota
          • enable_asan_for_memory_context
          • enable_async_syslog
          • enable_auto_leader_switch
          • enable_auto_refresh_location_cache
          • enable_cgroup
          • enable_dblink
          • enable_ddl
          • enable_election_group
          • enable_global_background_resource_isolation
          • enable_global_freeze_trigger
          • enable_log_archive
          • enable_major_freeze
          • enable_manual_merge
          • enable_merge_by_turn
          • enable_ob_esi_process
          • enable_ob_ratelimit
          • enable_one_phase_commit
          • enable_perf_event
          • enable_pg
          • enable_record_trace_id
          • enable_record_trace_log
          • enable_rereplication
          • enable_rich_error_msg
          • enable_rootservice_standalone
          • enable_rpc_authentication_bypass
          • enable_separate_sys_clog
          • enable_smooth_leader_switch
          • enable_sql_audit
          • enable_sql_operator_dump
          • enable_sys_table_ddl
          • enable_sys_unit_standalone
          • enable_syslog_recycle
          • enable_syslog_wf
          • enable_tcp_keepalive
          • enable_upgrade_mode
          • fast_recovery_concurrency
          • flush_log_at_trx_commit
          • fuse_row_cache_priority
          • gc_wait_archive
          • get_leader_candidate_rpc_timeout
          • global_background_cpu_quota
          • global_index_build_single_replica_timeout
          • global_major_freeze_residual_memory
          • global_write_halt_residual_memory
          • high_priority_net_thread_count
          • ignore_replay_checksum_error
          • ignore_replica_checksum_error
          • ilog_index_expire_time
          • index_block_cache_priority
          • index_cache_priority
          • index_clog_cache_priority
          • index_info_block_cache_priority
          • internal_sql_execute_timeout
          • large_query_threshold
          • large_query_worker_percentage
          • leak_mod_to_check
          • lease_time
          • local_ip
          • location_cache_cpu_quota
          • location_cache_expire_time
          • location_cache_priority
          • location_cache_refresh_min_interval
          • location_cache_refresh_rpc_timeout
          • location_cache_refresh_sql_timeout
          • location_fetch_concurrency
          • location_refresh_thread_count
          • log_archive_batch_buffer_limit
          • log_archive_checkpoint_interval
          • log_disk_percentage
          • log_disk_size
          • log_storage_warning_tolerance_time
          • ls_meta_table_check_interval
          • max_kept_major_version_number
          • max_px_worker_count
          • max_string_print_length
          • max_syslog_file_count
          • memory_chunk_cache_size
          • memory_limit
          • memory_limit_percentage
          • memory_reserved
          • memstore_limit_percentage
          • merge_stat_sampling_ratio
          • merge_thread_count
          • merger_completion_percentage
          • merger_switch_leader_duration_time
          • merger_warm_up_duration_time
          • micro_block_merge_verify_level
          • migrate_concurrency
          • migration_disable_time
          • min_observer_version
          • minor_deferred_gc_time
          • minor_freeze_times
          • minor_merge_concurrency
          • minor_warm_up_duration_time
          • multiblock_read_gap_size
          • multiblock_read_size
          • mysql_port
          • net_thread_count
          • ob_esi_io_concurrency
          • ob_esi_max_syslog_file_count
          • ob_esi_memory_limit
          • ob_esi_rpc_port
          • ob_esi_session_timeout
          • ob_esi_syslog_level
          • ob_event_history_recycle_interval
          • ob_ratelimit_stat_period
          • ob_startup_mode
          • obconfig_url
          • observer_id
          • ofs_list
          • opt_tab_stat_cache_priority
          • partition_table_check_interval
          • plan_cache_evict_interval
          • plan_cache_high_watermark
          • plan_cache_low_watermark
          • px_task_size
          • px_workers_per_cpu_quota
          • rdma_io_thread_count
          • rebuild_replica_data_lag_threshold
          • recyclebin_object_expire_time
          • replica_safe_remove_time
          • resource_hard_limit
          • resource_soft_limit
          • restore_concurrency
          • rootservice_async_task_queue_size
          • rootservice_async_task_thread_count
          • rootservice_list
          • rootservice_memory_limit
          • rootservice_ready_check_interval
          • row_compaction_update_limit
          • row_purge_thread_count
          • rpc_client_authentication_method
          • rpc_port
          • rpc_server_authentication_method
          • rpc_timeout
          • schema_history_expire_time
          • schema_history_recycle_interval
          • server_balance_cpu_mem_tolerance_percent
          • server_balance_critical_disk_waterlevel
          • server_balance_disk_tolerance_percent
          • server_check_interval
          • server_cpu_quota_max
          • server_cpu_quota_min
          • server_data_copy_in_concurrency
          • server_data_copy_out_concurrency
          • server_permanent_offline_time
          • sql_audit_memory_limit
          • sql_login_thread_count
          • sql_net_thread_count
          • sql_protocol_min_tls_version
          • ssl_client_authentication
          • ssl_external_kms_info
          • stack_size
          • standby_fetch_log_bandwidth_limit
          • storage_meta_cache_priority
          • strict_check_os_params
          • switchover_process_thread_count
          • sys_bkgd_io_high_percentage
          • sys_bkgd_io_low_percentage
          • sys_bkgd_migration_change_member_list_timeout
          • sys_bkgd_migration_retry_num
          • sys_bkgd_net_percentage
          • sys_cpu_limit_trigger
          • syslog_compress_func
          • syslog_disk_size
          • syslog_file_uncompressed_count
          • syslog_io_bandwidth_limit
          • syslog_level
          • system_cpu_quota
          • system_memory
          • system_trace_level
          • tableapi_transport_compress_func
          • tablet_ls_cache_priority
          • tablet_meta_table_check_interval
          • tablet_meta_table_scan_batch_count
          • tablet_size
          • tcp_keepcnt
          • tcp_keepidle
          • tcp_keepintvl
          • tenant_cpu_variation_per_server
          • tenant_groups
          • tenant_task_queue_size
          • token_reserved_percentage
          • trace_log_sampling_interval
          • trace_log_slow_query_watermark
          • trx_2pc_retry_interval
          • trx_force_kill_threshold
          • trx_try_wait_lock_timeout
          • unit_balance_resource_weight
          • use_large_pages
          • user_block_cache_priority
          • user_iort_up_percentage
          • user_row_cache_priority
          • user_tab_col_stat_cache_priority
          • virtual_table_location_cache_expire_time
          • wait_leader_batch_count
          • weak_read_version_refresh_interval
          • workers_per_cpu_quota
          • zone
          • zone_merge_concurrency
          • zone_merge_order
          • zone_merge_timeout
        • Tenant-level parameters
          • arbitration_timeout
          • archive_lag_target
          • audit_sys_operations
          • audit_trail
          • backup_data_file_size
          • balancer_idle_time
          • choose_migration_source_policy
          • clog_max_unconfirmed_log_count
          • clog_persistence_compress_func
          • compaction_dag_cnt_limit
          • compaction_high_thread_score
          • compaction_low_thread_score
          • compaction_mid_thread_score
          • compaction_schedule_tablet_batch_cnt
          • compatible
          • connection_control_failed_connections_threshold
          • connection_control_max_connection_delay
          • connection_control_min_connection_delay
          • cpu_quota_concurrency
          • ddl_thread_score
          • default_auto_increment_mode
          • default_enable_extended_rowid
          • default_progressive_merge_num
          • default_table_store_format
          • dump_data_dictionary_to_log_interval
          • enable_clog_persistence_compress
          • enable_early_lock_release
          • enable_kv_ttl
          • enable_monotonic_weak_read
          • enable_rebalance
          • enable_sql_extension
          • enable_transfer
          • enable_user_defined_rewrite_rules
          • external_kms_info
          • freeze_trigger_percentage
          • ha_high_thread_score
          • ha_low_thread_score
          • ha_mid_thread_score
          • io_category_config
          • job_queue_processes
          • kv_ttl_duty_duration
          • kv_ttl_history_recycle_interval
          • lob_enable_block_cache_threshold
          • log_archive_concurrency
          • log_disk_throttling_maximum_duration
          • log_disk_throttling_percentage
          • log_disk_utilization_limit_threshold
          • log_disk_utilization_threshold
          • log_restore_concurrency
          • log_storage_compress_all
          • log_storage_compress_func
          • log_transport_compress_all
          • log_transport_compress_func
          • ls_gc_delay_time
          • major_compact_trigger
          • major_freeze_duty_time
          • max_partition_num
          • max_stale_time_for_weak_consistency
          • merger_check_interval
          • minor_compact_trigger
          • ob_compaction_schedule_interval
          • ob_enable_batched_multi_statement
          • ob_proxy_readonly_transaction_routing_policy
          • ob_query_switch_leader_retry_timeout
          • ob_ssl_invited_common_names
          • open_cursors
          • optimizer_index_cost_adj
          • partition_balance_schedule_interval
          • plsql_code_type
          • plsql_debug
          • plsql_optimize_level
          • plsql_v2_compatibility
          • query_response_time_flush
          • query_response_time_range_base
          • query_response_time_stats
          • range_optimizer_max_mem_size
          • rpc_memory_limit_percentage
          • spill_compression_codec
          • sql_work_area
          • standby_db_fetch_log_rpc_timeout
          • standby_db_preferred_upstream_log_region
          • tde_method
          • tenant_sql_login_thread_count
          • tenant_sql_net_thread_count
          • storage_rowsets_size
          • ttl_thread_score
          • undo_retention
          • workarea_size_policy
          • writing_throttling_maximum_duration
          • writing_throttling_trigger_percentage
      • System variables
        • Overview of system variables
        • Global variables
          • activate_all_roles_on_login
          • auto_increment_cache_size
          • auto_increment_increment
          • auto_increment_offset
          • autocommit
          • automatic_sp_privileges
          • binlog_row_image
          • block_encryption_mode
          • character_set_client
          • character_set_connection
          • cardinality_estimation_model
          • character_set_database
          • character_set_filesystem
          • character_set_results
          • character_set_server
          • character_set_system
          • collation_connection
          • collation_database
          • collation_server
          • connect_timeout
          • cte_max_recursion_depth
          • cursor_sharing
          • datadir
          • debug_sync
          • default_password_lifetime
          • default_storage_engine
          • div_precision_increment
          • error_on_overlap_time
          • event_scheduler
          • explicit_defaults_for_timestamp
          • foreign_key_checks
          • group_concat_max_len
          • identity
          • init_connect
          • innodb_stats_persistent
          • innodb_strict_mode
          • interactive_timeout
          • license
          • lc_time_names
          • log_row_value_options
          • lower_case_table_names
          • max_allowed_packet
          • max_connections
          • max_sp_recursion_depth
          • max_user_connections
          • net_buffer_length
          • net_read_timeout
          • net_write_timeout
          • nls_calendar
          • nls_characterset
          • nls_comp
          • nls_currency
          • nls_date_format
          • nls_date_language
          • nls_dual_currency
          • nls_iso_currency
          • nls_length_semantics
          • nls_nchar_characterset
          • nls_nchar_conv_excp
          • nls_numeric_characters
          • nls_sort
          • nls_territory
          • nls_timestamp_format
          • nls_timestamp_tz_format
          • ob_bnl_join_cache_size
          • ob_compatibility_mode
          • ob_compatibility_control
          • ob_compatibility_version
          • ob_create_table_strict_mode
          • ob_default_lob_inrow_threshold
          • ob_default_replica_num
          • ob_early_lock_release
          • ob_enable_aggregation_pushdown
          • ob_enable_blk_nestedloop_join
          • ob_enable_hash_group_by
          • ob_enable_index_direct_select
          • ob_enable_jit
          • ob_enable_pl_cache
          • ob_enable_plan_cache
          • ob_enable_rich_error_msg
          • ob_enable_sql_audit
          • ob_enable_transformation
          • ob_enable_transmission_checksum
          • ob_enable_truncate_flashback
          • ob_global_debug_sync
          • ob_log_level
          • ob_max_read_stale_time
          • ob_pl_block_timeout
          • ob_plan_cache_evict_high_percentage
          • ob_plan_cache_evict_low_percentage
          • ob_plan_cache_percentage
          • ob_proxy_global_variables_version
          • ob_query_timeout
          • ob_read_consistency
          • ob_reserved_meta_memory_percentage
          • ob_route_policy
          • ob_sql_audit_percentage
          • ob_sql_work_area_percentage
          • ob_tcp_invited_nodes
          • ob_temp_tablespace_size_percentage
          • ob_timestamp_service
          • ob_trx_idle_timeout
          • ob_trx_lock_timeout
          • ob_trx_timeout
          • optimizer_capture_sql_plan_baselines
          • ob_security_version
          • optimizer_dynamic_sampling
          • optimizer_features_enable
          • optimizer_use_sql_plan_baselines
          • parallel_degree_limit
          • parallel_degree_policy
          • parallel_max_servers
          • parallel_min_scan_time_threshold
          • parallel_servers_target
          • performance_schema
          • plugin_dir
          • plsql_ccflags
          • query_cache_size
          • query_cache_type
          • query_rewrite_enabled
          • query_rewrite_integrity
          • read_only
          • recyclebin
          • regexp_stack_limit
          • regexp_time_limit
          • resource_manager_plan
          • runtime_bloom_filter_max_size
          • runtime_filter_max_in_num
          • runtime_filter_type
          • runtime_filter_wait_time_ms
          • secure_file_priv
          • server_uuid
          • sql_auto_is_null
          • sql_mode
          • sql_quote_show_create
          • sql_safe_updates
          • sql_select_limit
          • sql_throttle_current_priority
          • sql_throttle_network
          • sql_throttle_priority
          • sql_throttle_rt
          • sql_warnings
          • system_time_zone
          • time_zone
          • transaction_isolation
          • transaction_read_only
          • tx_isolation
          • tx_read_only
          • validate_password_check_user_name
          • validate_password_length
          • validate_password_mixed_case_count
          • validate_password_number_count
          • validate_password_policy
          • validate_password_special_char_count
          • version
          • version_comment
          • wait_timeout
        • Session-level variables
          • is_result_accurate
          • last_insert_id
          • nls_language
          • ob_capability_flag
          • ob_enable_show_trace
          • ob_last_schema_version
          • ob_max_read_stale_time
          • ob_org_cluster_id
          • ob_proxy_partition_hit
          • ob_proxy_set_trx_executed
          • ob_trace_info
          • optimizer_dynamic_sampling
          • parallel_degree_limit
          • parallel_degree_policy
          • parallel_min_scan_time_threshold
          • runtime_bloom_filter_max_size
          • runtime_filter_max_in_num
          • runtime_filter_type
          • runtime_filter_wait_time_ms
          • timestamp
          • tracefile_identifier
    • SQL reference
      • Reserved keywords (MySQL mode)
      • Reserved keywords (Oracle mode)
      • SQL syntax
        • User tenants (MySQL mode)
          • Sequence pseudocolumns
          • Functions
            • Overview
            • JSON functions
              • `JSON_TABLE`
              • Overview
              • Functions for searching JSON text
                • JSON_CONTAINS
                • JSON_CONTAINS_PATH
                • JSON_EXTRACT
                • JSON_KEYS
                • JSON_OVERLAPS
                • JSON_SEARCH
                • JSON_VALUE
                • MEMBER OF
              • Functions for returning JSON text properties
                • JSON_DEPTH
                • JSON_LENGTH
                • JSON_TYPE
                • JSON_VALID
              • Functions for modifying JSON text
                • JSON_ARRAY_APPEND
                • JSON_UNQUOTE
                • JSON_APPEND
                • JSON_ARRAY_INSERT
                • JSON_INSERT
                • JSON_MERGE
                • JSON_MERGE_PATCH
                • JSON_MERGE_PRESERVE
                • JSON_REMOVE
                • JSON_REPLACE
                • JSON_SET
              • Functions for creating JSON text
                • JSON_ARRAY
                • JSON_OBJECT
                • JSON_QUOTE
              • JSON aggregate functions
                • JSON_ARRAYAGG
                • JSON_OBJECTAGG
              • JSON schema validation functions
                • JSON_SCHEMA_VALID
                • JSON_SCHEMA_VALIDATION_REPORT
              • JSON utility functions
                • JSON_PRETTY
                • JSON_STORAGE_SIZE
            • Single-row functions
              • Mathematical functions
                • ABS
                • COS
                • COT
                • CRC32
                • DEGREES
                • EXP
                • FLOOR
                • GENERATOR
                • LN
                • LOG
                • LOG10
                • LOG2
                • ACOS
                • MOD
                • NEG
                • NORMAL
                • PI
                • POW
                • POWER
                • RADIANS
                • RAND
                • RANDOM
                • RANDSTR
                • ASIN
                • ROUND
                • SIGN
                • SIN
                • SQRT
                • TAN
                • TRUNCATE
                • ATAN
                • UNIFORM
                • ATAN2
                • ZIPF
                • BIT_COUNT
                • CEIL
                • CEILING
                • CONV
              • Datetime functions
                • ADDDATE
                • DATE_FORMAT
                • DATE_SUB
                • DATEDIFF
                • DAYOFMONTH
                • DAYOFWEEK
                • DAYOFYEAR
                • EXTRACT
                • FROM_DAYS
                • FROM_UNIXTIME
                • GET_FORMAT
                • CONVERT_TZ
                • HOUR
                • LAST_DAY
                • LOCALTIME
                • LOCALTIMESTAMP
                • MAKEDATE
                • MAKETIME
                • MICROSECOND
                • MINUTE
                • MONTH
                • MONTHNAME
                • CURDATE
                • NOW
                • PERIOD_ADD
                • PERIOD_DIFF
                • QUARTER
                • SEC_TO_TIME
                • SECOND
                • STR_TO_DATE
                • SUBDATE
                • SUBTIME
                • SYSDATE
                • CURRENT_DATE
                • TIME
                • TIME_FORMAT
                • TIME_TO_SEC
                • TIME_TO_USEC
                • TIMEDIFF
                • TIMESTAMP
                • TIMESTAMPADD
                • TIMESTAMPDIFF
                • TO_DAYS
                • TO_SECONDS
                • CURRENT_TIME
                • UNIX_TIMESTAMP
                • USEC_TO_TIME
                • UTC_DATE
                • UTC_TIME
                • UTC_TIMESTAMP
                • WEEK
                • WEEKDAY
                • WEEKOFYEAR
                • YEARWEEK
                • YEAR
                • CURRENT_TIMESTAMP
                • ADDTIME
                • DAYNAME
                • DAY
                • CURTIME
                • DATE
                • DATE_ADD
              • String functions
                • ASCII
                • ELT
                • EXPORT_SET
                • BIN
                • FIELD
                • FIND_IN_SET
                • FORMAT
                • BIT_LENGTH
                • HEX
                • INSERT
                • INSTR
                • INT2IP
                • IP2INT
                • CHAR
                • LCASE
                • LEFT
                • CHAR_LENGTH
                • LENGTH
                • LOCATE
                • LOWER
                • LPAD
                • LTRIM
                • MAKE_SET
                • MID
                • OCT
                • OCTET_LENGTH
                • ORD
                • CHARACTER_LENGTH
                • POSITION
                • CONCAT
                • QUOTE
                • REGEXP
                • REGEXP_INSTR
                • REGEXP_LIKE
                • REGEXP_REPLACE
                • REGEXP_SUBSTR
                • REPEAT
                • REPLACE
                • REVERSE
                • RIGHT
                • CONCAT_WS
                • RLIKE
                • RPAD
                • RTRIM
                • SPACE
                • STRCMP
                • SUBSTR
                • SUBSTRING
                • SUBSTRING_INDEX
                • TRIM
                • UCASE
                • UNHEX
                • UPPER
                • WEIGHT_STRING
                • TO_BASE64
                • FROM_BASE64
                • SOUNDEX
              • Comparison functions
                • GREATEST
                • INTERVAL
                • ISNULL
                • LEAST
              • Conversion functions
                • CAST
                • SCN_TO_TIMESTAMP
                • TIMESTAMP_TO_SCN
                • CONVERT
                • DECODE_TRACE_ID
              • Process control functions
                • CASE
                • IF
                • IFNULL
                • NULLIF
                • ORA_DECODE
            • Encryption functions
              • AES_DECRYPT
              • MD5
              • PASSWORD
              • UNCOMPRESS
              • UNCOMPRESSED_LENGTH
              • RANDOM_BYTES
              • SHA
              • SHA1
              • SHA2
              • VALIDATE_PASSWORD_STRENGTH
              • SM3
              • SM4_ENCRYPT
              • AES_ENCRYPT
              • SM4_DECRYPT
              • COMPRESS
              • DECODE
              • DES_DECRYPT
              • DES_ENCRYPT
              • ENCODE
              • ENCRYPT
            • Aggregate functions
              • APPROX_COUNT_DISTINCT
              • MIN
              • STD
              • STDDEV
              • STDDEV_POP
              • STDDEV_SAMP
              • SUM
              • VAR_POP
              • VAR_SAMP
              • VARIANCE
              • AVG
              • BIT_AND
              • BIT_OR
              • BIT_XOR
              • COUNT
              • GROUP_CONCAT
              • GROUPING
              • MAX
            • Analysis functions
              • APPROX_COUNT_DISTINCT
              • COUNT
              • CUME_DIST
              • DENSE_RANK
              • FIRST_VALUE
              • AVG
              • LAG
              • LAST_VALUE
              • LEAD
              • BIT_AND
              • MAX
              • MIN
              • NTH_VALUE
              • NTILE
              • PERCENT_RANK
              • RANK
              • ROW_NUMBER
              • STD
              • STDDEV
              • STDDEV_POP
              • BIT_OR
              • STDDEV_SAMP
              • SUM
              • VAR_POP
              • VAR_SAMP
              • VARIANCE
              • BIT_XOR
            • Other functions
              • ANY_VALUE
              • INET_ATON
              • INET_NTOA
              • INET6_ATON
              • INET6_NTOA
              • IS_IPV4
              • IS_IPV4_COMPAT
              • BIN_TO_UUID
              • IS_IPV6
              • IS_UUID
              • NVL
              • UUID_TO_BIN
              • SLEEP
              • UUID
              • UUID_SHORT
              • COALESCE
              • VALUES
              • DEFAULT
              • NAME_CONST
            • Spatial functions
              • Overview
              • Geometry processing functions
              • _ST_GeoHash
              • Functions that create geometry values
              • Spatial operation functions
              • Spatial relation functions
              • Geometry property functions
              • Geometry format conversion functions
              • Spatial analysis functions
              • Spatial constructor functions
              • Spatial accessor functions
              • Spatial format conversion functions
            • Information functions
              • BENCHMARK
              • ICU_VERSION
              • OB_TRANSACTION_ID
              • ROW_COUNT
              • SCHEMA
              • SESSION_USER
              • SYSTEM_USER
              • USER
              • VERSION
              • OB_VERSION
              • CHARSET
              • COERCIBILITY
              • COLLATION
              • CONNECTION_ID
              • CURRENT_ROLE
              • CURRENT_USER
              • DATABASE
              • FOUND_ROWS
              • LAST_INSERT_ID
            • Lock functions
              • Lock functions
              • GET_LOCK
              • IS_FREE_LOCK
              • IS_USED_LOCK
              • RELEASE_ALL_LOCKS
              • RELEASE_LOCK
            • Roaring bitmap functions
              • Overview
              • Roaring bitmap constructor functions
              • Roaring bitmap cardinality calculation functions
              • Roaring bitmap operation functions
              • Roaring bitmap judgment functions
              • Roaring bitmap output functions
              • Roaring bitmap aggregate functions
            • Performance schema functions
              • FORMAT_BYTES
              • FORMAT_PICO_TIME
            • XML functions
              • Overview
              • Functions for modifying XML data
                • UPDATEXML
              • Functions for querying XML data
                • EXTRACTVALUE
            • Array functions
              • Overview
              • Array constructor functions
              • Array judgment functions
          • SQL statements
            • General syntax
            • ALTER DATABASE
            • ALTER EXTERNAL TABLE
            • ALTER OUTLINE
            • ALTER SEQUENCE
            • MAJOR and MINOR
            • ALTER TABLE
            • ALTER TABLEGROUP
            • ALTER TABLESPACE
            • ALTER USER
            • ALTER VIEW
            • CTE
            • ANALYZE
            • CREATE DATABASE LINK
            • CREATE DATABASE
            • CREATE EXTERNAL TABLE
            • CREATE INDEX
            • CREATE MATERIALIZED VIEW
            • CREATE MATERIALIZED VIEW LOG
            • CREATE OUTLINE
            • CREATE RESTORE POINT
            • CREATE ROLE
            • CREATE SEQUENCE
            • CREATE TABLE
            • CREATE TABLEGROUP
            • CREATE TABLESPACE
            • CREATE USER
            • CREATE VIEW
            • CHECKSUM TABLE
            • DEALLOCATE PREPARE
            • DROP DATABASE LINK
            • DELETE
            • DESCRIBE
            • DROP DATABASE
            • DROP INDEX
            • DROP MATERIALIZED VIEW
            • DROP MATERIALIZED VIEW LOG
            • DROP OUTLINE
            • DROP ROLE
            • DROP TABLE
            • DROP TABLEGROUP
            • DROP TABLESPACE
            • DROP SEQUENCE
            • DROP USER
            • DROP VIEW
            • EXECUTE
            • EXPLAIN
            • FLASHBACK
            • GRANT
            • HELP
            • INSERT
            • KILL
            • LOAD DATA
            • LOCK TABLES
            • OPTIMIZE
            • PREPARE
            • PURGE
            • PURGE RECYCLEBIN
            • RENAME USER
            • RENAME TABLE
            • REPLACE
            • REPAIR TABLE
            • REVOKE
            • SAVEPOINT
            • SCHEMA
            • SELECT INTO
            • SET DEFAULT ROLE
            • SET
            • SET CHARSET
            • SET NAMES
            • SET PASSWORD
            • SET ROLE
            • SET TRANSACTION
            • SHOW
            • SUBMIT JOB
            • SHOW JOB STATUS
            • CANCEL JOB
            • TRANSACTION
            • TRUNCATE TABLE
            • UPDATE
            • USE
            • VALUES
            • SELECT
              • SELECT statement
              • JOIN clause
              • OVER clause
              • UNION clause
          • Queries and subqueries
            • Overview
            • Subqueries
            • Joins
            • Full-text queries
          • Basic elements
            • Schema object names
            • User-defined variables
            • Comments
            • Data types
              • Overview
              • ENUM type
              • SET type
              • Datetime types
                • Overview
                • DATE, DATETIME, and TIMESTAMP types
                • TIME type
                • YEAR type
              • Numeric types
                • Overview
                • Integer data types
                • Fixed-point data types
                • Floating-point data types
                • Bit value data type
              • Roaring bitmap data types
                • Overview
                • Create Roaring bitmap columns
              • Spatial data types
                • Overview
                • SRS
                • Create a spatial column
                • Create a spatial index
                • Spatial data formats
              • Large objects and text types
                • Overview
                • BLOB types
                • TEXT types
                • LOB types
              • JSON data types
                • Overview
                • Create a JSON value
                • Query and modify JSON values
                • Convert a JSON data type
                • Update partial JSON data
              • Array data types
                • Overview of array element types
                • Create array columns
              • String types
                • Overview
                • CHAR and VARCHAR
                • BINARY and VARBINARY
            • Character set and collation
              • Overview
              • Character sets
              • Collations
              • Database-level character sets and collations
              • Table-level character sets and collations
              • Column-level character sets and collations
              • Character sets and collations for character expressions
              • Character sets and collations for client connection
            • Literals
              • Overview
              • Strings
              • Numbers
              • Datetime values
              • Bit values
              • Boolean values
              • NULLs
            • Expressions
              • Overview
              • Expression syntax
              • Convert data types in expression evaluation
          • Operators
            • Overview
            • BINARY operator
            • CASE conditional operator
            • Operator precedence
            • Arithmetic operators
            • Bitwise operators
            • Comparison operators
            • Logical operators
            • Assignment operators
            • Date and time operators
            • Concatenation operators
          • DDL feature
            • Overview
            • Online and offline DDL operations
            • Index operations
            • Primary key operations
            • Column operations
            • Generated column operations
            • Foreign key operations
            • Table operations
            • Partition operations
            • Column type change rules
            • Conversion rules for numeric data types
        • User tenants (Oracle mode)
          • Introduction to SQL
          • Functions
            • Overview
            • Single-row functions
              • JSON functions
                • Overview
                • Modify JSON text functions
                  • JSON_MERGEPATCH
                • Create JSON text functions
                  • JSON_ARRAY
                  • JSON_OBJECT
                  • JSON_ARRAYAGG
                  • JSON_OBJECTAGG
                • Query JSON text functions
                  • JSON_VALUE
                  • JSON_QUERY
                  • JSON_EXISTS
                  • JSON_TABLE
                • Validate JSON text functions
                  • JSON_EQUAL
              • Conversion functions
                • ASCIISTR
                • ROWIDTONCHAR
                • SCN_TO_TIMESTAMP
                • CAST
                • TIMESTAMP_TO_SCN
                • TO_BINARY_DOUBLE
                • TO_BINARY_FLOAT
                • TO_BLOB
                • TO_CHAR(character)
                • TO_CHAR(datetime)
                • TO_CHAR(number)
                • TO_CLOB
                • TO_DATE
                • TO_DSINTERVAL
                • CHARTOROWID
                • TO_MULTI_BYTE
                • TO_NUMBER
                • TO_NCHAR(character)
                • TO_NCHAR(datetime)
                • TO_NCHAR(number)
                • TO_SINGLE_BYTE
                • TO_TIMESTAMP
                • TO_TIMESTAMP_TZ
                • TO_YMINTERVAL
                • CONVERT
                • UNISTR
                • HEXTORAW
                • NUMTODSINTERVAL
                • NUMTOYMINTERVAL
                • RAWTOHEX
                • ROWIDTOCHAR
              • Numeric functions
                • ABS
                • EXP
                • FLOOR
                • GENERATOR
                • LN
                • LOG
                • MOD
                • NANVL
                • NORMAL
                • POWER
                • REMAINDER
                • ROUND
                • ACOS
                • RANDOM
                • RANDSTR
                • ASIN
                • SIGN
                • SIN
                • SINH
                • SQRT
                • TAN
                • TANH
                • TRUNC
                • ATAN
                • UNIFORM
                • WIDTH_BUCKET
                • ATAN2
                • ZIPF
                • BITAND
                • CEIL
                • COS
                • COSH
              • Datetime functions
                • ADD_MONTHS
                • NEXT_DAY
                • NUMTODSINTERVAL
                • NUMTOYMINTERVAL
                • ROUND(date)
                • SESSIONTIMEZONE
                • SYS_EXTRACT_UTC
                • SYSDATE
                • SYSTIMESTAMP
                • TO_CHAR(datetime)
                • TO_DSINTERVAL
                • CURRENT_DATE
                • TO_TIMESTAMP
                • TO_TIMESTAMP_TZ
                • TO_YMINTERVAL
                • TRUNC(date)
                • TZ_OFFSET
                • CURRENT_TIMESTAMP
                • DBTIMEZONE
                • EXTRACT(datetime)
                • FROM_TZ
                • LAST_DAY
                • LOCALTIMESTAMP
                • MONTHS_BETWEEN
              • Generic comparison functions
                • GREATEST
                • LEAST
              • String functions that return a string
                • CHR
                • REGEXP_REPLACE
                • REGEXP_SUBSTR
                • REPLACE
                • RPAD
                • RTRIM
                • SUBSTR
                • TRANSLATE
                • TRANSLATE ... USING
                • TRIM
                • UPPER
                • CONCAT
                • INITCAP
                • LOWER
                • LPAD
                • LTRIM
                • NLS_LOWER
                • NLSSORT
                • NLS_UPPER
              • XML functions
                • Overview
                • Construct XMLType data functions
                  • XMLAGG
                  • XMLATTRIBUTES
                  • XMLELEMENT
                  • XMLPARSE
                • Modify XMLType data functions
                  • UPDATEXML
                  • INSERTCHILDXML
                  • DELETEXML
                • Query XMLType data functions
                  • EXTRACT
                  • EXTRACTVALUE
                  • XMLSERIALIZE
                  • XMLCAST
                  • XMLTABLE
                  • XMLSEQUENCE
              • Null value related functions
                • COALESCE
                • LNNVL
                • NANVL
                • NULLIF
                • NVL
                • NVL2
              • String functions that return numbers
                • ASCII
                • INSTR
                • LENGTH
                • REGEXP_COUNT
                • REGEXP_INSTR
              • Environment and identifier functions
                • SYS_CONTEXT
                • SYS_GUID
                • UID
                • USER
                • USERENV
                • OB_VERSION
              • Encoding and decoding functions
                • DECODE
                • DUMP
                • ORA_HASH
                • VSIZE
              • Spatial functions
                • Overview
                • Constructor functions
                • Query functions
                • Format conversion functions
              • Hierarchical functions
                • SYS_CONNECT_BY_PATH
            • Analysis functions
              • Overview
              • KEEP
              • LAG
              • LAST_VALUE
              • LEAD
              • LISTAGG
              • MAX
              • MEDIAN
              • MIN
              • NTILE
              • NTH_VALUE
              • AVG
              • PERCENT_RANK
              • PERCENTILE_CONT
              • PERCENTILE_DISC
              • RANK
              • RATIO_TO_REPORT
              • REGR_(Linear Regression)
              • ROW_NUMBER
              • STDDEV
              • STDDEV_POP
              • STDDEV_SAMP
              • CORR
              • SUM
              • VAR_POP
              • VAR_SAMP
              • VARIANCE
              • WMSYS.WM_CONCAT/WM_CONCAT
              • COUNT
              • COVAR_POP
              • COVAR_SAMP
              • CUME_DIST
              • DENSE_RANK
              • FIRST_VALUE
            • Aggregate functions
              • APPROX_COUNT_DISTINCT
              • KEEP
              • LISTAGG
              • MAX
              • MEDIAN
              • MIN
              • PERCENT_RANK
              • PERCENTILE_CONT
              • PERCENTILE_DISC
              • RANK
              • REGR_(Linear Regression)
              • AVG
              • ROLLUP
              • STDDEV
              • STDDEV_POP
              • STDDEV_SAMP
              • SUM
              • VAR_POP
              • VAR_SAMP
              • VARIANCE
              • WMSYS.WM_CONCAT/WM_CONCAT
              • GROUP_ID
              • CORR
              • GROUPING_ID
              • COUNT
              • COVAR_POP
              • COVAR_SAMP
              • CUME_DIST
              • DENSE_RANK
              • GROUPING
            • Information functions
              • OB_TRANSACTION_ID
          • SQL statements
            • DCL
              • ANALYZE
              • ALTER SYSTEM KILL SESSION
              • FLASHBACK TABLE BEFORE DROP
              • GRANT
              • KILL
              • LOAD DATA
              • AUDIT
              • LOCK TABLE
              • REVOKE
              • ROLLBACK
              • SAVEPOINT
              • SELECT INTO
              • SET NAMES
              • SET PASSWORD
              • SET ROLE
              • SET VARIABLE
              • SHOW
              • SHRINK
              • TRANSACTION
              • COMMIT
            • DDL
              • ALTER EXTERNAL TABLE
              • ALTER INDEX
              • ALTER TABLE
              • ALTER TABLEGROUP
              • ALTER USER
              • COMMENT
              • CREATE CONTEXT
              • CREATE DIRECTORY
              • CREATE DATABASE LINK
              • CREATE EXTERNAL TABLE
              • CREATE INDEX
              • CREATE KEYSTORE
              • CREATE MATERIALIZED VIEW
              • CREATE MATERIALIZED VIEW LOG
              • CREATE OUTLINE
              • CREATE PROFILE
              • ALTER KEYSTORE
              • CREATE ROLE
              • CREATE SEQUENCE
              • CREATE SYNONYM
              • CREATE TABLE
              • CREATE TABLEGROUP
              • CREATE TABLESPACE
              • CREATE USER
              • CREATE VIEW
              • DROP CONTEXT
              • ALTER OUTLINE
              • DROP DATABASE LINK
              • DROP DIRECTORY
              • DROP INDEX
              • DROP MATERIALIZED VIEW
              • DROP MATERIALIZED VIEW LOG
              • DROP OUTLINE
              • DROP PROFILE
              • DROP ROLE
              • DROP SEQUENCE
              • DROP SYNONYM
              • DROP TABLE
              • ALTER PROFILE
              • DROP TABLEGROUP
              • DROP TABLESPACE
              • DROP USER
              • DROP VIEW
              • RENAME
              • TRUNCATE TABLE
              • MAJOR and MINOR
              • ALTER ROLE
              • ALTER SEQUENCE
              • ALTER SESSION
              • ALTER SYSTEM FLUSH PLAN CACHE
              • ALTER SYSTEM PARAMETER
            • DML
              • DELETE
              • INSERT
              • MERGE
              • PURGE
              • EXPLAIN
              • UPDATE
              • SELECT
                • SIMPLE SELECT
                • Set-based SELECT
                • WITH clause
          • Pseudo columns
            • Overview
            • Hierarchical query pseudocolumns
            • Sequence pseudocolumns
            • ORA_ROWSCN pseudocolumn
            • ROWNUM pseudocolumn
            • ROWID pseudocolumn
          • Expressions
            • Overview
            • Scalar subquery expressions
            • Type constructor expressions
            • Expression list
            • Simple expressions
            • Compound expressions
            • Case expressions
            • Column expressions
            • CURSOR expressions
            • Datetime expressions
            • Function expressions
            • Interval expressions
          • DDL feature
            • Overview
            • Online and offline DDL operations
            • Index operations
            • Primary key operations
            • Column operations
            • Generated column operations
            • Foreign key operations
            • Table operations
            • Partition operations
            • Column type change rules
            • Conversion rules for numeric data types
          • Basic elements
            • Character sets and collations
            • Built-in data types
              • Overview
              • RAW data type
              • Rowid data types
              • User-defined data types
              • Any types
              • Numeric data types
                • Overview
                • NUMBER data type
                • FLOAT data type
                • Floating-point numbers
                • Precedence of numeric data types
              • Datetime and interval data types
                • Overview
                • DATE data type
                • TIMESTAMP data type
                • TIMESTAMP WITH TIME ZONE data type
                • TIMESTAMP WITH LOCAL TIME ZONE data type
                • INTERVAL YEAR TO MONTH data type
                • INTERVAL DAY TO SECOND data type
                • Calculation of dates, timestamps, and intervals
              • Spatial data types
                • Overview
                • Create a spatial column
                • SDO_GEOMETRY attribute access
                • Create a spatial index
              • Large object data types
                • Overview
                • BLOB data type
                • CLOB data type
                • LOB types
              • JSON data types
                • Overview
                • Create JSON columns
                • Query JSON data
                • Conversion rules for JSON data types
              • Character data types
                • Overview
                • CHAR data type
                • NCHAR data type
                • NVARCHAR2 data type
                • VARCHAR2 data type
                • VARCHAR data type
              • XML data types
                • Overview
                • XML data definition
                • Create an XMLType column
                • Query XMLType data
                • Convert XMLType data
            • Database objects
              • Schema objects
              • Non-schema objects
            • Database naming conventions
              • Overview
              • Suggestions on schema object names
            • Annotations
              • Overview
              • Comments within SQL statements
              • Comments on schema and non-schema objects
              • Hints
                • Overview
                • Hint list
                  • Hints related to access path
                  • Hints related to join orders
                  • Hints related to joins
                  • Hints related to parallel execution
                  • Hints related to query strategy
                  • Hints related to query conversion
                  • Other hints
            • Database object reference methods
              • Overview
              • Reference schema objects
              • Reference partitioned tables and indexes
              • Reference an attribute or method of an object type
              • Reference objects in a remote database
                • Create a DBLink
                • Reference a DBLink
            • Literals
              • Overview
              • Text literals
              • Numeric literals
              • Interval literals
              • Datetime literals
                • Date literals
                • Timestamp literals
            • Data type comparison rules
              • Overview
              • Numeric value comparison rules
              • Date value comparison rules
              • Character value comparison rules
              • Data type precedence
              • Data type conversion rules
              • Security considerations for data conversion
            • Format model
              • Overview
              • Number format models
              • Datetime format models
              • RR datetime format element
              • String-to-date conversion rules
            • NULL value
              • Overview
              • NULLs in SQL functions
              • NULLs in comparison conditions
              • NULLs in conditional expressions
          • Conditions
            • Overview
            • EXISTS condition
            • IN condition
            • Condition precedence
            • Comparison conditions
            • Floating-point conditions
            • Logical conditions
            • Pattern-matching conditions
            • NULL conditions
            • Compound conditions
            • BETWEEN condition
          • Operators
            • Overview
            • Operator precedence
            • Arithmetic operators
            • Concatenation operator
            • Hierarchical query operators
            • Set operators
            • COLLATE operator
          • Queries and subqueries
            • Overview
            • Simple query
            • Hierarchical query
            • Compound query
            • Join query
            • Subquery
            • Lateral derived tables
            • DUAL table query
        • System tenants
          • Overview
          • DROP RESOURCE UNIT
          • DROP TENANT
          • SET DECRYPTION
          • SET ENCRYPTION
          • SHOW RESTORE PREVIEW
          • ALTER RESOURCE POOL
          • ALTER RESOURCE TENANT
          • ALTER RESOURCE UNIT
          • ALTER TENANT
          • CREATE RESOURCE POOL
          • CREATE RESOURCE UNIT
          • CREATE TENANT
          • CREATE STANDBY TENANT
          • DROP RESOURCE POOL
          • ALTER SYSTEM
            • ACTIVATE STANDBY
            • ADD REPLICA
            • CANCEL MIGRATE UNIT
            • CANCEL REPLICA TASK
            • CANCEL RESTORE
            • ADD RESTORE SOURCE
            • CANCEL RECOVER TABLE
            • CANCEL TRANSFER PARTITION
            • CLEAR RESTORE SOURCE
            • MAJOR and MINOR
            • MIGRATE REPLICA
            • MIGRATE UNIT
            • MODIFY PAXOS_REPLICA_NUM
            • MODIFY REPLICA
            • SET LOG_ARCHIVE_DEST
            • SET LOG_ARCHIVE_DEST_STATE
            • DELETE BACKUP POLICY
            • ARCHIVELOG
            • NOARCHIVELOG
            • FLUSH PLAN CACHE
            • JOB
            • PARAMETER
            • SET LOG_RESTORE_SOURCE
            • ARBITRATION
            • RECOVER STANDBY
            • RECOVER STANDBY CANCEL
            • REMOVE REPLICA
            • REFRESH
            • RESTORE
            • RESTORE PREVIEW
            • RECOVER TABLE
            • SET DATA_BACKUP_DEST
            • SERVER
            • SWITCHOVER
            • BOOTSTRAP
            • THROTTLE
            • TRANSFER PARTITION
            • WASH MEMORY FRAGMENTATION
            • BACKUP KEY
            • ZONE
            • BACKUP
            • BALANCE TASK
            • CANCEL BACKUP
            • CANCEL BALANCE JOB
            • CANCEL CLONE
            • CANCEL DELETE BACKUP
      • PL reference
        • PL reference (Oracle mode)
          • Reserved PL keywords
          • DDL operations on stored PL units
            • Overview
            • CREATE PROCEDURE
            • CREATE TRIGGER
            • CREATE TYPE
            • CREATE TYPE BODY
            • DROP FUNCTION
            • DROP PACKAGE
            • DROP PROCEDURE
            • DROP TRIGGER
            • DROP TYPE
            • DROP TYPE BODY
            • ALTER FUNCTION
            • ALTER PACKAGE
            • ALTER PROCEDURE
            • ALTER TRIGGER
            • ALTER TYPE
            • CREATE FUNCTION
            • CREATE PACKAGE
            • CREATE PACKAGE BODY
          • PL static SQL
            • Overview
            • Transaction processing and control
            • Cursors
              • Overview
              • Cursor attributes
              • Implicit cursors
              • Explicit cursors
              • Cursor variables
              • Traverse cursor data by using the FOR loop
              • Modify and drop a cursor
            • Autonomous transactions
              • Overview
              • Control autonomous transactions
              • Autonomous triggers
              • Call autonomous functions from SQL statements
          • PL stored procedures and functions
            • Overview
            • Create a stored procedure
            • Create a function
            • Manage stored procedures and functions
            • Privilege control
            • Collection of stored procedure information and its impact on parallel execution of SQL statements
            • PL DBLinks
            • User-defined functions
              • Overview
              • Interface for user-defined aggregate functions
              • Create user-defined aggregate functions
              • Use user-defined aggregate functions
            • Pipeline functions
              • Overview
              • Create a pipelined table function
              • Application
          • PL system package (Oracle mode)
            • Overview
            • UTL_RAW
              • Overview
              • CAST_TO_BINARY_DOUBLE
              • CAST_TO_BINARY_FLOAT
              • CAST_TO_BINARY_INTEGER
              • CAST_TO_NUMBER
              • CAST_TO_RAW
              • CAST_TO_VARCHAR2
              • COMPARE
              • CONCAT
              • COPIES
              • LENGTH
              • BIT_AND
              • REVERSE
              • SUBSTR
              • BIT_COMPLEMENT
              • BIT_OR
              • BIT_XOR
              • CAST_FROM_BINARY_DOUBLE
              • CAST_FROM_BINARY_FLOAT
              • CAST_FROM_BINARY_INTEGER
              • CAST_FROM_NUMBER
            • DBMS_PROFILER
              • Overview
              • ROLLUP_RUN
              • OB_INIT_OBJECTS
              • OB_DROP_OBJECTS
              • START_PROFILER
              • STOP_PROFILER
              • PAUSE_PROFILER
              • RESUME_PROFILER
              • FLUSH_DATA
              • GET_VERSION
              • INTERNAL_VERSION_CHECK
              • ROLLUP_UNIT
            • DBMS_XPLAN
              • Overview
              • SET_OPT_TRACE_PARAMETER
              • DISPLAY_ACTIVE_SESSION_PLAN
              • DISPLAY_CURSOR
              • DISPLAY
              • DISABLE_OPT_TRACE
              • DISPLAY_SQL_PLAN_BASELINE
              • ENABLE_OPT_TRACE
            • DBMS_LOB
              • Overview
              • ISOPEN
              • INSTR
              • ISTEMPORARY
              • OPEN
              • READ
              • SUBSTR
              • TRIM
              • WRITE
              • WRITEAPPEND
              • APPEND
              • CLOSE
              • COPY
              • CREATETEMPORARY
              • ERASE
              • FREETEMPORARY
              • GETLENGTH
            • DBMS_MVIEW
              • Overview
              • PURGE_LOG
              • REFRESH
            • DBMS_DEBUG
              • Overview
              • GET_VALUE
              • GET_VALUES
              • GET_RUNTIME_INFO
              • GET_TIMEOUT_BEHAVIOUR
              • INITIALIZE
              • PROBE_VERSION
              • PRINT_BACKTRACE
              • SET_TIMEOUT
              • SET_TIMEOUT_BEHAVIOUR
              • SET_BREAKPOINT
              • ATTACH_SESSION
              • SHOW_BREAKPOINTS
              • CONTINUE
              • DEBUG_ON
              • DEBUG_OFF
              • DETACH_SESSION
              • DELETE_BREAKPOINT
              • DISABLE_BREAKPOINT
              • ENABLE_BREAKPOINT
            • DBMS_STATS
              • Overview
              • DROP_STAT_TABLE
              • EXPORT_COLUMN_STATS
              • EXPORT_INDEX_STATS
              • EXPORT_TABLE_STATS
              • EXPORT_SCHEMA_STATS
              • FLUSH_DATABASE_MONITORING_INFO
              • GATHER_INDEX_STATS
              • GATHER_TABLE_STATS
              • GATHER_SCHEMA_STATS
              • GATHER_SYSTEM_STATS
              • GET_STATS_HISTORY_AVAILABILITY
              • ALTER_STATS_HISTORY_RETENTION
              • GET_STATS_HISTORY_RETENTION
              • GET_PARAM
              • GET_PREFS
              • IMPORT_INDEX_STATS
              • IMPORT_COLUMN_STATS
              • IMPORT_TABLE_STATS
              • IMPORT_SCHEMA_STATS
              • LOCK_PARTITION_STATS
              • LOCK_SCHEMA_STATS
              • LOCK_TABLE_STATS
              • CREATE_STAT_TABLE
              • RESTORE_TABLE_STATS
              • RESTORE_SCHEMA_STATS
              • RESET_GLOBAL_PREF_DEFAULTS
              • RESET_PARAM_DEFAULTS
              • PURGE_STATS
              • SET_COLUMN_STATS
              • SET_INDEX_STATS
              • SET_TABLE_STATS
              • SET_GLOBAL_PREFS
              • SET_PARAM
              • DELETE_COLUMN_STATS
              • SET_SCHEMA_PREFS
              • SET_SYSTEM_STATS
              • SET_TABLE_PREFS
              • UNLOCK_PARTITION_STATS
              • UNLOCK_SCHEMA_STATS
              • UNLOCK_TABLE_STATS
              • COPY_TABLE_STATS
              • DELETE_INDEX_STATS
              • DELETE_TABLE_STATS
              • DELETE_SCHEMA_STATS
              • DELETE_SCHEMA_PREFS
              • DELETE_SYSTEM_STATS
              • DELETE_TABLE_PREFS
            • DBMS_UTILITY
              • Overview
              • GET_HASH_VALUE
              • GET_PARAMETER_VALUE
              • GET_SQL_HASH
              • GET_TIME
              • IS_BIT_SET
              • IS_CLUSTER_DATABASE
              • NAME_RESOLVE
              • NAME_TOKENIZE
              • OLD_CURRENT_SCHEMA
              • OLD_CURRENT_USER
              • ACTIVE_INSTANCES
              • PORT_STRING
              • TABLE_TO_COMMA
              • CURRENT_INSTANCE
              • DB_VERSION
              • FORMAT_CALL_STACK
              • FORMAT_ERROR_BACKTRACE
              • FORMAT_ERROR_STACK
              • GET_ENDIANNESS
            • DBMS_AUDIT_MGMT
              • Overview
              • CLEAN_AUDIT_TRAIL
              • CREATE_PURGE_JOB
              • DROP_PURGE_JOB
              • SET_LAST_ARCHIVE_TIMESTAMP
              • SET_PURGE_JOB_STATUS
            • DBMS_MVIEW_STAT
              • Overview
              • PURGE_REFRESH_STATS
              • SET_MVREF_STATS_PARAMS
              • SET_SYSTEM_DEFAULT
            • DBMS_XA
              • Overview
              • XA_RECOVER
              • XA_ROLLBACK
              • XA_SETTIMEOUT
              • XA_START
              • DBMS_XA constants
              • DBMS_XA_XID object type
              • DIST_TXN_SYNC
              • XA_COMMIT
              • XA_END
              • XA_FORGET
              • XA_GETLASTOER
              • XA_PREPARE
            • UTL_FILE
              • Overview
              • GET_LINE
              • PUT
              • PUT_LINE
              • FCLOSE
              • FFLUSH
              • FOPEN
              • FGETPOS
              • FREMOVE
              • FRENAME
              • FSEEK
              • NEW_LINE
            • DBMS_OUTPUT
              • Overview
              • DISABLE
              • ENABLE
              • GET_LINE
              • GET_LINES
              • NEW_LINE
              • PUT
              • PUT_LINE
            • DBMS_SQL
              • Overview
              • FETCH_ROWS
              • IS_OPEN
              • LAST_ERROR_POSITION
              • OPEN_CURSOR
              • BIND_VARIABLE
              • PARSE
              • CLOSE_CURSOR
              • COLUMN_VALUE
              • DEFINE_COLUMN
              • DEFINE_ARRAY
              • DESCRIBE_COLUMNS
              • EXECUTE
              • EXECUTE_AND_FETCH
            • XMLType
              • Overview
              • CREATEXML
              • GETCLOBVAL
              • GETSTRINGVAL
              • TRANSFORM
              • XMLTYPE
            • DBMS_MONITOR
              • Overview
              • OB_SESSION_TRACE_ENABLE
              • OB_SESSION_TRACE_DISABLE
              • OB_CLIENT_ID_TRACE_ENABLE
              • OB_CLIENT_ID_TRACE_DISABLE
              • OB_MOD_ACT_TRACE_ENABLE
              • OB_MOD_ACT_TRACE_DISABLE
              • OB_TENANT_TRACE_ENABLE
              • OB_TENANT_TRACE_DISABLE
            • DBMS_DESCRIBE
              • Overview
              • DESCRIBE_PROCEDURE
            • DBMS_SCHEDULER
              • Overview
              • RUN_JOB
              • SET_ATTRIBUTE
              • SET_JOB_ARGUMENT_VALUE
              • STOP_JOB
              • CREATE_JOB
              • CREATE_JOB_CLASS
              • CREATE_PROGRAM
              • DEFINE_PROGRAM_ARGUMENT
              • DISABLE
              • DISABLE
              • DROP_JOB
              • DROP_JOB_CLASS
              • DROP_PROGRAM
              • ENABLE
              • ENABLE
              • GENERATE_JOB_NAME
              • PURGE_LOG
            • DBMS_XMLGEN
              • Overview
              • CONVERT
            • UTL_I18N
              • Overview
              • RAW_TO_CHAR
              • STRING_TO_RAW
            • ODCIConst
              • Overview
              • ODCIQueryInfo.Flags
              • ODCIStatsOptions.Flags
              • ODCIStatsOptions.Options
              • Return Status
              • ScnFlg
              • ODCIArgDesc.ArgType
              • ODCIEnv.CallProperty
              • ODCIEnv.Envflags
              • ODCIIndexAlter
              • ODCIIndexAlter parameter alter_option
              • ODCIIndexInfo.IndexInfoFlags
              • ODCIIndexInfo.IndexParaDegree
              • ODCIPredInfo.Flags
            • DBMS_SESSION
              • Overview
              • RESET_PACKAGE
              • SET_CONTEXT
              • SET_IDENTIFIER
              • CLEAR_ALL_CONTEXT
              • CLEAR_CONTEXT
              • CLEAR_IDENTIFIER
            • UTL_RECOMP
              • Overview
              • RECOMP_PARALLEL
              • RECOMP_SERIAL
              • TRUNCATE_UTL_RECOMP_SKIP_LIST
              • POPULATE_UTL_RECOMP_SKIP_LIST
              • PARALLEL_SLAVE
            • ANYDATA TYPE
              • Overview
              • BEGINCREATE static procedure
              • ENDCREATE member procedure
              • GET* member functions
              • GETTYPE member function
              • GETTYPENAME member function
              • PIECEWISE member procedure
              • SET* member procedures
            • DBMS_EXTERNAL_TABLE
              • Overview
              • AUTO_REFRESH_EXTERNAL_TABLE
            • DBMS_RANDOM
              • Overview
              • INITIALIZE
              • NORMAL
              • RANDOM
              • SEED
              • STRING
              • TERMINATE
              • VALUE
            • UTL_ENCODE
              • Overview
              • BASE64_DECODE
              • BASE64_ENCODE
            • DBMS_UDR
              • Overview
              • CREATE_RULE
              • DISABLE_RULE
              • ENABLE_RULE
              • REMOVE_RULE
            • DBMS_LOCK
              • Overview
              • ALLOCATE_UNIQUE
              • ALLOCATE_UNIQUE_AUTONOMOUS
              • REQUEST
              • SLEEP
              • RELEASE
            • DBMS_RESOURCE_MANAGER
              • Overview
              • CREATE_CONSUMER_GROUP
              • CREATE_PLAN
              • CREATE_PLAN_DIRECTIVE
              • DELETE_CONSUMER_GROUP
              • DELETE_PLAN
              • DELETE_PLAN_DIRECTIVE
              • SET_CONSUMER_GROUP_MAPPING
              • UPDATE_PLAN_DIRECTIVE
            • DBMS_METADATA
              • Overview
              • GET_DDL
            • DBMS_JOB
              • Overview
              • USER_EXPORT
              • WHAT
              • BROKEN
              • CHANGE
              • ZONE
              • INTERVAL
              • NEXT_DATE
              • REMOVE
              • RUN
              • SUBMIT
            • DBMS_APPLICATION_INFO
              • Overview
              • READ_CLIENT_INFO
              • READ_MODULE
              • SET_ACTION
              • SET_CLIENT_INFO
              • SET_MODULE
            • DBMS_CRYPTO
              • Overview
              • ENCRYPT
              • DECRYPT
              • HASH
            • DBMS_PLAN_CACHE
              • Overview
              • PURGE
            • DBMS_WORKLOAD_REPOSITORY
              • Overview
              • ASH_REPORT
          • PL triggers
            • Overview
            • Create a DML trigger
            • Modify and drop a trigger
            • Disable or enable a trigger
            • Query trigger information
            • INSTEAD OF DML trigger
            • Compound DML trigger
          • PL label security package
            • Overview
            • SA_SESSION session management package
              • Overview
              • SA_SESSION.LABEL
              • SA_SESSION.RESTORE_DEFAULT_LABELS
              • SA_SESSION.ROW_LABEL
              • SA_SESSION.SET_LABEL
              • SA_SESSION.SET_ROW_LABEL
            • SA_LABEL_ADMIN label management package
              • Overview
              • SA_LABEL_ADMIN.ALTER_LABEL
              • SA_LABEL_ADMIN.CREATE_LABEL
              • SA_LABEL_ADMIN.DROP_LABEL
            • SA_POLICY_ADMIN policy management package
              • Overview
              • SA_POLICY_ADMIN.APPLY_TABLE_POLICY
              • SA_POLICY_ADMIN.DISABLE_TABLE_POLICY
              • SA_POLICY_ADMIN.ENABLE_TABLE_POLICY
              • SA_POLICY_ADMIN.REMOVE_TABLE_POLICY
            • SA_USER_ADMIN user label management package
              • Overview
              • SA_USER_ADMIN.SET_LEVELS
            • SA_SYSDBA policy management package
              • Overview
              • SA_SYSDBA.ALTER_POLICY
              • SA_SYSDBA.CREATE_POLICY
              • SA_SYSDBA.DROP_POLICY
            • SA_COMPONENTS label component package
              • Overview
              • SA_COMPONENTS.ALTER_LEVEL
              • SA_COMPONENTS.CREATE_LEVEL
              • SA_COMPONENTS.DROP_LEVEL
          • PL collections and records
            • Overview
            • Create and call a subprogram with record type parameters
            • Collections
            • Associative arrays
            • Varrays
            • Nested tables
            • Collection constructor function
            • Records
            • Insert records into a table and update a table by using records
            • Collection methods
              • Overview
              • DELETE method
              • TRIM method
              • EXTEND method
              • EXISTS method
              • FIRST and LAST methods
              • COUNT method
              • LIMIT method
              • PRIOR and NEXT methods
          • PL data types
            • Overview
            • SQL data types
            • LOB data types
            • BOOLEAN type
            • User-defined subtypes
            • PLS_INTEGER and BINARY_INTEGER
            • Arrays
            • PL JSON data types
          • PL language basics
            • Character sets
            • Error-reporting functions
            • Lexical units
            • Declaration
            • Reference identifiers
            • Scope and visibility of identifiers
            • Assign values
            • Expressions
            • PL blocks
            • Subprograms
          • PL exception handling
            • Overview
            • Compile-Time alerts
            • Exception types
            • Exception handling processes
          • PL process control
            • Overview
            • Conditional control
            • Loop control
            • Sequential control
          • PL dynamic SQL
            • Overview
            • Execute dynamic SQL statements
            • DBMS_SQL system package
          • PL packages
            • Overview
            • Create a program package
            • Overloaded programs in a package
            • Manage program packages
            • Definition of the PL environment by the STANDARD package
        • PL reference (MySQL mode)
          • Syntax of PL stored programs
          • Reserved and non-reserved PL keywords
          • PL system packages
            • Overview
            • DBMS_RESOURCE_MANAGER
              • Overview
              • CREATE_CONSUMER_GROUP
              • CREATE_PLAN
              • CREATE_PLAN_DIRECTIVE
              • DELETE_CONSUMER_GROUP
              • DELETE_PLAN
              • DELETE_PLAN_DIRECTIVE
              • SET_CONSUMER_GROUP_MAPPING
              • UPDATE_PLAN_DIRECTIVE
            • DBMS_STATS
              • Overview
              • DROP_STAT_TABLE
              • EXPORT_COLUMN_STATS
              • EXPORT_INDEX_STATS
              • EXPORT_TABLE_STATS
              • EXPORT_SCHEMA_STATS
              • FLUSH_DATABASE_MONITORING_INFO
              • GATHER_INDEX_STATS
              • GATHER_TABLE_STATS
              • GATHER_SCHEMA_STATS
              • GATHER_SYSTEM_STATS
              • GET_STATS_HISTORY_AVAILABILITY
              • ALTER_STATS_HISTORY_RETENTION
              • GET_STATS_HISTORY_RETENTION
              • GET_PARAM
              • GET_PREFS
              • IMPORT_INDEX_STATS
              • IMPORT_COLUMN_STATS
              • IMPORT_TABLE_STATS
              • IMPORT_SCHEMA_STATS
              • LOCK_PARTITION_STATS
              • LOCK_SCHEMA_STATS
              • LOCK_TABLE_STATS
              • CREATE_STAT_TABLE
              • RESTORE_TABLE_STATS
              • RESTORE_SCHEMA_STATS
              • RESET_GLOBAL_PREF_DEFAULTS
              • RESET_PARAM_DEFAULTS
              • PURGE_STATS
              • SET_COLUMN_STATS
              • SET_INDEX_STATS
              • SET_TABLE_STATS
              • SET_GLOBAL_PREFS
              • SET_PARAM
              • DELETE_COLUMN_STATS
              • SET_SCHEMA_PREFS
              • SET_SYSTEM_STATS
              • SET_TABLE_PREFS
              • UNLOCK_PARTITION_STATS
              • UNLOCK_SCHEMA_STATS
              • UNLOCK_TABLE_STATS
              • DELETE_INDEX_STATS
              • DELETE_TABLE_STATS
              • DELETE_SCHEMA_STATS
              • DELETE_SCHEMA_PREFS
              • DELETE_SYSTEM_STATS
              • DELETE_TABLE_PREFS
            • DBMS_XPLAN
              • Overview
              • SET_OPT_TRACE_PARAMETER
              • DISPLAY_ACTIVE_SESSION_PLAN
              • DISPLAY_CURSOR
              • DISPLAY
              • DISABLE_OPT_TRACE
              • DISPLAY_SQL_PLAN_BASELINE
              • ENABLE_OPT_TRACE
            • DBMS_LIMIT_CALCULATOR
              • Overview
              • CALCULATE_MIN_PHY_RES_NEEDED_BY_UNIT
              • CALCULATE_MIN_PHY_RES_NEEDED_BY_LOGIC_RES
              • CALCULATE_MIN_PHY_RES_NEEDED_BY_STANDBY_TENANT
            • DBMS_UDR
              • Overview
              • CREATE_RULE
              • DISABLE_RULE
              • ENABLE_RULE
              • REMOVE_RULE
            • DBMS_MVIEW_STAT
              • Overview
              • PURGE_REFRESH_STATS
              • SET_MVREF_STATS_PARAMS
              • SET_SYSTEM_DEFAULT
            • DBMS_WORKLOAD_REPOSITORY
              • Overview
              • ASH_REPORT
              • CREATE_SNAPSHOT
              • DROP_SNAPSHOT_RANGE
              • MODIFY_SNAPSHOT_SETTINGS
            • DBMS_EXTERNAL_TABLE
              • Overview
              • AUTO_REFRESH_EXTERNAL_TABLE
            • DBMS_MVIEW
              • Overview
              • PURGE_LOG
              • REFRESH
            • DBMS_TRUSTED_CERTIFICATE_MANAGER
              • Overview
              • ADD_TRUSTED_CERTIFICATE
              • DELETE_TRUSTED_CERTIFICATE
              • UPDATE_TRUSTED_CERTIFICATE
          • PL conditional control statements
            • CASE
            • IF
            • ITERATE
            • LEAVE
            • LOOP
            • REPEAT
            • RETURN
            • WHILE
          • PL exception handling
            • Overview
            • Limitations on exception handling
            • DECLARE ... CONDITION
            • DECLARE ... HANDLER
            • GET DIAGNOSTICS
            • RESIGNAL
            • SIGNAL
            • Effective scope of an exception handler
            • Diagnostics area
            • Exception handling and OUT/INOUT parameters
          • PL stored procedures
            • Overview
            • Variables in stored programs
            • Stored procedures
            • Stored objects and privilege management
            • Stored functions
            • Triggers
            • Limitations on stored programs
          • PL data definition statements
            • ALTER FUNCTION
            • DROP TRIGGER
            • ALTER PROCEDURE
            • CREATE FUNCTION
            • CREATE PROCEDURE
            • CREATE TRIGGER
            • DROP FUNCTION
            • DROP PROCEDURE
          • PL related dictionary views
            • INFORMATION_SCHEMA PARAMETERS
            • INFORMATION_SCHEMA ROUTINES
            • INFORMATION_SCHEMA TRIGGERS
          • PL database management statements
            • SHOW CREATE FUNCTION
            • SHOW CREATE PROCEDURE
            • SHOW CREATE TRIGGER
            • SHOW FUNCTION STATUS
            • SHOW PROCEDURE STATUS
            • SHOW TRIGGERS
          • PL cursors
            • Overview
            • Cursor execution process
            • Limitations on server cursors
          • PL data manipulation statements
            • CALL
            • DO
        • What is PL
          • Overview
          • Main features of PL
          • PL architecture
      • SQL specifications and practices
        • Limitations on writing SQL statements
        • SQL writing specifications
          • SELECT statements
          • DML statements
          • DDL statements
          • Multi-table join statements
          • Table scan
          • Transactions
          • Cache
          • Hint
          • Others
        • SQL statement examples
          • Implicit data type conversion
          • Join tables
          • Weak consistency read
          • Pagination queries
    • System views
      • Overview
      • Outline of system views
      • Changes in views in OceanBase Database V3.x and V4.x
      • Common statistical events
      • General wait events
      • SYS tenant views
        • Dictionary views
          • information_schema.GLOBAL_STATUS
          • oceanbase.CDB_OB_MAJOR_COMPACTION
          • oceanbase.CDB_OB_RECOVER_TABLE_JOB_HISTORY
          • oceanbase.CDB_OB_RECOVER_TABLE_JOBS
          • oceanbase.CDB_OB_SERVICES
          • oceanbase.CDB_OB_RESTORE_HISTORY
          • oceanbase.CDB_OB_RESTORE_PROGRESS
          • oceanbase.CDB_OB_SYS_VARIABLES
          • oceanbase.CDB_OB_TABLE_LOCATIONS
          • oceanbase.CDB_OB_TABLEGROUP_PARTITIONS
          • oceanbase.CDB_OB_TABLEGROUP_SUBPARTITIONS
          • oceanbase.CDB_OB_TABLEGROUP_TABLES
          • information_schema.GLOBAL_VARIABLES
          • oceanbase.CDB_OB_TABLEGROUPS
          • oceanbase.CDB_OB_TABLET_CHECKSUM_ERROR_INFO
          • oceanbase.CDB_OB_TABLET_REPLICAS
          • oceanbase.CDB_OB_TABLET_TO_LS
          • oceanbase.CDB_OB_TEMP_FILES
          • oceanbase.CDB_OB_TENANT_EVENT_HISTORY
          • oceanbase.CDB_OB_TRANSFER_PARTITION_TASKS
          • oceanbase.CDB_OB_TRANSFER_PARTITION_TASK_HISTORY
          • oceanbase.CDB_OB_TRANSFER_TASK_HISTORY
          • oceanbase.CDB_OB_TRANSFER_TASKS
          • oceanbase.CDB_OB_USERS
          • information_schema.KEY_COLUMN_USAGE
          • oceanbase.CDB_OB_ZONE_MAJOR_COMPACTION
          • oceanbase.CDB_OBJECTS
          • oceanbase.CDB_PART_INDEXES
          • oceanbase.CDB_PART_KEY_COLUMNS
          • oceanbase.CDB_PART_TABLES
          • oceanbase.CDB_SCHEDULER_JOB_RUN_DETAILS
          • oceanbase.CDB_SUBPART_KEY_COLUMNS
          • oceanbase.CDB_SUBPARTITION_TEMPLATES
          • oceanbase.CDB_TAB_COL_STATISTICS
          • oceanbase.CDB_TAB_COLS
          • oceanbase.CDB_TAB_COLS_V$
          • information_schema.PARAMETERS
          • oceanbase.CDB_TAB_PARTITIONS
          • oceanbase.CDB_TAB_SUBPARTITIONS
          • oceanbase.CDB_TABLES
          • oceanbase.CDB_WR_ACTIVE_SESSION_HISTORY
          • oceanbase.CDB_WR_CONTROL
          • oceanbase.CDB_WR_EVENT_NAME
          • oceanbase.CDB_WR_SNAPSHOT
          • oceanbase.CDB_WR_SQLSTAT
          • oceanbase.CDB_WR_SQLTEXT
          • oceanbase.CDB_WR_STATNAME
          • information_schema.PARTITIONS
          • oceanbase.CDB_WR_SYS_TIME_MODEL
          • oceanbase.CDB_WR_SYSSTAT
          • oceanbase.CDB_WR_SYSTEM_EVENT
          • oceanbase.DBA_DB_LINKS
          • oceanbase.DBA_IND_PARTITIONS
          • oceanbase.DBA_IND_STATISTICS
          • oceanbase.DBA_IND_SUBPARTITIONS
          • DBA_INDEX_USAGE
          • DBA_MVIEW_LOGS
          • DBA_MVIEWS
          • information_schema.PROCESSLIST
          • DBA_MVREF_CHANGE_STATS
          • DBA_MVREF_RUN_STATS
          • DBA_MVREF_STATS
          • DBA_MVREF_STATS_PARAMS
          • DBA_MVREF_STATS_SYS_DEFAULTS
          • DBA_MVREF_STMT_STATS
          • oceanbase.DBA_OB_ACCESS_POINT
          • oceanbase.DBA_OB_ARBITRATION_SERVICE
          • oceanbase.DBA_OB_ARCHIVE_DEST
          • oceanbase.DBA_OB_ARCHIVELOG
          • information_schema.QUERY_RESPONSE_TIME
          • oceanbase.DBA_OB_ARCHIVELOG_PIECE_FILES
          • oceanbase.DBA_OB_ARCHIVELOG_SUMMARY
          • oceanbase.DBA_OB_AUTO_INCREMENT
          • DBA_OB_AUX_STATISTICS
          • oceanbase.DBA_OB_BACKUP_DELETE_JOB_HISTORY
          • oceanbase.DBA_OB_BACKUP_DELETE_JOBS
          • oceanbase.DBA_OB_BACKUP_DELETE_POLICY
          • oceanbase.DBA_OB_BACKUP_DELETE_TASK_HISTORY
          • oceanbase.DBA_OB_BACKUP_DELETE_TASKS
          • oceanbase.DBA_OB_BACKUP_JOB_HISTORY
          • information_schema.REFERENTIAL_CONSTRAINTS
          • oceanbase.DBA_OB_BACKUP_JOBS
          • oceanbase.DBA_OB_BACKUP_PARAMETER
          • oceanbase.DBA_OB_BACKUP_SET_FILES
          • oceanbase.DBA_OB_BACKUP_STORAGE_INFO
          • oceanbase.DBA_OB_BACKUP_STORAGE_INFO_HISTORY
          • oceanbase.DBA_OB_BACKUP_TASK_HISTORY
          • oceanbase.DBA_OB_BACKUP_TASKS
          • oceanbase.DBA_OB_BALANCE_JOB_HISTORY
          • oceanbase.DBA_OB_BALANCE_JOBS
          • oceanbase.DBA_OB_BALANCE_TASK_HISTORY
          • information_schema.ROUTINES
          • oceanbase.DBA_OB_BALANCE_TASKS
          • DBA_OB_CLONE_HISTORY
          • DBA_OB_CLONE_PROGRESS
          • oceanbase.DBA_OB_CLUSTER_EVENT_HISTORY
          • oceanbase.DBA_OB_CONCURRENT_LIMIT_SQL
          • oceanbase.DBA_OB_DATA_DICTIONARY_IN_LOG
          • oceanbase.DBA_OB_DATABASE_PRIVILEGE
          • oceanbase.DBA_OB_DATABASES
          • oceanbase.DBA_OB_DEADLOCK_EVENT_HISTORY
          • oceanbase.DBA_OB_EXTERNAL_TABLE_FILES
          • information_schema.SCHEMA_PRIVILEGES
          • oceanbase.DBA_OB_FREEZE_INFO
          • oceanbase.DBA_OB_IMPORT_TABLE_JOB_HISTORY
          • oceanbase.DBA_OB_IMPORT_TABLE_JOBS
          • oceanbase.DBA_OB_IMPORT_TABLE_TASK_HISTORY
          • oceanbase.DBA_OB_IMPORT_TABLE_TASKS
          • oceanbase.DBA_OB_KV_TTL_TASK_HISTORY
          • oceanbase.DBA_OB_KV_TTL_TASKS
          • oceanbase.DBA_OB_LOG_RESTORE_SOURCE
          • oceanbase.DBA_OB_LS
          • oceanbase.DBA_OB_LS_ARB_REPLICA_TASKS
          • information_schema.CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS
          • information_schema.SCHEMATA
          • oceanbase.DBA_OB_LS_ARB_REPLICA_TASK_HISTORY
          • oceanbase.DBA_OB_LS_HISTORY
          • oceanbase.DBA_OB_LS_LOCATIONS
          • oceanbase.DBA_OB_LS_LOG_ARCHIVE_PROGRESS
          • oceanbase.DBA_OB_LS_REPLICA_TASKS
          • oceanbase.DBA_OB_LS_REPLICA_TASK_HISTORY
          • oceanbase.DBA_OB_MAJOR_COMPACTION
          • oceanbase.DBA_OB_OUTLINE_CONCURRENT_HISTORY
          • oceanbase.DBA_OB_OUTLINES
          • oceanbase.DBA_OB_RECOVER_TABLE_JOB_HISTORY
          • oceanbase.DBA_OB_SERVICES
          • oceanbase.DBA_OB_RECOVER_TABLE_JOBS
          • information_schema.SESSION_STATUS
          • oceanbase.DBA_OB_RESOURCE_POOLS
          • oceanbase.DBA_OB_RESTORE_HISTORY
          • oceanbase.DBA_OB_RESTORE_PROGRESS
          • oceanbase.DBA_OB_ROOTSERVICE_EVENT_HISTORY
          • oceanbase.DBA_OB_RSRC_IO_DIRECTIVES
          • oceanbase.DBA_OB_SEQUENCE_OBJECTS
          • oceanbase.DBA_OB_SERVER_EVENT_HISTORY
          • oceanbase.DBA_OB_SERVER_JOBS
          • oceanbase.DBA_OB_SERVERS
          • oceanbase.DBA_OB_SYS_VARIABLES
          • oceanbase.DBA_OB_TABLE_LOCATIONS
          • information_schema.SESSION_VARIABLES
          • oceanbase.DBA_OB_TABLE_OPT_STAT_GATHER_HISTORY
          • oceanbase.DBA_OB_TABLE_STAT_STALE_INFO
          • oceanbase.DBA_OB_TABLEGROUP_PARTITIONS
          • oceanbase.DBA_OB_TABLEGROUP_SUBPARTITIONS
          • oceanbase.DBA_OB_TABLEGROUP_TABLES
          • oceanbase.DBA_OB_TABLEGROUPS
          • oceanbase.DBA_OB_TABLET_REPLICAS
          • oceanbase.DBA_OB_TABLET_TO_LS
          • oceanbase.DBA_OB_TASK_OPT_STAT_GATHER_HISTORY
          • oceanbase.DBA_OB_TEMP_FILES
          • oceanbase.DBA_OB_TENANT_EVENT_HISTORY
          • information_schema.STATISTICS
          • oceanbase.DBA_OB_TENANT_JOBS
          • oceanbase.DBA_OB_TENANTS
          • oceanbase.DBA_OB_TRANSFER_PARTITION_TASKS
          • oceanbase.DBA_OB_TRANSFER_PARTITION_TASK_HISTORY
          • oceanbase.DBA_OB_TRANSFER_TASK_HISTORY
          • oceanbase.DBA_OB_TRANSFER_TASKS
          • DBA_OB_TRUSTED_ROOT_CERTIFICATE
          • oceanbase.DBA_OB_UNIT_CONFIGS
          • oceanbase.DBA_OB_UNIT_JOBS
          • oceanbase.DBA_OB_UNITS
          • information_schema.TABLE_CONSTRAINTS
          • oceanbase.DBA_OB_USER_DEFINED_RULES
          • oceanbase.DBA_OB_USERS
          • oceanbase.DBA_OB_ZONE_MAJOR_COMPACTION
          • oceanbase.DBA_OB_ZONES
          • oceanbase.DBA_OBJECTS
          • oceanbase.DBA_PART_COL_STATISTICS
          • oceanbase.DBA_PART_HISTOGRAMS
          • oceanbase.DBA_PART_INDEXES
          • oceanbase.DBA_PART_KEY_COLUMNS
          • oceanbase.DBA_PART_TABLES
          • information_schema.TABLE_PRIVILEGES
          • oceanbase.DBA_RSRC_CONSUMER_GROUPS
          • oceanbase.DBA_RSRC_GROUP_MAPPINGS
          • oceanbase.DBA_RSRC_PLAN_DIRECTIVES
          • oceanbase.DBA_RSRC_PLANS
          • oceanbase.DBA_SCHEDULER_JOBS
          • oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS
          • oceanbase.DBA_SCHEDULER_WINDOWS
          • oceanbase.DBA_SEQUENCES
          • oceanbase.DBA_SQL_MANAGEMENT_CONFIG
          • oceanbase.DBA_SQL_PLAN_BASELINES
          • oceanbase.DBA_SUBPART_COL_STATISTICS
          • information_schema.TABLES
          • oceanbase.DBA_SUBPART_HISTOGRAMS
          • oceanbase.DBA_SUBPART_KEY_COLUMNS
          • oceanbase.DBA_SUBPARTITION_TEMPLATES
          • oceanbase.DBA_TAB_COL_STATISTICS
          • oceanbase.DBA_TAB_HISTOGRAMS
          • oceanbase.DBA_TAB_MODIFICATIONS
          • oceanbase.DBA_TAB_PARTITIONS
          • oceanbase.DBA_TAB_STATISTICS
          • oceanbase.DBA_TAB_STATS_HISTORY
          • oceanbase.DBA_TAB_SUBPARTITIONS
          • information_schema.USER_PRIVILEGES
          • oceanbase.DBA_WR_ACTIVE_SESSION_HISTORY
          • oceanbase.DBA_WR_CONTROL
          • oceanbase.DBA_WR_EVENT_NAME
          • oceanbase.DBA_WR_SNAPSHOT
          • oceanbase.DBA_WR_SQLSTAT
          • oceanbase.DBA_WR_SQLTEXT
          • oceanbase.DBA_WR_STATNAME
          • oceanbase.DBA_WR_SYS_TIME_MODEL
          • oceanbase.DBA_WR_SYSSTAT
          • oceanbase.DBA_WR_SYSTEM_EVENT
          • information_schema.VIEW_TABLE_USAGE
          • information_schema.VIEWS
          • mysql.columns_priv
          • information_schema.CHARACTER_SETS
          • mysql.db
          • mysql.default_roles
          • mysql.help_category
          • mysql.help_keyword
          • mysql.help_relation
          • mysql.help_topic
          • mysql.proc
          • mysql.procs_priv
          • mysql.role_edges
          • mysql.time_zone
          • mysql.time_zone_name
          • mysql.time_zone_transition
          • mysql.time_zone_transition_type
          • information_schema.CHECK_CONSTRAINTS
          • mysql.user
          • oceanbase.ALL_OB_EXTERNAL_TABLE_FILES
          • oceanbase.CDB_CKPT_HISTORY
          • oceanbase.CDB_OB_DATABASE_PRIVILEGE
          • oceanbase.CDB_IND_COLUMNS
          • oceanbase.CDB_IND_PARTITIONS
          • oceanbase.CDB_IND_SUBPARTITIONS
          • CDB_INDEX_USAGE
          • oceanbase.CDB_INDEXES
          • CDB_MVIEW_LOGS
          • CDB_MVIEWS
          • information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
          • CDB_MVREF_CHANGE_STATS
          • CDB_MVREF_RUN_STATS
          • CDB_MVREF_STATS
          • CDB_MVREF_STATS_PARAMS
          • CDB_MVREF_STATS_SYS_DEFAULTS
          • CDB_MVREF_STMT_STATS
          • oceanbase.CDB_OB_ACCESS_POINT
          • oceanbase.CDB_OB_LS_ARB_REPLICA_TASKS
          • oceanbase.CDB_OB_ARCHIVE_DEST
          • oceanbase.CDB_OB_ARCHIVELOG
          • information_schema.COLLATIONS
          • oceanbase.CDB_OB_ARCHIVELOG_PIECE_FILES
          • oceanbase.CDB_OB_ARCHIVELOG_SUMMARY
          • oceanbase.CDB_OB_AUTO_INCREMENT
          • CDB_OB_AUX_STATISTICS
          • oceanbase.CDB_OB_BACKUP_DELETE_JOB_HISTORY
          • oceanbase.CDB_OB_BACKUP_DELETE_JOBS
          • oceanbase.CDB_OB_BACKUP_DELETE_POLICY
          • oceanbase.CDB_OB_BACKUP_DELETE_TASK_HISTORY
          • oceanbase.CDB_OB_BACKUP_DELETE_TASKS
          • oceanbase.CDB_OB_BACKUP_JOB_HISTORY
          • information_schema.COLUMN_PRIVILEGES
          • oceanbase.CDB_OB_BACKUP_JOBS
          • oceanbase.CDB_OB_BACKUP_PARAMETER
          • oceanbase.CDB_OB_BACKUP_SET_FILES
          • oceanbase.CDB_OB_BACKUP_STORAGE_INFO
          • oceanbase.CDB_OB_BACKUP_STORAGE_INFO_HISTORY
          • oceanbase.CDB_OB_BACKUP_TASK_HISTORY
          • oceanbase.CDB_OB_BACKUP_TASKS
          • oceanbase.CDB_OB_BALANCE_JOB_HISTORY
          • oceanbase.CDB_OB_BALANCE_JOBS
          • oceanbase.CDB_OB_BALANCE_TASK_HISTORY
          • information_schema.COLUMNS
          • oceanbase.CDB_OB_BALANCE_TASKS
          • oceanbase.CDB_OB_COLUMN_CHECKSUM_ERROR_INFO
          • oceanbase.CDB_OB_DATA_DICTIONARY_IN_LOG
          • oceanbase.CDB_OB_DATABASES
          • oceanbase.CDB_OB_DEADLOCK_EVENT_HISTORY
          • oceanbase.CDB_OB_EXTERNAL_TABLE_FILES
          • oceanbase.CDB_OB_FREEZE_INFO
          • oceanbase.CDB_OB_IMPORT_TABLE_JOB_HISTORY
          • oceanbase.CDB_OB_IMPORT_TABLE_JOBS
          • oceanbase.CDB_OB_IMPORT_TABLE_TASK_HISTORY
          • information_schema.ENGINES
          • oceanbase.CDB_OB_IMPORT_TABLE_TASKS
          • oceanbase.CDB_OB_KV_TTL_TASK_HISTORY
          • oceanbase.CDB_OB_KV_TTL_TASKS
          • oceanbase.CDB_OB_LOG_RESTORE_SOURCE
          • oceanbase.CDB_OB_LS
          • information_schema.events
          • oceanbase.CDB_OB_LS_ARB_REPLICA_TASK_HISTORY
          • oceanbase.CDB_OB_LS_HISTORY
          • oceanbase.CDB_OB_LS_LOCATIONS
          • oceanbase.CDB_OB_LS_LOG_ARCHIVE_PROGRESS
          • oceanbase.CDB_OB_LS_REPLICA_TASKS
          • CDB_OB_LS_REPLICA_TASK_HISTORY
        • Performance views
          • GV$ACTIVE_SESSION_HISTORY
          • GV$OB_IO_BENCHMARK
          • GV$OB_IO_CALIBRATION_STATUS
          • GV$OB_KVCACHE
          • GV$OB_LOG_STAT
          • GV$OB_LS_SNAPSHOTS
          • GV$OB_MEMORY
          • GV$OB_MEMSTORE
          • GV$OB_PL_CACHE_OBJECT
          • GV$UNIT
          • V$OB_PL_CACHE_OBJECT
          • GV$OB_MEMSTORE_INFO
          • GV$OB_MERGE_INFO
          • GV$OB_NIC_INFO
          • GV$OB_RPC_INCOMING
          • GV$DML_STATS
          • GV$OB_RPC_OUTGOING
          • GV$OB_PARAMETERS
          • GV$OB_PLAN_CACHE_PLAN_EXPLAIN
          • GV$OB_PLAN_CACHE_PLAN_STAT
          • GV$OB_PLAN_CACHE_STAT
          • GV$OB_PROCESSLIST
          • GV$OB_PS_ITEM_INFO
          • GV$OB_PS_STAT
          • GV$OB_PX_P2P_DATAHUB
          • GV$OB_PX_TARGET_MONITOR
          • GV$LATCH
          • GV$OB_PX_WORKER_STAT
          • V$ACTIVE_SESSION_HISTORY
          • V$DML_STATS
          • V$ENCRYPTED_TABLESPACES
          • V$EVENT_NAME
          • V$LATCH
          • V$OB_ARCHIVE_DEST_STATUS
          • V$OB_COMPACTION_DIAGNOSE_INFO
          • V$OB_COMPACTION_PROGRESS
          • V$OB_COMPACTION_SUGGESTIONS
          • V$OB_COMPATIBILITY_CONTROL
          • GV$OB_SERVER_SCHEMA_INFO
          • V$OB_DTL_INTERM_RESULT_MONITOR
          • V$OB_ENCRYPTED_TABLES
          • V$OB_IO_BENCHMARK
          • V$OB_IO_CALIBRATION_STATUS
          • V$OB_KVCACHE
          • V$OB_LOG_STAT
          • V$OB_LS_LOG_RESTORE_STATUS
          • V$OB_LS_REPLICA_TASK_PLAN
          • V$OB_LS_SNAPSHOTS
          • V$OB_MEMORY
          • GV$OB_SERVERS
          • V$OB_MEMSTORE
          • V$OB_MEMSTORE_INFO
          • V$OB_MERGE_INFO
          • V$OB_NIC_INFO
          • V$OB_RPC_INCOMING
          • V$OB_RPC_OUTGOING
          • V$OB_PARAMETERS
          • V$OB_PLAN_CACHE_PLAN_EXPLAIN
          • V$OB_PLAN_CACHE_PLAN_STAT
          • V$OB_PLAN_CACHE_STAT
          • V$OB_PROCESSLIST
          • GV$OB_SESS_TIME_MODEL
          • V$OB_PS_ITEM_INFO
          • V$OB_PS_STAT
          • V$OB_PX_P2P_DATAHUB
          • V$OB_PX_TARGET_MONITOR
          • V$OB_PX_WORKER_STAT
          • V$OB_SERVER_SCHEMA_INFO
          • V$OB_SERVERS
          • V$OB_SESS_TIME_MODEL
          • V$OB_SESSION
          • V$SESSION_EVENT
          • GV$OB_SESSION
          • V$OB_SQL_AUDIT
          • V$SQL_JOIN_FILTER
          • V$OB_SQL_PLAN
          • V$OB_SQL_WORKAREA_MEMORY_INFO
          • V$OB_SQLSTAT
          • V$OB_SSTABLES
          • V$OB_SYS_TIME_MODEL
          • V$OB_TABLET_COMPACTION_HISTORY
          • V$OB_TABLET_COMPACTION_PROGRESS
          • V$OB_TENANT_MEMORY
          • GV$OB_SQL_AUDIT
          • V$OB_TENANT_RUNTIME_INFO
          • V$OB_TIMESTAMP_SERVICE
          • V$OB_TRANSACTION_PARTICIPANTS
          • V$OB_UNITS
          • V$RESTORE_POINT
          • V$RSRC_PLAN
          • V$SESSION_LONGOPS
          • V$SESSION_WAIT
          • V$SESSION_WAIT_HISTORY
          • V$SESSTAT
          • V$SQL_MONITOR_STATNAME
          • GV$SQL_JOIN_FILTER
          • V$SQL_PLAN_MONITOR
          • V$SQL_WORKAREA
          • V$SQL_WORKAREA_ACTIVE
          • V$SQL_WORKAREA_HISTOGRAM
          • V$STATNAME
          • V$SYSSTAT
          • V$SYSTEM_EVENT
          • V$OB_ARBITRATION_MEMBER_INFO
          • V$OB_ARBITRATION_SERVICE_STATUS
          • V$OB_LOCKS
          • GV$OB_SQL_PLAN
          • V$OB_OPT_STAT_GATHER_MONITOR
          • V$OB_THREAD
          • v$tenant_memstore_allocator_info
          • GV$SQL_PLAN_MONITOR
          • GV$OB_SQL_WORKAREA_MEMORY_INFO
          • GV$OB_SQLSTAT
          • V$UNIT
          • GV$OB_SSTABLES
          • GV$OB_SYS_TIME_MODEL
          • GV$OB_TABLET_COMPACTION_HISTORY
          • GV$OB_TABLET_COMPACTION_PROGRESS
          • GV$OB_TENANT_MEMORY
          • GV$OB_TENANT_RUNTIME_INFO
          • GV$OB_TRANSACTION_PARTICIPANTS
          • GV$OB_UNITS
          • GV$SESSION_EVENT
          • GV$OB_COMPACTION_DIAGNOSE_INFO
          • GV$SESSION_LONGOPS
          • GV$SESSION_WAIT
          • GV$SESSION_WAIT_HISTORY
          • GV$SESSTAT
          • GV$SQL_WORKAREA
          • GV$SQL_WORKAREA_ACTIVE
          • GV$SQL_WORKAREA_HISTOGRAM
          • GV$SYSSTAT
          • GV$SYSTEM_EVENT
          • gv$tenant
          • gv$tenant_memstore_allocator_info
          • GV$OB_ARBITRATION_MEMBER_INFO
          • GV$OB_COMPACTION_PROGRESS
          • GV$OB_ARBITRATION_SERVICE_STATUS
          • GV$OB_LOCKS
          • GV$OB_OPT_STAT_GATHER_MONITOR
          • GV$OB_THREAD
          • GV$OB_COMPACTION_SUGGESTIONS
          • GV$OB_DTL_INTERM_RESULT_MONITOR
          • GV$OB_FLT_TRACE_CONFIG
      • Oracle tenant views
        • Dictionary views
          • ALL_DEF_AUDIT_OPTS
          • DBA_MVREF_STMT_STATS
          • DBA_OB_ACCESS_POINT
          • DBA_OB_ARCHIVE_DEST
          • DBA_OB_ARCHIVELOG
          • DBA_OB_ARCHIVELOG_PIECE_FILES
          • DBA_OB_ARCHIVELOG_SUMMARY
          • DBA_OB_AUX_STATISTICS
          • DBA_OB_BACKUP_DELETE_JOB_HISTORY
          • DBA_OB_BACKUP_DELETE_JOBS
          • DBA_OB_BACKUP_DELETE_POLICY
          • ALL_DEPENDENCIES
          • DBA_OB_BACKUP_DELETE_TASK_HISTORY
          • DBA_OB_BACKUP_DELETE_TASKS
          • DBA_OB_BACKUP_JOB_HISTORY
          • DBA_OB_BACKUP_JOBS
          • DBA_OB_BACKUP_PARAMETER
          • DBA_OB_BACKUP_SET_FILES
          • DBA_OB_BACKUP_STORAGE_INFO
          • DBA_OB_BACKUP_STORAGE_INFO_HISTORY
          • DBA_OB_BACKUP_TASK_HISTORY
          • DBA_OB_BACKUP_TASKS
          • ALL_DIRECTORIES
          • DBA_OB_BALANCE_JOB_HISTORY
          • DBA_OB_BALANCE_JOBS
          • DBA_OB_BALANCE_TASK_HISTORY
          • DBA_OB_BALANCE_TASKS
          • DBA_OB_CONCURRENT_LIMIT_SQL
          • DBA_OB_DATA_DICTIONARY_IN_LOG
          • DBA_OB_DATABASE_PRIVILEGE
          • DBA_OB_DATABASES
          • DBA_OB_DEADLOCK_EVENT_HISTORY
          • DBA_OB_EXTERNAL_TABLE_FILES
          • ALL_ERRORS
          • DBA_OB_FREEZE_INFO
          • DBA_OB_IMPORT_TABLE_JOB_HISTORY
          • DBA_OB_IMPORT_TABLE_JOBS
          • DBA_OB_IMPORT_TABLE_TASK_HISTORY
          • DBA_OB_IMPORT_TABLE_TASKS
          • DBA_OB_LOG_RESTORE_SOURCE
          • DBA_OB_LS
          • DBA_OB_LS_ARB_REPLICA_TASKS
          • DBA_OB_LS_ARB_REPLICA_TASK_HISTORY
          • DBA_OB_LS_HISTORY
          • ALL_IND_COLUMNS
          • DBA_OB_LS_LOCATIONS
          • DBA_OB_LS_LOG_ARCHIVE_PROGRESS
          • DBA_OB_SERVICES
          • DBA_OB_LS_REPLICA_TASKS
          • DBA_OB_LS_REPLICA_TASK_HISTORY
          • DBA_OB_MAJOR_COMPACTION
          • DBA_OB_OUTLINE_CONCURRENT_HISTORY
          • DBA_OB_OUTLINES
          • DBA_OB_RECOVER_TABLE_JOB_HISTORY
          • DBA_OB_RECOVER_TABLE_JOBS
          • DBA_OB_RESTORE_HISTORY
          • DBA_OB_RESTORE_PROGRESS
          • ALL_IND_EXPRESSIONS
          • DBA_OB_RSRC_IO_DIRECTIVES
          • DBA_OB_SPATIAL_COLUMNS
          • DBA_OB_SYS_VARIABLES
          • DBA_OB_TABLE_LOCATIONS
          • DBA_OB_TABLE_OPT_STAT_GATHER_HISTORY
          • DBA_OB_TABLE_STAT_STALE_INFO
          • DBA_OB_TABLEGROUP_PARTITIONS
          • DBA_OB_TABLEGROUP_SUBPARTITIONS
          • DBA_OB_TABLEGROUP_TABLES
          • DBA_OB_TABLEGROUPS
          • DBA_OB_TABLET_REPLICAS
          • DBA_OB_TABLET_TO_LS
          • ALL_IND_PARTITIONS
          • DBA_OB_TASK_OPT_STAT_GATHER_HISTORY
          • DBA_OB_TENANT_EVENT_HISTORY
          • DBA_OB_TEMP_FILES
          • DBA_OB_TENANTS
          • DBA_OB_TRANSFER_PARTITION_TASKS
          • DBA_OB_TRANSFER_PARTITION_TASK_HISTORY
          • DBA_OB_TRANSFER_TASK_HISTORY
          • DBA_OB_TRANSFER_TASKS
          • DBA_OB_USER_DEFINED_RULES
          • DBA_OB_ZONE_MAJOR_COMPACTION
          • DBA_OBJ_AUDIT_OPTS
          • ALL_IND_STATISTICS
          • DBA_OBJECTS
          • DBA_PART_COL_STATISTICS
          • DBA_PART_HISTOGRAMS
          • DBA_PART_INDEXES
          • DBA_PART_KEY_COLUMNS
          • DBA_PART_TABLES
          • DBA_POLICIES
          • DBA_POLICY_CONTEXTS
          • DBA_POLICY_GROUPS
          • DBA_PROCEDURES
          • ALL_IND_SUBPARTITIONS
          • DBA_PROFILES
          • DBA_RECYCLEBIN
          • DBA_ROLE_PRIVS
          • DBA_ROLES
          • DBA_RSRC_CONSUMER_GROUPS
          • DBA_RSRC_GROUP_MAPPINGS
          • DBA_RSRC_PLAN_DIRECTIVES
          • DBA_RSRC_PLANS
          • DBA_SCHEDULER_JOB_ARGS
          • DBA_SCHEDULER_JOB_RUN_DETAILS
          • ALL_INDEXES
          • DBA_SCHEDULER_JOBS
          • DBA_SCHEDULER_PROGRAM
          • DBA_SCHEDULER_PROGRAM_ARGS
          • DBA_SCHEDULER_WINDOWS
          • DBA_SEC_RELEVANT_COLS
          • DBA_SEGMENTS
          • DBA_SEQUENCES
          • DBA_SOURCE
          • DBA_SQL_MANAGEMENT_CONFIG
          • DBA_SQL_PLAN_BASELINES
          • ALL_ALL_TABLES
          • ALL_METHOD_PARAMS
          • DBA_STMT_AUDIT_OPTS
          • DBA_SUBPART_COL_STATISTICS
          • DBA_SUBPART_HISTOGRAMS
          • DBA_SUBPART_KEY_COLUMNS
          • DBA_SUBPARTITION_TEMPLATES
          • DBA_SYNONYMS
          • DBA_SYS_PRIVS
          • DBA_TAB_COL_STATISTICS
          • DBA_TAB_COLS
          • DBA_TAB_COLUMNS
          • ALL_MVIEW_LOGS
          • DBA_TAB_COMMENTS
          • DBA_TAB_HISTOGRAMS
          • DBA_TAB_MODIFICATIONS
          • DBA_TAB_PARTITIONS
          • DBA_TAB_PRIVS
          • DBA_TAB_STATISTICS
          • DBA_TAB_STATS_HISTORY
          • DBA_TAB_SUBPARTITIONS
          • DBA_TABLES
          • DBA_TABLESPACES
          • ALL_MVIEWS
          • DBA_TRIGGER_ORDERING
          • DBA_TRIGGERS
          • DBA_TYPE_ATTRS
          • DBA_TYPE_METHODS
          • DBA_TYPES
          • DBA_USERS
          • DBA_VIEWS
          • DBA_WR_ACTIVE_SESSION_HISTORY
          • DBA_WR_CONTROL
          • DBA_WR_EVENT_NAME
          • ALL_OB_EXTERNAL_TABLE_FILES
          • DBA_WR_SNAPSHOT
          • DBA_WR_SQLSTAT
          • DBA_WR_SQLTEXT
          • DBA_WR_STATNAME
          • DBA_WR_SYS_TIME_MODEL
          • DBA_WR_SYSSTAT
          • DBA_WR_SYSTEM_EVENT
          • DBMS_LOCK_ALLOCATED
          • DICT
          • DICTIONARY
          • ALL_OBJECTS
          • NLS_DATABASE_PARAMETERS
          • NLS_INSTANCE_PARAMETERS
          • NLS_SESSION_PARAMETERS
          • PROXY_USERS
          • ROLE_ROLE_PRIVS
          • ROLE_SYS_PRIVS
          • ROLE_TAB_PRIVS
          • STMT_AUDIT_OPTION_MAP
          • TENANT_VIRTUAL_GLOBAL_VARIABLE
          • TENANT_VIRTUAL_SESSION_VARIABLE
          • USER_ALL_TABLES
          • ALL_PART_COL_STATISTICS
          • USER_ARGUMENTS
          • USER_AUDIT_OBJECT
          • USER_AUDIT_SESSION
          • USER_AUDIT_STATEMENT
          • USER_AUDIT_TRAIL
          • USER_COL_COMMENTS
          • USER_COL_PRIVS
          • USER_COLL_TYPES
          • USER_CONS_COLUMNS
          • USER_CONSTRAINTS
          • ALL_PART_HISTOGRAMS
          • USER_DB_LINKS
          • USER_DEPENDENCIES
          • USER_ERRORS
          • USER_IND_COLUMNS
          • USER_IND_EXPRESSIONS
          • USER_IND_PARTITIONS
          • USER_IND_STATISTICS
          • USER_IND_SUBPARTITIONS
          • USER_INDEXES
          • USER_JOBS
          • ALL_PART_INDEXES
          • USER_MVIEW_LOGS
          • USER_MVIEWS
          • USER_MVREF_CHANGE_STATS
          • USER_MVREF_RUN_STATS
          • USER_MVREF_STATS
          • USER_MVREF_STATS_PARAMS
          • USER_MVREF_STATS_SYS_DEFAULTS
          • USER_MVREF_STMT_STATS
          • USER_OBJECTS
          • USER_PART_COL_STATISTICS
          • ALL_PART_KEY_COLUMNS
          • USER_PART_HISTOGRAMS
          • USER_PART_INDEXES
          • USER_PART_KEY_COLUMNS
          • USER_PART_TABLES
          • USER_POLICIES
          • USER_POLICY_CONTEXTS
          • USER_POLICY_GROUPS
          • USER_PROCEDURES
          • USER_PROFILES
          • USER_RECYCLEBIN
          • ALL_PART_TABLES
          • USER_ROLE_PRIVS
          • USER_SCHEDULER_JOB_ARGS
          • USER_SCHEDULER_PROGRAM_ARGS
          • USER_SEC_RELEVANT_COLS
          • USER_SEGMENTS
          • USER_SEQUENCES
          • USER_SOURCE
          • USER_SUBPART_COL_STATISTICS
          • USER_SUBPART_HISTOGRAMS
          • USER_SUBPART_KEY_COLUMNS
          • ALL_ARGUMENTS
          • ALL_POLICIES
          • USER_SUBPARTITION_TEMPLATES
          • USER_SYNONYMS
          • USER_SYS_PRIVS
          • USER_TAB_COL_STATISTICS
          • USER_TAB_COLS
          • USER_TAB_COLUMNS
          • USER_TAB_COMMENTS
          • USER_TAB_HISTOGRAMS
          • USER_TAB_MODIFICATIONS
          • USER_TAB_PARTITIONS
          • ALL_POLICY_CONTEXTS
          • USER_TAB_PRIVS
          • USER_TAB_STATISTICS
          • USER_TAB_STATS_HISTORY
          • USER_TAB_SUBPARTITIONS
          • USER_TABLES
          • USER_TABLESPACES
          • USER_TRIGGER_ORDERING
          • USER_TRIGGERS
          • USER_TYPE_ATTRS
          • USER_TYPE_METHODS
          • ALL_POLICY_GROUPS
          • USER_TYPES
          • USER_USERS
          • USER_VIEWS
          • ALL_PROCEDURES
          • ALL_PROFILES
          • ALL_SCHEDULER_JOB_ARGS
          • ALL_SCHEDULER_PROGRAM_ARGS
          • ALL_SCHEDULER_WINDOWS
          • ALL_SEC_RELEVANT_COLS
          • ALL_SEQUENCES
          • ALL_COL_COMMENTS
          • ALL_SOURCE
          • ALL_SUBPART_COL_STATISTICS
          • ALL_SUBPART_HISTOGRAMS
          • ALL_SUBPART_KEY_COLUMNS
          • ALL_SUBPARTITION_TEMPLATES
          • ALL_SYNONYMS
          • ALL_TAB_COL_STATISTICS
          • ALL_TAB_COLS
          • ALL_TAB_COLUMNS
          • ALL_TAB_COMMENTS
          • ALL_COL_PRIVS
          • ALL_TAB_HISTOGRAMS
          • ALL_TAB_MODIFICATIONS
          • ALL_TAB_PARTITIONS
          • ALL_TAB_PRIVS
          • ALL_TAB_STATISTICS
          • ALL_TAB_STATS_HISTORY
          • ALL_TAB_SUBPARTITIONS
          • ALL_TABLES
          • ALL_TRIGGER_ORDERING
          • ALL_TRIGGERS
          • ALL_COLL_TYPES
          • ALL_TYPE_ATTRS
          • ALL_TYPE_METHODS
          • ALL_TYPES
          • ALL_USERS
          • ALL_VIEWS
          • AUDIT_ACTIONS
          • DBA_ALL_TABLES
          • DBA_ARGUMENTS
          • DBA_AUDIT_EXISTS
          • DBA_AUDIT_OBJECT
          • ALL_CONS_COLUMNS
          • DBA_AUDIT_SESSION
          • DBA_AUDIT_STATEMENT
          • DBA_AUDIT_TRAIL
          • DBA_COL_COMMENTS
          • DBA_COL_PRIVS
          • DBA_COLL_TYPES
          • DBA_CONS_COLUMNS
          • DBA_CONSTRAINTS
          • DBA_CONTEXT
          • DBA_DB_LINKS
          • ALL_CONSTRAINTS
          • DBA_DEPENDENCIES
          • DBA_DIRECTORIES
          • DBA_ERRORS
          • DBA_IND_COLUMNS
          • DBA_IND_EXPRESSIONS
          • DBA_IND_PARTITIONS
          • DBA_IND_STATISTICS
          • DBA_IND_SUBPARTITIONS
          • DBA_INDEX_USAGE
          • DBA_INDEXES
          • ALL_DB_LINKS
          • DBA_JOBS
          • DBA_JOBS_RUNNING
          • DBA_METHOD_PARAMS
          • DBA_MVIEW_LOGS
          • DBA_MVIEWS
          • DBA_MVREF_CHANGE_STATS
          • DBA_MVREF_RUN_STATS
          • DBA_MVREF_STATS
          • DBA_MVREF_STATS_PARAMS
          • DBA_MVREF_STATS_SYS_DEFAULTS
        • Performance views
          • GV$ACTIVE_SESSION_HISTORY
          • GV$OB_COMPACTION_SUGGESTIONS
          • GV$OB_DTL_INTERM_RESULT_MONITOR
          • GV$OB_FLT_TRACE_CONFIG
          • GV$OB_GLOBAL_TRANSACTION
          • GV$OB_KVCACHE
          • GV$OB_LOG_STAT
          • GV$OB_LS_SNAPSHOTS
          • GV$OB_MEMORY
          • GV$OB_MEMSTORE
          • GV$OB_MEMSTORE_INFO
          • GV$OB_NIC_INFO
          • GV$DBLINK
          • GV$OB_OPT_STAT_GATHER_MONITOR
          • GV$OB_PARAMETERS
          • GV$OB_PLAN_CACHE_PLAN_EXPLAIN
          • GV$OB_PL_CACHE_OBJECT
          • GV$OB_PLAN_CACHE_PLAN_STAT
          • GV$OB_PLAN_CACHE_STAT
          • GV$OB_PROCESSLIST
          • GV$OB_PS_ITEM_INFO
          • GV$OB_PS_STAT
          • GV$OB_PX_P2P_DATAHUB
          • GV$OB_PX_TARGET_MONITOR
          • GV$DML_STATS
          • GV$OB_PX_WORKER_STAT
          • V$ACTIVE_SESSION_HISTORY
          • V$DBLINK
          • V$DML_STATS
          • V$OB_ENCRYPTED_TABLES
          • V$ENCRYPTED_TABLESPACES
          • V$EVENT_NAME
          • V$GLOBAL_TRANSACTION
          • V$GLOBALCONTEXT
          • V$INSTANCE
          • V$OB_MEMORY
          • GV$OB_SERVER_SCHEMA_INFO
          • V$OB_MEMSTORE
          • V$NLS_PARAMETERS
          • V$OB_ARBITRATION_MEMBER_INFO
          • V$OB_ARCHIVE_DEST_STATUS
          • V$OB_COMPACTION_DIAGNOSE_INFO
          • V$OB_COMPACTION_PROGRESS
          • V$OB_COMPACTION_SUGGESTIONS
          • V$OB_DTL_INTERM_RESULT_MONITOR
          • V$OB_GLOBAL_TRANSACTION
          • GV$OB_SESS_TIME_MODEL
          • V$OB_KVCACHE
          • V$OB_LOG_STAT
          • V$OB_LS_LOG_RESTORE_STATUS
          • V$OB_LS_SNAPSHOTS
          • V$OB_MEMSTORE_INFO
          • V$OB_NIC_INFO
          • V$OB_OPT_STAT_GATHER_MONITOR
          • V$OB_PARAMETERS
          • V$OB_PL_CACHE_OBJECT
          • V$OB_PROCESSLIST
          • V$OB_PX_P2P_DATAHUB
          • V$OB_PX_TARGET_MONITOR
          • GV$OB_SESSION
          • V$OB_PX_WORKER_STAT
          • V$OB_SERVER_SCHEMA_INFO
          • V$OB_SESS_TIME_MODEL
          • V$OB_SESSION
          • V$OB_SQL_PLAN
          • V$OB_SQL_WORKAREA_MEMORY_INFO
          • V$OB_SQLSTAT
          • V$OB_SYS_TIME_MODEL
          • V$OB_TABLET_COMPACTION_HISTORY
          • V$OB_TABLET_COMPACTION_PROGRESS
          • GV$OB_SQL_AUDIT
          • V$OB_TIMESTAMP_SERVICE
          • V$OB_TRANSACTION_PARTICIPANTS
          • V$OB_UNITS
          • V$OPEN_CURSOR
          • V$OB_PLAN_CACHE_PLAN_EXPLAIN
          • V$OB_PLAN_CACHE_PLAN_STAT
          • V$OB_PLAN_CACHE_STAT
          • V$OB_PS_ITEM_INFO
          • V$OB_PS_STAT
          • V$RSRC_PLAN
          • GV$SQL_JOIN_FILTER
          • V$SESSION_WAIT
          • V$SESSION_WAIT_HISTORY
          • V$SESSTAT
          • V$OB_SQL_AUDIT
          • V$SQL_JOIN_FILTER
          • V$SQL_MONITOR_STATNAME
          • V$SQL_PLAN_MONITOR
          • V$SQL_WORKAREA
          • V$SQL_WORKAREA_ACTIVE
          • V$SQL_WORKAREA_HISTOGRAM
          • GV$OB_SQL_PLAN
          • V$OB_SSTABLES
          • V$RESTORE_POINT
          • V$STATNAME
          • V$SYSSTAT
          • V$SYSTEM_EVENT
          • V$OB_TENANT_MEMORY
          • V$TIMEZONE_NAMES
          • V$VERSION
          • V$OB_ARBITRATION_SERVICE_STATUS
          • V$OB_LOCKS
          • V$OB_LS_REPLICA_TASK_PLAN
          • GV$OB_SQL_WORKAREA_MEMORY_INFO
          • V$OB_THREAD
          • GV$OB_SQLSTAT
          • GV$OB_SSTABLES
          • GV$GLOBAL_TRANSACTION
          • GV$OB_SYS_TIME_MODEL
          • GV$OB_TABLET_COMPACTION_HISTORY
          • GV$OB_TABLET_COMPACTION_PROGRESS
          • GV$OB_TENANT_MEMORY
          • GV$OB_TRANSACTION_PARTICIPANTS
          • GV$OB_UNITS
          • GV$OPEN_CURSOR
          • GV$SESSION_WAIT
          • GV$SESSION_WAIT_HISTORY
          • GV$SESSTAT
          • GV$INSTANCE
          • GV$SQL_PLAN_MONITOR
          • GV$SQL_WORKAREA
          • GV$SQL_WORKAREA_ACTIVE
          • GV$SQL_WORKAREA_HISTOGRAM
          • GV$SYSSTAT
          • GV$SYSTEM_EVENT
          • GV$OB_ARBITRATION_SERVICE_STATUS
          • GV$OB_LOCKS
          • GV$OB_THREAD
          • GV$OB_ARBITRATION_MEMBER_INFO
          • GV$OB_COMPACTION_DIAGNOSE_INFO
          • GV$OB_COMPACTION_PROGRESS
      • MySQL tenant views
        • Dictionary views
          • information_schema.GLOBAL_STATUS
          • oceanbase.DBA_OB_LS_LOCATIONS
          • oceanbase.DBA_OB_LS_LOG_ARCHIVE_PROGRESS
          • oceanbase.DBA_OB_LS_REPLICA_TASKS
          • oceanbase.DBA_OB_LS_REPLICA_TASK_HISTORY
          • oceanbase.DBA_OB_MAJOR_COMPACTION
          • oceanbase.DBA_OB_OUTLINE_CONCURRENT_HISTORY
          • oceanbase.DBA_OB_OUTLINES
          • oceanbase.DBA_OB_RECOVER_TABLE_JOB_HISTORY
          • oceanbase.DBA_OB_RECOVER_TABLE_JOBS
          • oceanbase.DBA_OB_SERVICES
          • oceanbase.DBA_OB_RESTORE_HISTORY
          • oceanbase.DBA_OB_RESTORE_PROGRESS
          • information_schema.GLOBAL_VARIABLES
          • oceanbase.DBA_OB_RSRC_IO_DIRECTIVES
          • oceanbase.DBA_OB_SEQUENCE_OBJECTS
          • oceanbase.DBA_OB_SYS_VARIABLES
          • oceanbase.DBA_OB_TABLE_LOCATIONS
          • oceanbase.DBA_OB_TABLE_OPT_STAT_GATHER_HISTORY
          • oceanbase.DBA_OB_TABLE_STAT_STALE_INFO
          • oceanbase.DBA_OB_TABLEGROUP_PARTITIONS
          • oceanbase.DBA_OB_TABLEGROUP_SUBPARTITIONS
          • oceanbase.DBA_OB_TABLEGROUP_TABLES
          • oceanbase.DBA_OB_TABLEGROUPS
          • oceanbase.DBA_OB_TABLET_REPLICAS
          • information_schema.KEY_COLUMN_USAGE
          • oceanbase.DBA_OB_TABLET_TO_LS
          • oceanbase.DBA_OB_TASK_OPT_STAT_GATHER_HISTORY
          • oceanbase.DBA_OB_TENANT_EVENT_HISTORY
          • oceanbase.DBA_OB_TENANTS
          • oceanbase.DBA_OB_TEMP_FILES
          • oceanbase.DBA_OB_TRANSFER_PARTITION_TASKS
          • oceanbase.DBA_OB_TRANSFER_PARTITION_TASK_HISTORY
          • oceanbase.DBA_OB_TRANSFER_TASK_HISTORY
          • oceanbase.DBA_OB_TRANSFER_TASKS
          • oceanbase.DBA_OB_USER_DEFINED_RULES
          • oceanbase.DBA_OB_USERS
          • information_schema.PARAMETERS
          • oceanbase.DBA_OB_ZONE_MAJOR_COMPACTION
          • oceanbase.DBA_OBJECTS
          • oceanbase.DBA_PART_COL_STATISTICS
          • oceanbase.DBA_PART_HISTOGRAMS
          • oceanbase.DBA_PART_INDEXES
          • oceanbase.DBA_PART_KEY_COLUMNS
          • oceanbase.DBA_PART_TABLES
          • oceanbase.DBA_RSRC_CONSUMER_GROUPS
          • oceanbase.DBA_RSRC_GROUP_MAPPINGS
          • oceanbase.DBA_RSRC_PLAN_DIRECTIVES
          • information_schema.PARTITIONS
          • oceanbase.DBA_RSRC_PLANS
          • oceanbase.DBA_SCHEDULER_JOBS
          • oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS
          • oceanbase.DBA_SCHEDULER_WINDOWS
          • oceanbase.DBA_SEQUENCES
          • oceanbase.DBA_SQL_MANAGEMENT_CONFIG
          • oceanbase.DBA_SQL_PLAN_BASELINES
          • oceanbase.DBA_SUBPART_COL_STATISTICS
          • oceanbase.DBA_SUBPART_HISTOGRAMS
          • oceanbase.DBA_SUBPART_KEY_COLUMNS
          • oceanbase.DBA_SUBPARTITION_TEMPLATES
          • information_schema.PROCESSLIST
          • oceanbase.DBA_TAB_COL_STATISTICS
          • oceanbase.DBA_TAB_HISTOGRAMS
          • oceanbase.DBA_TAB_MODIFICATIONS
          • oceanbase.DBA_TAB_PARTITIONS
          • oceanbase.DBA_TAB_STATISTICS
          • oceanbase.DBA_TAB_STATS_HISTORY
          • oceanbase.DBA_TAB_SUBPARTITIONS
          • oceanbase.DBA_WR_ACTIVE_SESSION_HISTORY
          • oceanbase.DBA_WR_CONTROL
          • oceanbase.DBA_WR_EVENT_NAME
          • information_schema.QUERY_RESPONSE_TIME
          • oceanbase.DBA_WR_SNAPSHOT
          • oceanbase.DBA_WR_SQLSTAT
          • oceanbase.DBA_WR_SQLTEXT
          • oceanbase.DBA_WR_STATNAME
          • oceanbase.DBA_WR_SYS_TIME_MODEL
          • oceanbase.DBA_WR_SYSSTAT
          • oceanbase.DBA_WR_SYSTEM_EVENT
          • information_schema.REFERENTIAL_CONSTRAINTS
          • information_schema.ROUTINES
          • information_schema.SCHEMA_PRIVILEGES
          • information_schema.CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS
          • information_schema.SCHEMATA
          • information_schema.SESSION_STATUS
          • information_schema.SESSION_VARIABLES
          • information_schema.ST_GEOMETRY_COLUMNS
          • information_schema.ST_SPATIAL_REFERENCE_SYSTEMS
          • information_schema.STATISTICS
          • information_schema.TABLE_CONSTRAINTS
          • information_schema.TABLE_PRIVILEGES
          • information_schema.TABLES
          • information_schema.USER_PRIVILEGES
          • information_schema.CHARACTER_SETS
          • information_schema.VIEW_TABLE_USAGE
          • information_schema.VIEWS
          • mysql.columns_priv
          • mysql.db
          • mysql.default_roles
          • mysql.help_category
          • mysql.help_keyword
          • mysql.help_relation
          • mysql.help_topic
          • mysql.proc
          • mysql.procs_priv
          • mysql.role_edges
          • mysql.time_zone
          • mysql.time_zone_name
          • information_schema.CHECK_CONSTRAINTS
          • mysql.time_zone_transition
          • mysql.time_zone_transition_type
          • mysql.user
          • oceanbase.ALL_OB_EXTERNAL_TABLE_FILES
          • oceanbase.DBA_DB_LINKS
          • oceanbase.DBA_IND_PARTITIONS
          • oceanbase.DBA_IND_STATISTICS
          • oceanbase.DBA_IND_SUBPARTITIONS
          • DBA_INDEX_USAGE
          • DBA_MVIEW_LOGS
          • information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
          • DBA_MVIEWS
          • DBA_MVREF_CHANGE_STATS
          • DBA_MVREF_RUN_STATS
          • DBA_MVREF_STATS
          • DBA_MVREF_STATS_PARAMS
          • DBA_MVREF_STATS_SYS_DEFAULTS
          • DBA_MVREF_STMT_STATS
          • oceanbase.DBA_OB_ACCESS_POINT
          • oceanbase.DBA_OB_ARCHIVE_DEST
          • oceanbase.DBA_OB_ARCHIVELOG
          • information_schema.COLLATIONS
          • oceanbase.DBA_OB_ARCHIVELOG_PIECE_FILES
          • oceanbase.DBA_OB_ARCHIVELOG_SUMMARY
          • oceanbase.DBA_OB_AUTO_INCREMENT
          • DBA_OB_AUX_STATISTICS
          • oceanbase.DBA_OB_BACKUP_DELETE_JOB_HISTORY
          • oceanbase.DBA_OB_BACKUP_DELETE_JOBS
          • oceanbase.DBA_OB_BACKUP_DELETE_POLICY
          • oceanbase.DBA_OB_BACKUP_DELETE_TASK_HISTORY
          • oceanbase.DBA_OB_BACKUP_DELETE_TASKS
          • oceanbase.DBA_OB_BACKUP_JOB_HISTORY
          • information_schema.COLUMN_PRIVILEGES
          • oceanbase.DBA_OB_BACKUP_JOBS
          • oceanbase.DBA_OB_BACKUP_PARAMETER
          • oceanbase.DBA_OB_BACKUP_SET_FILES
          • oceanbase.DBA_OB_BACKUP_STORAGE_INFO
          • oceanbase.DBA_OB_BACKUP_STORAGE_INFO_HISTORY
          • oceanbase.DBA_OB_BACKUP_TASK_HISTORY
          • oceanbase.DBA_OB_BACKUP_TASKS
          • oceanbase.DBA_OB_BALANCE_JOB_HISTORY
          • oceanbase.DBA_OB_BALANCE_JOBS
          • oceanbase.DBA_OB_BALANCE_TASK_HISTORY
          • information_schema.COLUMNS
          • oceanbase.DBA_OB_BALANCE_TASKS
          • oceanbase.DBA_OB_CONCURRENT_LIMIT_SQL
          • oceanbase.DBA_OB_DATA_DICTIONARY_IN_LOG
          • oceanbase.DBA_OB_DATABASE_PRIVILEGE
          • oceanbase.DBA_OB_DATABASES
          • oceanbase.DBA_OB_DEADLOCK_EVENT_HISTORY
          • oceanbase.DBA_OB_EXTERNAL_TABLE_FILES
          • oceanbase.DBA_OB_FREEZE_INFO
          • oceanbase.DBA_OB_IMPORT_TABLE_JOB_HISTORY
          • information_schema.ENGINES
          • oceanbase.DBA_OB_IMPORT_TABLE_JOBS
          • oceanbase.DBA_OB_IMPORT_TABLE_TASK_HISTORY
          • oceanbase.DBA_OB_IMPORT_TABLE_TASKS
          • oceanbase.DBA_OB_KV_TTL_TASK_HISTORY
          • oceanbase.DBA_OB_KV_TTL_TASKS
          • information_schema.events
          • oceanbase.DBA_OB_LOG_RESTORE_SOURCE
          • oceanbase.DBA_OB_LS
          • oceanbase.DBA_OB_LS_ARB_REPLICA_TASKS
          • oceanbase.DBA_OB_LS_ARB_REPLICA_TASK_HISTORY
          • oceanbase.DBA_OB_LS_HISTORY
        • Performance views
          • GV$ACTIVE_SESSION_HISTORY
          • GV$OB_IO_BENCHMARK
          • GV$OB_IO_CALIBRATION_STATUS
          • GV$OB_KVCACHE
          • GV$OB_LOG_STAT
          • GV$OB_LS_SNAPSHOTS
          • GV$OB_MEMORY
          • GV$OB_MEMSTORE
          • GV$OB_PL_CACHE_OBJECT
          • V$OB_PL_CACHE_OBJECT
          • GV$OB_MEMSTORE_INFO
          • GV$OB_MERGE_INFO
          • GV$OB_NIC_INFO
          • GV$OB_RPC_INCOMING
          • GV$DML_STATS
          • GV$OB_RPC_OUTGOING
          • GV$OB_PARAMETERS
          • GV$OB_PLAN_CACHE_PLAN_EXPLAIN
          • GV$OB_PLAN_CACHE_PLAN_STAT
          • GV$OB_PLAN_CACHE_STAT
          • GV$OB_PROCESSLIST
          • GV$OB_PS_ITEM_INFO
          • GV$OB_PS_STAT
          • GV$OB_PX_P2P_DATAHUB
          • GV$OB_PX_TARGET_MONITOR
          • GV$LATCH
          • GV$OB_PX_WORKER_STAT
          • V$ACTIVE_SESSION_HISTORY
          • V$DML_STATS
          • V$EVENT_NAME
          • V$LATCH
          • V$OB_ARCHIVE_DEST_STATUS
          • V$OB_COMPACTION_DIAGNOSE_INFO
          • V$OB_COMPACTION_PROGRESS
          • V$OB_COMPACTION_SUGGESTIONS
          • V$OB_COMPATIBILITY_CONTROL
          • V$OB_DTL_INTERM_RESULT_MONITOR
          • GV$OB_SERVER_SCHEMA_INFO
          • V$OB_ENCRYPTED_TABLES
          • V$ENCRYPTED_TABLESPACES
          • V$OB_IO_BENCHMARK
          • V$OB_IO_CALIBRATION_STATUS
          • V$OB_KVCACHE
          • V$OB_LOG_STAT
          • V$OB_LS_LOG_RESTORE_STATUS
          • V$OB_LS_REPLICA_TASK_PLAN
          • V$OB_LS_SNAPSHOTS
          • V$OB_MEMORY
          • GV$OB_SERVERS
          • V$OB_MEMSTORE
          • V$OB_MEMSTORE_INFO
          • V$OB_MERGE_INFO
          • V$OB_NIC_INFO
          • V$OB_RPC_INCOMING
          • V$OB_RPC_OUTGOING
          • V$OB_PARAMETERS
          • V$OB_PLAN_CACHE_PLAN_EXPLAIN
          • V$OB_PLAN_CACHE_PLAN_STAT
          • V$OB_PLAN_CACHE_STAT
          • V$OB_PROCESSLIST
          • GV$OB_SESS_TIME_MODEL
          • V$OB_PS_ITEM_INFO
          • V$OB_PS_STAT
          • V$OB_PX_P2P_DATAHUB
          • V$OB_PX_TARGET_MONITOR
          • V$OB_PX_WORKER_STAT
          • V$RSRC_PLAN
          • V$OB_SERVER_SCHEMA_INFO
          • V$OB_SERVERS
          • V$OB_SESS_TIME_MODEL
          • V$OB_SESSION
          • GV$OB_SESSION
          • V$SESSION_EVENT
          • V$OB_SQL_AUDIT
          • V$SQL_JOIN_FILTER
          • V$OB_SQL_PLAN
          • V$OB_SQL_WORKAREA_MEMORY_INFO
          • V$OB_SQLSTAT
          • V$OB_SSTABLES
          • V$OB_SYS_TIME_MODEL
          • V$OB_TABLET_COMPACTION_HISTORY
          • V$OB_TABLET_COMPACTION_PROGRESS
          • GV$OB_SQL_AUDIT
          • V$OB_TENANT_MEMORY
          • V$OB_TIMESTAMP_SERVICE
          • V$OB_TRANSACTION_PARTICIPANTS
          • V$OB_UNITS
          • V$RESTORE_POINT
          • V$SESSION_LONGOPS
          • V$SESSION_WAIT
          • V$SESSION_WAIT_HISTORY
          • V$SESSTAT
          • V$SQL_MONITOR_STATNAME
          • V$SQL_PLAN_MONITOR
          • GV$SQL_JOIN_FILTER
          • V$SQL_WORKAREA
          • V$SQL_WORKAREA_ACTIVE
          • V$SQL_WORKAREA_HISTOGRAM
          • V$STATNAME
          • V$SYSSTAT
          • V$SYSTEM_EVENT
          • V$OB_ARBITRATION_MEMBER_INFO
          • V$OB_ARBITRATION_SERVICE_STATUS
          • V$OB_LOCKS
          • V$OB_OPT_STAT_GATHER_MONITOR
          • GV$OB_SQL_PLAN
          • V$OB_THREAD
          • GV$OB_SQL_WORKAREA_MEMORY_INFO
          • GV$OB_SQLSTAT
          • GV$OB_SSTABLES
          • GV$OB_SYS_TIME_MODEL
          • GV$OB_TABLET_COMPACTION_HISTORY
          • GV$OB_TABLET_COMPACTION_PROGRESS
          • GV$OB_TENANT_MEMORY
          • GV$OB_TRANSACTION_PARTICIPANTS
          • GV$OB_UNITS
          • GV$SESSION_EVENT
          • GV$SESSION_LONGOPS
          • GV$SESSION_WAIT
          • GV$OB_COMPACTION_DIAGNOSE_INFO
          • GV$SESSION_WAIT_HISTORY
          • GV$SESSTAT
          • GV$SQL_PLAN_MONITOR
          • GV$SQL_WORKAREA
          • GV$SQL_WORKAREA_ACTIVE
          • GV$SQL_WORKAREA_HISTOGRAM
          • GV$SYSSTAT
          • GV$SYSTEM_EVENT
          • GV$OB_ARBITRATION_MEMBER_INFO
          • GV$OB_ARBITRATION_SERVICE_STATUS
          • GV$OB_COMPACTION_PROGRESS
          • GV$OB_LOCKS
          • GV$OB_OPT_STAT_GATHER_MONITOR
          • GV$OB_THREAD
          • GV$OB_COMPACTION_SUGGESTIONS
          • GV$OB_DTL_INTERM_RESULT_MONITOR
          • GV$OB_FLT_TRACE_CONFIG
    • Components & tools
      • O&M management
        • obd
        • ob-operator
        • ob_error
        • OBShell
          • Overview
          • API references
            • obshell API requests
            • Hybrid encryption for API operations
            • obshell management
              • AgentUpgradeCheck
              • UpgradeAgent
              • QueryNodeStatus
            • Cluster management
              • ObUpgradeCheck
              • UpgradeOb
              • AddNode
              • GetObInfo
              • AddNodeBeforeClusterInitialization
              • DeleteNodeBeforeClusterInitialization
              • SetClusterConfig
              • SetServerConfig
              • InitializeCluster
              • StartCluster
              • StopCluster
            • Task management
              • OperateDag
              • GetDagDetails
              • GetNodeDetails
              • GetSubtaskDetails
              • QueryUnfinishedTasks
              • QueryUnfinishedAgentTasks
              • QueryUnfinishedObTasks
              • QueryLastObTask
              • QueryLastAgentTask
            • Other APIs
              • GetPublicKey
              • UploadPkg
          • Command line
            • Agent commands of obshell
            • Cluster commands of obshell
            • Task commands of obshell
          • SDK references
            • GO
              • Quick start
              • Perform an agent upgrade check
              • Perform an OceanBase Database upgrade check
              • Upgrade agents
              • Upgrade OceanBase Database
              • Scale out a cluster
              • Query the status of a node
              • Query the information about a cluster
              • Operate a task
              • Obtain the information about a task
              • Obtain the information about a node
              • Obtain the information about a subtask
              • Query all unfinished tasks
              • Query unfinished agent tasks
              • Query unfinished OceanBase cluster tasks
              • Query the last O&M task in an OceanBase cluster
              • Query the last O&M task of an obshell node
              • Clean up obshell nodes in an uninitialized cluster
              • Create a cluster
              • Add a node before cluster initialization
              • Remove a node before cluster initialization
              • Set cluster-level configurations
              • Set server-level configurations
              • Initialize a cluster
              • Start a cluster
              • Stop a cluster
              • Upload an RPM package
            • Python
              • Quick start
              • Perform an agent upgrade check
              • Perform an OceanBase Database upgrade check
              • Upgrade agents
              • Upgrade OceanBase Database
              • Scale out a cluster
              • Query the status of a node
              • Query the information about a cluster
              • Operate a task
              • Obtain the information about a task
              • Obtain the information about a node
              • Obtain the information about a subtask
              • Query all unfinished tasks
              • Query unfinished agent tasks
              • Query unfinished OceanBase cluster tasks
              • Query the last O&M task in an OceanBase cluster
              • Query the last O&M task of an obshell node
              • Clean up obshell nodes in an uninitialized cluster
              • Create a cluster
              • Add a node before cluster initialization
              • Remove a node before cluster initialization
              • Set cluster-level configurations
              • Set server-level configurations
              • Initialize a cluster
              • Start a cluster
              • Stop a cluster
              • Upload an RPM package
          • Use OBShell
            • Configure an OBServer node to start automatically on boot
            • Cluster management
              • Deploy an OceanBase cluster
              • Take over an OceanBase cluster not deployed by obshell
              • Start an OceanBase cluster
              • Stop an OceanBase cluster
              • Use obshell to scale out an OceanBase cluster
              • Upgrade an OceanBase cluster
            • obshell management
              • Start or stop obshell
              • Upgrade obshell
        • ob_admin
          • Overview
          • dumpsst
          • clog
            • log_tool
            • Format of clogs
            • Transaction logs
          • Backup and restore
            • dump_backup
            • test_io_device
            • io_adapter_benchmark
      • Monitoring and diagnostics
        • obdiag
        • SQL diagnoser
          • Overview
          • Deploy and use SQL diagnoser
            • Install sql_diagnoser
            • Use sql_diagnoser
          • SQL diagnoser remarks
            • Built-in diagnostic items
            • Diagnostic rule expression
            • API operations
            • Diagnostic items of SQL review
      • Data integration
        • oblogproxy
        • obloader and obdumper
        • CDC
          • Overview
          • FAQ
          • obcdc development instructions
          • obcdc_tailf
          • Throttling
          • obcdc allowlist and blocklist
          • Incremental direct load in obcdc
          • obcdc parameters
            • General obcdc parameters
            • obcdc parameters
            • Sample configuration file
      • Log analysis
        • oblogminer
          • Overview
          • Install oblogminer
          • Command-line options
          • Examples
          • FAQ
      • Stress testing tools
        • mysqltest
          • Use obd.sh to run mysqltest
          • Use of cases
            • Add a test case
            • Test case writing conventions
            • General test case writing commands
    • Platforms
      • ODC
      • OCP
      • OMS
      • OAT
      • OMA
      • OCP Express
        • Tenant management
        • OCP Express
        • Monitor a cluster
        • Log service
        • View cluster overview information
        • Diagnostic analysis
    • Database object management
      • Overview
      • Oracle mode
        • Manage synonyms
        • Manage sequences
        • Manage directory objects
        • Create and manage DBLinks
          • Drop a DBLink
          • Use a DBLink to access data in a remote database
          • Query existing DBLinks
          • Use a DBLink to modify the data in a remote database
          • Manage DBLinks
          • Install and configure OCI
          • Create a DBLink
        • Manage views
          • Manage standard views
          • Manage materialized views
            • Materialized views
              • Drop a materialized view
              • Refresh a materialized view
              • Query materialized views
              • Overview
              • Create a materialized view
              • Rewrite queries based on materialized views
            • Materialized view logs
              • Create a materialized view log
              • Overview
              • Drop a materialized view log
        • Create and manage table groups
          • Drop a table group
          • Query information about a table group
          • Manage tables in a table group
          • Add tables to a table group
          • Modify the SHARDING attribute of a table group
          • Overview
          • Create a table group
        • Create and manage partitions
          • Overview
          • Drop a partition
          • Create a partitioned table
          • Rename a partition
          • Partition pruning
          • Truncate a partition
          • Add a partition
          • Exchange partitions
          • Query data in specified partitions
          • Modify partitioning rules
          • Create indexes on partitioned tables
            • Global indexes
            • Local indexes
            • Overview
        • Create and manage tables
          • Drop a table
          • Empty a table
          • Lock a table
          • Modify a table
          • Query the definition of a table
          • Define column constraints
          • Create a table
          • Overview
          • Column skip index attribute
          • Create and manage external tables
            • Create an external table
            • Overview
            • Add partitions for an external table
            • Manage external files
        • Create and manage triggers
          • Create an INSTEAD OF trigger
          • Modify and drop a trigger
          • Create a DML trigger
          • Query trigger information
          • Disable or enable a trigger
          • Create a composite trigger
          • Overview
        • Create and manage indexes
          • Overview
          • Monitor indexes
          • Create an index
          • Query indexes
          • System functions not supported for function-based indexes
          • System functions supported for function-based indexes
          • Drop an index
      • MySQL mode
        • Create and manage table groups
          • Manage tables in a table group
          • Overview
          • Drop a table group
          • Add tables to a table group
          • Create a table group
          • Modify the SHARDING attribute of a table group
          • Query information about a table group
        • Create and manage indexes
          • System functions supported for function-based indexes
          • Query indexes
          • Drop an index
          • Monitor indexes
          • System functions not supported for function-based indexes
          • Create an index
          • Overview
        • Create and manage databases
          • View databases
          • Create a database
          • Drop a database
          • Modify a database
        • Manage views
          • Manage standard views
          • Manage materialized views
            • Materialized views
              • Query materialized views
              • Overview
              • Rewrite queries based on materialized views
              • Create a materialized view
              • Refresh a materialized view
              • Drop a materialized view
            • Materialized view logs
              • Overview
              • Create a materialized view log
              • Drop a materialized view log
        • Create and manage partitions
          • Create a partitioned table
          • Query data in specified partitions
          • Drop a partition
          • Modify partitioning rules
          • Truncate a partition
          • Overview
          • Partition pruning
          • Exchange partitions
          • Add a partition
          • Create indexes on partitioned tables
            • Overview
            • Local indexes
            • Global indexes
        • Create and manage tables
          • Empty a table
          • Create a table
          • Define column constraints
          • Lock a table
          • Modify a table
          • Query tables
          • Drop a table
          • Define an auto-increment column
          • Overview
          • Column skip index attribute
          • Create and manage external tables
            • Overview
            • Manage external files
            • Add partitions for an external table
            • Create an external table
        • Create and manage sequences
          • Modify a sequence
          • Query sequences
          • Create a sequence
          • Drop a sequence
          • Reference a sequence
        • Create and manage triggers
          • Drop a trigger
          • Query trigger information
          • Overview
          • Create a DML trigger
        • Create and manage DBLinks
          • Use a DBLink to access data in a remote database
          • Manage DBLinks
          • Query existing DBLinks
          • Drop a DBLink
          • Create a DBLink
    • OceanBase concepts
      • Development of OceanBase Database
      • Architecture of OceanBase Database
      • Database objects
        • Oracle mode
          • Partitions
            • Partitioned indexes
            • Overview
            • Partitioning keys
            • Partitioning types
            • External table partitions
          • Tables
            • Integrity constraints
            • Partitioned table
            • Table storage
            • Temporary table
            • Table compression
            • Overview
            • Tables with and without a primary key
            • Replicated table
            • Data type
              • ROWID data types
              • Numeric data types
              • Datetime data types
              • LOB data types
              • Character data types
              • Multi-model data types
              • Overview
              • Format model
                • Number format models
                • Overview
                • Datetime format models
          • Views
            • Views in a database
            • Materialized views
              • Materialized view logs
              • Materialized views
              • Creation and update strategies for materialized views
            • Standard views
              • Standard views
              • Overview
              • Oracle-compatible views
              • View operations and data access
              • OceanBase-specific views
          • Introduction
            • Overview
            • Database object types
            • Database object storage
            • Dependencies between database objects
          • Other objects
            • Sequences
            • Synonym
          • Data integrity
            • Overview
            • Use of integrity constraints
            • Integrity constraint type
              • UNIQUE KEY constraints
              • Overview
              • FOREIGN KEY constraints
              • PRIMARY KEY constraints
              • NOT NULL constraints
              • CHECK constraints
          • System views
            • Dictionary views
            • Performance views
          • Indexes
            • Local and global indexes
            • Unique and non-unique indexes
            • Index storage
            • Use indexes
            • Overview
        • MySQL mode
          • Data integrity
            • Use of integrity constraints
            • Overview
            • Integrity constraint type
              • PRIMARY KEY constraints
              • Overview
              • NOT NULL constraints
              • UNIQUE KEY constraints
              • FOREIGN KEY constraints
          • Views
            • Views in a database
            • Standard views
              • Overview
              • Overview
              • OceanBase-specific views
              • MySQL-compatible views
              • Oracle-compatible views in MySQL tenants
              • Oracle-compatible views in the sys tenant
              • View operations and data access
            • Materialized views
              • Materialized views
              • Creation and update strategies for materialized views
              • Materialized view logs
          • Introduction
            • Dependencies between database objects
            • Overview
            • Database object storage
            • Database object types
          • Indexes
            • Overview
            • Index storage
            • Use indexes
            • Unique and non-unique indexes
            • Spatial indexes
            • Local and global indexes
            • Full-text index
          • Tables
            • Table storage
            • Tables with and without a primary key
            • Partitioned table
            • Table compression
            • Integrity constraints
            • Overview
            • Replicated table
            • Data type
              • Numeric data types
              • LOB data types
              • Datetime data types
              • Overview
              • Multi-model data types
              • JSON data types
              • Spatial data types
              • Character data types
          • Partitions
            • Partitioned indexes
            • External table partitions
            • Overview
            • Partitioning types
            • Partitioning keys
          • System views
            • Performance views
            • Dictionary views
      • OBServer node architecture
        • Structure of the OBServer node installation directory
        • Configuration file
        • Logs
        • Memory management
          • Memory-related views
          • Memory-related parameters
          • Diagnose memory errors
          • Memory usage logs
          • Overview
        • observer thread model
          • Worker threads
          • Threads
          • Background threads
      • Storage architecture
        • Query processing
        • Overview
        • Multi-level caches
        • Data storage
          • Columnar storage
          • MemTables
          • SSTables
          • Compression and encoding
          • Overview
        • Data integrity
          • Detect silent data corruption
        • Compaction
          • Overview
          • Major compaction
          • Minor compaction
      • User interface and query language
        • Client programming languages
        • SQL
          • Query SQL execution plans
          • Execution process of SQL queries
          • Introduction
            • SQL data access
            • SQL standards
            • Overview
          • Distributed execution plan
            • Perform distributed execution and parallel queries
            • Manage distributed execution plans
            • Run and disable a parallel query
            • Generate distributed execution plans
            • Perform parameter tuning for PX
          • SQL statements
            • Overview
            • DDL statements
            • DCL statements
            • DML statements
        • PL
          • PL subprogram execution mechanism
          • PL concepts
            • MySQL mode
              • Functions
              • Stored procedures
              • Subprograms
              • Triggers
            • Oracle mode
              • Subprograms
              • Triggers
              • Functions
              • Stored procedures
              • Packages
      • Data link
        • Overview
        • Database proxy
          • SQL routing
          • ODP configuration management
          • Connection management
          • Overview
          • Logs and monitoring
        • Database connector
          • OceanBase Connector/C
          • OBCI
          • OceanBase Connector/J
          • Overview
      • Distributed database objects
        • Overview
        • Architecture
        • Data partitions and replicas
          • Overview
          • Multi-replica consensus protocols
          • Log streams
          • Data balancing
            • Intra-tenant balancing
            • Views and parameters related to data balancing
          • Partition replica type
            • Overview
            • Read-only replicas
            • Full-featured replica
            • Columnstore replica
        • Dynamic scaling
          • Cluster scaling
          • Tenant resource scaling
            • Horizontal scaling of tenant resources
            • Overview
            • Cross-zone management of tenant resources
            • Vertical scaling of tenant resources
      • Multi-tenant architecture
        • Tenants
        • Overview
        • Compatibility modes
        • Tenants and resource management
          • Resource unit balancing
          • Multi-tenant resource isolation
          • Tenant resource management
      • Transaction management
        • Transaction concurrency and consistency
          • Multi-version read consistency
          • Weak-consistency read
          • Overview
          • Transaction isolation level
            • Transaction isolation levels in MySQL mode
            • Overview
            • Transaction isolation levels in Oracle mode
          • Concurrency control
            • Lock mechanism
            • Overview
        • Transaction
          • Overview
          • Statement-level atomicity
          • Redo logs
          • Transaction structure
          • XA transactions
          • Local transactions
          • GTS
          • Transaction control
            • Active transactions
            • Overview
            • Savepoint
            • Transaction control statements
              • MySQL transaction control
              • Oracle transaction control
          • Distributed transaction
            • Two-phase commit
            • Overview
      • Data reliability and high availability
        • Deployment solutions for disaster recovery
        • Arbitration-based high availability solution
        • Physical Standby Database solution
        • Data protection
          • Recycle bin
          • Flashback queries
          • Overview
        • High availability architecture
          • Automatic handling of node failures
          • ODP high availability
          • Paxos protocol
          • Leader election in distributed systems
          • Multi-replica log synchronization
          • Overview
        • Backup and restore
          • Overview
          • Backup directory structures
          • Restore process
          • Backup architecture
      • Database security
        • Security audit
        • Monitoring and alerting
        • Access control
        • Authentication
        • Data transmission encryption
        • Data storage encryption
        • Overview
    • Database design specifications and practices
      • Character set specifications
      • Comments
      • ORM conventions
      • Database connection specifications
      • Exception handling
      • Object structure design specifications
        • Field design
        • Partitioned table design
        • Index design
        • Table structure design
        • Other structural designs
      • Object naming conventions
        • Tenant naming conventions
        • Overview
        • Other naming conventions
        • User naming conventions
        • Field naming conventions
        • Table naming conventions
    • Performance tuning
      • Overview
      • SQL tuning
        • Glossary
        • Execution process of SQL queries
        • General issues in SQL tuning
        • SQL tuning
          • General procedure
          • Overview
          • SQL execution performance monitoring
            • SQL Trace
            • GV$OB_SQL_AUDIT
            • Plan cache views
            • SQL performance analysis example
              • Query SQL traffic distribution and QPS
              • Analyze queries related to distributed plans
              • Find the TOP N queries with the longest execution time within a certain period
              • Check whether the RPC execution count of a distributed subplan is balanced across servers in a cluster
              • Find the TOP N SQL queries
              • Check whether SQL queries are balanced across servers in a cluster
              • Find full table scan SQL statements in a tenant
              • Analyze SQL queries that cause an abrupt RT jitter
              • Analyze slow SQL queries
              • Use SQL Audit to analyze wait events in a query
              • Analyze whether an unusually large number of remote execution requests exist in the system or the execution of an SQL statement
              • View and analyze the shape of an execution plan
          • Query rewrite
            • Cost-based query rewrite
            • Overview
            • Rule-based query rewrite
          • Query optimization
            • Join algorithm
              • Runtime filter
              • Join order
              • Join algorithms
              • Overview
            • Access path
              • Cost-based path selection
              • Overview
              • Rule-based path selection
          • Optimizer statistics
            • Examples
            • Monitoring and diagnostics for statistics collection
            • Overview of statistics
            • Statistics collection methods
              • Histograms
              • Dynamic sampling
              • Overview
              • Online statistics collection
              • Automatic statistics collection
              • Manual statistics collection
            • Statistics management
              • Manage statistics history
              • Lock and unlock statistics
              • Manage statistics preferences
              • Overview
              • Import and export statistics
              • Delete statistics
              • Set statistics
          • Manage execution plans
            • Optimizer hints
            • Plan binding
            • SQL plan management
        • SQL execution plans
          • Fast parameterization
          • Plan cache
          • Real-time execution plan display
          • Introduction to SQL execution plans
          • SQL optimization practice with EXPLAIN
          • Execution plan operators
            • SUBPLAN FILTER
            • COUNT
            • INTERSECT
            • SUBPLAN SCAN
            • JOIN
            • DELETE
            • SEQUENCE
            • EXCHANGE
            • GROUP BY
            • FOR UPDATE
            • TABLE SCAN
            • UNION
            • MERGE
            • EXCEPT/MINUS
            • UPDATE
            • WINDOW FUNCTION
            • SELECT INTO
            • GI
            • LIMIT
            • DISTINCT
            • MATERIAL
            • INSERT
            • SORT
        • Distributed execution plans
          • Schedule distributed execution plans
          • Parallel DML
          • Parallel execution enabling methods and their priority
          • Perform parameter tuning for a parallel query
          • Manage distributed execution plans
          • Perform distributed execution and parallel queries
          • Auto DOP
          • Execute parallel queries
          • Generate a distributed plan
          • Parallel DDL
        • Parallel execution plans
          • Quick start
          • Classification and optimization of parallel execution
          • Introduction to parallel execution
          • Parallel execution tuning tips
          • Parallel execution diagnostics
          • Set concurrent execution
            • Concurrency control and queuing
            • Set parallel execution parameters
            • Set a DOP for parallel execution
      • System tuning
        • OS parameter tuning
        • Database parameter tuning
          • CPU parameters
          • I/O parameters
          • Memory-related parameters
          • Network transmission parameters
        • ODP parameter tuning
          • Network transmission parameters
          • Routing parameters on nodes
          • CPU parameters
      • Performance related tools
        • OCP
        • System tools
          • CPU tools
          • Memory tools
          • Top
          • Network tools
          • Disk I/O tools
        • Internal tables
          • GV$OB_SQL_AUDIT
          • GV$OB_TRANSACTION_PARTICIPANTS
          • GV$SYSSTAT
        • Logs
          • slow trans
          • dump tenant info
          • Trace logs
      • Performance diagnosis
        • Diagnose tenant performance
        • Monitor host performance
        • Monitor ODP performance
        • Monitor and diagnose the cluster performance
        • WR management
          • Overview
          • Manage WR
          • Monitor historical session performance
          • Clean up WR data
        • ASH report
          • Analyze ASH reports
          • Generate ASH reports
          • ASH
      • Business model tuning
        • SQL diagnostics
        • Distributed transactions
        • Load balancing
    • System management
      • Configuration management
        • Overview
        • Set parameters
        • Set variables
      • Storage management
        • Major compaction management
          • View merge information
          • Overview
          • Manually initiate a major compaction
          • Configure scheduled major compactions
          • Automatically trigger a major compaction
          • Modify major compaction settings
          • Manually control a major compaction
          • Adaptive major compactions
        • Minor compaction management
          • Modify minor compaction settings
          • Automatically trigger a minor compaction
          • Manually initiate a minor compaction
          • Overview
          • View the minor compaction information
        • Data compression
          • Data encoding and compression
          • Overview
      • Memory management
        • Overview
        • Manage the memory of the plan cache
        • Manage internal system memory
        • Set the maximum memory for an OceanBase database
        • Manage internal tenant memory
        • Memory issues
        • Memleak-based regular memory leak diagnostics mechanism
        • Memory structure
        • Query memory usage information
      • Process management
        • Background threads of OceanBase Database
        • Overview
        • Multi-tenant threads of OceanBase Database
        • FAQ about multi-tenant threads
        • View the thread status
      • Disk management
        • Configure automatic scale-out of disk space for data files
    • Database proxy
      • Connection and routing
      • View tenant sessions
      • Physical connections
      • Terminate a tenant session
      • OceanBase Database Proxy
      • Set the maximum number of connections for a tenant
      • Logical connection
        • Query session variables
        • Terminate a server session
        • Query the metrics of a session
        • Query all sessions
        • Query the details of a session
      • Route management
        • LDC-based routing
        • Table-based routing of ODP
        • ODP routing policy
          • Transaction routing
          • Blocklist mechanism
          • Follower-first read
          • Read/Write splitting
      • ODP
        • ODP startup parameters
        • Overview
        • Manage ODP
          • Start an ODP
          • Stop an ODP
          • Restart an ODP
          • Refresh ODP configurations
          • Add an ODP
          • Upgrade one or more ODPs
          • Delete an ODP
        • Manage ODP clusters
          • Restart all ODPs in an ODP cluster
          • Create an ODP cluster
          • Delete an ODP cluster
          • Manage ODP cluster parameters
          • Upgrade all ODPs in an ODP cluster
          • Manage OceanBase clusters connected to an ODP cluster
          • Monitor ODP cluster performance
    • Error codes
      • MySQL mode
        • Overview
        • 9500 to 9999
        • 10000 to 12000
        • 22998, 30926, 38104, and 38105
        • 0001 to 3999
        • 4000 to 4499
        • 4500 to 4999
        • 5000 to 5999
        • 6000 to 6999
        • 7000 to 7999
        • 8000 to 8999
        • 9000 to 9499
      • Oracle mode
        • Overview
        • OBE-50000 to OBE-99999
        • PLS-00000 to PLS-00999
        • OBE-00000 to OBE-00999
        • OBE-01000 to OBE-01499
        • OBE-01500 to OBE-01999
        • OBE-02000 to OBE-04999
        • OBE-05000 to OBE-10000
        • OBE-10000 to OBE-19999
        • OBE-20000 to OBE-29999
        • OBE-30000 to OBE-49999
    • Drivers
      • OBCI
      • OceanBase Connector/ODBC
      • ECOB
      • OceanBase Connector/J
      • OceanBase Connector/C
  • FAQ
    • Deployment
    • High availability
    • Products
    • FAQ about columnstores
    • Cluster management
    • SQL statements
  • Release Notes
    • Version number guidelines
    • OceanBase Database Enterprise Edition
      • V4.3
        • OceanBase Database V4.3.1
        • OceanBase Database Enterprise Edition V4.3.0
        • OceanBase Database Enterprise Edition V4.3.2
        • OceanBase Database Enterprise Edition V4.3.3
      • V3.2
        • OceanBase Database Enterprise Edition V3.2.0
        • OceanBase Database Enterprise Edition V3.2.3
        • OceanBase Database Enterprise Edition V3.2.4
        • OceanBase Database Enterprise Edition V3.2.2
        • OceanBase Database Enterprise Edition V3.2.1
      • V4.1
        • OceanBase Database Enterprise Edition V4.1.0
      • V4.2
        • OceanBase Database Enterprise Edition V4.2.1
        • OceanBase Database Enterprise Edition V4.2.0
      • V3.1
        • OceanBase Database Enterprise Edition V3.1.1
        • OceanBase Database Enterprise Edition V3.1.2
      • V2.2
        • OceanBase Database Enterprise Edition V2.2.77
        • OceanBase Database Enterprise Edition V2.2.76
        • OceanBase Database Enterprise Edition V2.2.30
    • OceanBase Database Community Edition
      • V4.0
        • OceanBase Database Community Edition V4.0.0
      • V3.1
        • OceanBase Database Community Edition V3.1.3
        • OceanBase Database Community Edition V3.1.4
        • OceanBase Database Community Edition V3.1.2
        • OceanBase Database Community Edition V3.1.1
        • OceanBase Database Community Edition V3.1.5
      • V4.3
        • OceanBase Database Community Edition V4.3.1
        • OceanBase Database Community Edition V4.3.0
        • OceanBase Database Community Edition V4.3.2
        • OceanBase Database Community Edition V4.3.3
      • V4.2
        • OceanBase Database Community Edition V4.2.0
        • OceanBase Database Community Edition V4.2.1
      • V4.1
        • OceanBase Database Community Edition V4.1.0
  • Glossary

Download PDF

What's New Compatibility with MySQL Overview Differences between Enterprise Edition and Community Edition Limitations System architecture Overview System views SQL data types Built-in functions Video tutorial Quick start with OceanBase Database Community Edition Try out the multi-tenant feature Try out operational OLAP Try out parallel import and data compression Build a C application Build a Java application Basic SQL operations (Oracle mode) Basic SQL operations (MySQL mode) Before you begin Build a Go application Build a Java application Build a C application Build a Python application Clear an OceanBase cluster Overview HA deployment solutions for OceanBase clusters Recommended configurations Overview Deploy an OceanBase cluster in a Kubernetes environment Deployment process Import data from SQL files to OceanBase Database Overview Use OMS to migrate data from a DB2 LUW database to a MySQL tenant of OceanBase Database Use OMS to migrate data from a DB2 LUW database to an Oracle tenant of OceanBase Database Use DBCAT to migrate table schemas from a DB2 LUW database to OceanBase Database Use OMS to migrate data from an Oracle database to an Oracle tenant of OceanBase Database Use DataX to migrate table data from an Oracle database to OceanBase Database Use DBCAT to migrate schemas from an Oracle database to OceanBase Database Use OMS to migrate data from an Oracle database to a MySQL tenant of OceanBase Database Use DataX to migrate table data from OceanBase Database to a MySQL database Use OMS to migrate incremental data from an Oracle tenant of OceanBase Database to a MySQL database Use Flink CDC to migrate data from OceanBase Database to a MySQL database Use ChunJun to migrate data from OceanBase Database to a MySQL database Use Canal to synchronize data from OceanBase Database to a MySQL database Use DBCAT to migrate schemas from OceanBase Database to a MySQL database Use CloudCanal to migrate data from OceanBase Database to a MySQL database Use OMS to migrate data from a MySQL tenant of OceanBase Database to a MySQL database Use obloader & obdumper to migrate data from a MySQL tenant to an Oracle tenant in OceanBase Database Use OMS to migrate data from an OceanBase tenant to another of the same type Use OMS to migrate data from an OceanBase tenant to another of the same type in active-active disaster recovery scenarios Use obloader & obdumper to migrate data between Oracle tenants in OceanBase Database Use obloader & obdumper to migrate data between MySQL tenants in OceanBase Database Use obloader & obdumper to migrate data from an Oracle tenant to a MySQL tenant in OceanBase Database Use Flink CDC to synchronize data from a MySQL database to OceanBase Database Use OMS to migrate data from a MySQL database to a MySQL tenant of OceanBase Database Use mydumper and myloader to migrate data from a MySQL database to OceanBase Database Use ChunJun to migrate data from a MySQL database to OceanBase Database Use CloudCanal to migrate data from a MySQL database to OceanBase Database Use DataX to migrate table data from a MySQL database to OceanBase Database Use DBCAT to migrate schemas from a MySQL database to OceanBase Database Use Canal to synchronize data from a MySQL database to OceanBase Database Overview Full direct load Incremental direct load Import data in direct load mode by using :obloader Import data by using the LOAD DATA statement Use DataX to migrate CSV files to OceanBase Database Use DBCAT to migrate schemas from OceanBase Database to an Oracle database Use DataX to migrate table data from OceanBase Database to an Oracle database Use OMS to migrate data from an Oracle tenant of OceanBase Database to an Oracle database Use OMS to migrate data from a PostgreSQL database to a MySQL tenant of OceanBase Database Export data by using the SELECT INTO OUTFILE statement Migrate resource units Migrate data between tables Use OMS to migrate data from a MySQL tenant of OceanBase Database to a DB2 LUW database Use OMS to migrate data from an Oracle tenant of OceanBase Database to a DB2 LUW database Use OMS to migrate data from a TiDB database to a MySQL tenant of OceanBase Database Log in to an OceanBase tenant Traffic distribution Data distribution Overview Identify bottlenecks on the data link Overview Deadlock detection Overview Check tenant resource usage Check cluster parameters Check cluster resource usage Check the host status Check the NTP offset Check the OBServer node status Cluster parameters Overview Overview Overview of physical backup and restore Experience physical backup and restore with simplified deployment Deploy NFS Emergency response overview Analysis, diagnosis, and decision-making procedure
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.3.3
iconOceanBase Database
SQL - V 4.3.3
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

TPC-DS benchmark

Last Updated:2024-12-02 03:48:29  Updated
share
What is on this page
What is TPC-DS?
Environment preparation
Cluster deployment
Manual TPC-DS test
Environment tuning
Set the default table format to column for a user tenant
Install the TPC-DS tools
Generate data
Generate SQL query statements
Create tables
Load data
Run the test

folded

share

This topic describes how to run the TPC-DS benchmark on OceanBase Database in analytical processing (AP) scenarios.

Note

To enhance user experience and ensure optimal performance, OceanBase Database has been extensively optimized since V4.0.0. The performance testing methods outlined here focus on tuning basic parameters to provide developers with an improved database experience.

What is TPC-DS?

TPC-DS is a decision support benchmark that contains multi-dimensional regular application models for a decision support system, including queries and data maintenance. It is a representative benchmark for assessing the performance of the system under test (SUT) as a decision support system.

This benchmark illustrates decision support systems that:

  • Test large-scale data.
  • Answer real-world business questions.
  • Execute queries with diverse or complex requirements, such as ad-hoc queries, reporting, iterative online analytical processing (OLAP), and data mining.
  • Have high CPU and I/O load.
  • Periodically perform synchronization with source online transaction processing (OLTP) databases through database maintenance.
  • Provide big data solutions, such as relational database management systems (RDBMSs) and Hadoop/Spark-based systems.

The benchmark result measures the query response time in single-user mode, query throughput in multi-user mode, and data maintenance performance in complex multi-user decision support scenarios.

TPC-DS adopts multi-dimensional schemas such as the star or snowflake schema. It contains seven fact tables and 17 dimension tables, with an average of 18 columns per table. Workloads for TPC-DS include 99 SQL queries, covering the core parts of SQL-1999 and SQL-2003 as well as OLAP. TPC-DS contains complex applications such as statistics collection on large data sets, report generation, online queries, and data mining. The test data and values are skewed, which is consistent with real data. TPC-DS is quite close to real scenarios, and it is also difficult to run the test.

Environment preparation

Prepare your testing environment based on the following requirements:

  • Java Development Kit (JDK): Use V1.8u131 or later.

  • Make: Run the yum install make command to install make.

  • GCC: Run the yum install gcc command to install GCC.

  • MySQL-devel: Run the yum install mysql-devel command to install MySQL-devel.

  • MySQL Connector/Python: Run the sudo yum install MySQL-python command to install MySQL Connector/Python.

  • PrettyTable: Run the pip install prettytable command to install PrettyTable.

  • Java Database Connectivity (JDBC): Use mysql-connector-java-5.1.47.

  • TPC-DS tools: Click here to download the tools.

  • OBClient: For more information, see OBClient Documentation.

  • OceanBase Database: For more information, see Quick start with OceanBase Database Community Edition.

  • IOPS: We recommend that the disk IOPS be above 10,000.

  • Tenant specifications:

    CREATE RESOURCE UNIT tpcds_unit max_cpu 30, memory_size '180g';
    CREATE RESOURCE POOL tpcds_pool unit = 'tpcds_unit', unit_num = 1, zone_list=('zone1','zone2','zone3');
    CREATE TENANT tpcds_mysql resource_pool_list=('tpcds_pool'),  zone_list('zone1', 'zone2', 'zone3'), primary_zone=RANDOM, locality='F@zone1,F@zone2,F@zone3' set variables ob_compatibility_mode='mysql', ob_tcp_invited_nodes='%',secure_file_priv = '';
    

Notice

  • The tenant specifications mentioned above are based on the hardware configuration in the TPC-DS benchmark report. You need to adjust the specifications based on the hardware configurations of your database.
  • When deploying a cluster, it is recommended not to use the obd cluster autodeploy command. This command prioritizes stability and does not maximize resource utilization (for example, it does not use all available memory). It is advisable to optimize the configuration file separately to maximize resource utilization.

Cluster deployment

  1. This test requires a total of four servers. Deploy TPC-DS on one server for stress testing, and set up the OceanBase cluster on the remaining three servers in a 1:1:1 configuration.

    Note

    In the TPC-DS test, the server for deploying TPC-DS requires only four CPU cores and 16 GB of memory.

  2. After a successful deployment, create the tenants and users needed for the TPC-DS test. The sys tenant is a built-in system tenant for cluster management and do not use it to perform the test. Set the tenant's primary_zone to RANDOM, which indicates that the leader of new table partitions is randomly assigned to one of these three servers.

Manual TPC-DS test

Environment tuning

  1. OceanBase Database tuning.

    Run the obclient -h$host_ip -P$host_port -uroot@sys -A command under the system tenant and then execute the following statements:

    ALTER SYSTEM flush plan cache GLOBAL;
    ALTER system SET enable_sql_audit=false;
    select sleep(5);
    ALTER system SET enable_perf_event=false;
    ALTER system SET syslog_level='PERF';
    alter system set enable_record_trace_log=false;
    
  2. Tenant tuning.

    Run the obclient -h$host_ip -P$host_port -u$user@$tenant -p$password -A command as the test user. Then execute the following statements:

    SET GLOBAL ob_sql_work_area_percentage = 80;
    SET GLOBAL ob_query_timeout = 36000000000;
    SET GLOBAL ob_trx_timeout = 36000000000;
    SET GLOBAL max_allowed_packet = 67108864;
    # parallel_servers_target = max_cpu * server_num * 8
    SET GLOBAL parallel_servers_target = 624;
    

Set the default table format to column for a user tenant

Run the obclient -h$host_ip -P$host_port -u$user@$tenant -p$password -A command as the test user. Then execute the following statement:

alter system set default_table_store_format = 'column';

Install the TPC-DS tools

  1. Download TPC-DS tools. For more information, visit the TPC-DS Tools Download page.

  2. Unzip the package and enter the tools subdirectory of the TPC-DS directory.

    [wieck@localhost ~] $ unzip 49FA3DBA-FE6C-463C-952B-62B8E9D43372-TPC-DS-Tool.zip
    [wieck@localhost ~] $ cd DSGen-software-code-3.2.0rc1/tools
    
  3. Compile the file.

    [wieck@localhost tools] $ make
    

    After the file is compiled, executable binary files named dsdgen and dsqgen are generated in the tools subdirectory.

Generate data

You can generate 10 GB, 100 GB, or 1 TB of data as needed. The following example shows the command to generate 100 GB of data.

  1. Create a directory to store the data file.

    [wieck@localhost tools] $ mkdir test-ds
    
  2. Build test data.

    [wieck@localhost tools] $ ./dsdgen -sc 100 -dir test-ds -TERMINATE N
    
  3. Modify the test data.

    • Modify NULL values.

      If you use vertical lines (|) to separate fields, a,NULL,c,d,NULL is exported to a text file in the a||c|d| format. As a result, when you use the LOAD DATA statement to import data, an error will be returned indicating that the import fails. Therefore, the NULL values must be converted.

      [wieck@localhost tools] $ vim fix-null.sh
      #!/bin/bash
      # To replace the NULL value in the first field with `0`, replace `^|` with `0|`.
      # To replace the NULL value in the middle field with `0`, replace `||` with `|0|`.
      # To replace the NULL value in the last field with `0`, replace `|$` with `|0`.
      for s_f in `ls *dat`
      do
          echo "$s_f"
          i=1
          while [ `egrep '\|\||^\||\|$' $s_f |wc -l` -gt 0 ]
          do 
              echo $i
              sed 's/^|/0|/g;s/||/|0|/g;s/|$/|0/g' -i $s_f
              ((i++))
          done
      done
      
      [wieck@localhost tools] $ sh fix-null.sh
      
    • Modify date fields.

      [wieck@localhost tools] $ vim fix-date.sh
      for s_f in item.dat store.dat web_page.dat web_site.dat call_center.dat
      do
      # Replace NULL values of the first and second date fields with 0.
      sed 's/^\([A-Za-z0-9]*|[A-Za-z0-9]*\)|0|0|\(.*\)/\1|0000-00-00|0000-00-00|\2/' -i $s_f
      
      # Replace the NULL value of the second date field with 0.
      sed 's/^\([0-9A-Za-z]*|[A-Za-z0-9]*|[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\)|0|\(.*\)/\1|0000-00-00|\2/' -i $s_f
      
      # Replace the NULL value of the first date field with 0.
      sed 's/^\([0-9A-Za-z]*|[A-Za-z0-9]*\)|0|\([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}|.*\)/\1|0000-00-00|\2/' -i $s_f
      
      done
      
      [wieck@localhost tools] $ sh fix-date.sh
      

Generate SQL query statements

  1. Create a file to store test SQL statements.

    [wieck@localhost tools] $  mkdir sql-ds
    
  2. Use dsqgen to generate test SQL statements. Query template files are stored in the DSGen-software-code-3.2.0rc1/query_templates directory.

    1. Before you use dsqgen to generate test SQL statements, you must add define _END = "" to the target template file in the DSGen-software-code-3.2.0rc1/query_templates directory. Otherwise, an error will be returned. To generate test SQL statements, perform the following steps:

      1. Create an .sh file and write code into the file.

        [wieck@localhost tools] $ vim query.sh
        for i in `ls query*tpl`
        do 
            echo $i;  
            echo "define _END = \"\";" >> $i
        done
        
        [wieck@localhost tools] $ sh query.sh
        
    2. Use dsqgen to generate test SQL statements.

      [wieck@localhost tools] $ mkdir sql-ds
      [wieck@localhost tools] $ vim sql-ds.sh
      #!/bin/sh
      for i in `seq 1 99`
      do
      ./dsqgen -directory ../query_templates/ -template "query${i}.tpl" -dialect netezza  -output ./sql-ds/
      scp ./sql-ds/query_0.sql ./sql-ds/sql${i}.sql
      done
      
      [wieck@localhost tools] $ sh sql-ds.sh
      

      The return result is as follows:

      qgen2 Query Generator (Version 3.2.0)
      Copyright Transaction Processing Performance Council (TPC) 2001 - 2021
      Warning: This scale factor is valid for QUALIFICATION ONLY
      ......
      Copyright Transaction Processing Performance Council (TPC) 2001 - 2021
      qgen2 Query Generator (Version 3.2.0)
      Copyright Transaction Processing Performance Council (TPC) 2001 - 2021
      
  3. View the generated test file.

    [wieck@localhost tools] $  ls sql-ds/
    query_0.sql  sql17.sql  sql25.sql  sql33.sql  sql41.sql  sql5.sql   sql58.sql  sql66.sql  sql74.sql  sql82.sql  sql90.sql  sql99.sql
    sql1.sql     sql18.sql  sql26.sql  sql34.sql  sql42.sql  sql50.sql  sql59.sql  sql67.sql  sql75.sql  sql83.sql  sql91.sql
    sql10.sql    sql19.sql  sql27.sql  sql35.sql  sql43.sql  sql51.sql  sql6.sql   sql68.sql  sql76.sql  sql84.sql  sql92.sql
    sql11.sql    sql2.sql   sql28.sql  sql36.sql  sql44.sql  sql52.sql  sql60.sql  sql69.sql  sql77.sql  sql85.sql  sql93.sql
    sql12.sql    sql20.sql  sql29.sql  sql37.sql  sql45.sql  sql53.sql  sql61.sql  sql7.sql   sql78.sql  sql86.sql  sql94.sql
    sql13.sql    sql21.sql  sql3.sql   sql38.sql  sql46.sql  sql54.sql  sql62.sql  sql70.sql  sql79.sql  sql87.sql  sql95.sql
    sql14.sql    sql22.sql  sql30.sql  sql39.sql  sql47.sql  sql55.sql  sql63.sql  sql71.sql  sql8.sql   sql88.sql  sql96.sql
    sql15.sql    sql23.sql  sql31.sql  sql4.sql   sql48.sql  sql56.sql  sql64.sql  sql72.sql  sql80.sql  sql89.sql  sql97.sql
    sql16.sql    sql24.sql  sql32.sql  sql40.sql  sql49.sql  sql57.sql  sql65.sql  sql73.sql  sql81.sql  sql9.sql   sql98.sql
    
  4. Modify the SQL query statements.

    • Specify the execution concurrency

      You can execute the following statement in the sys tenant to view the total number of available CPU cores for a tenant:

      obclient> SELECT sum(cpu_capacity_max) FROM oceanbase.__all_virtual_server;
      

      Here is a sample SQL query statement sql1 after modification:

      with customer_total_return as
      (select /*+    parallel(96) */ sr_customer_sk as ctr_customer_sk --- Specify the execution concurrency.
      ,sr_store_sk as ctr_store_sk
      ,sum(SR_FEE) as ctr_total_return
      from store_returns
      ,date_dim
      where sr_returned_date_sk = d_date_sk
      and d_year =2000
      group by sr_customer_sk
      ,sr_store_sk)
      select  c_customer_id
      from customer_total_return ctr1
      ,store
      ,customer
      where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2
      from customer_total_return ctr2
      where ctr1.ctr_store_sk = ctr2.ctr_store_sk)
      and s_store_sk = ctr1.ctr_store_sk
      and s_state = 'TN'
      and ctr1.ctr_customer_sk = c_customer_sk
      order by c_customer_id
      limit 100;
      
    • Modify the date functions in the SQL query statements.

      Change the (cast('2002-08-04' as date) + 30 days) function to the date_add(cast('2002-08-04' as date),interval 30 day) or (cast('2002-08-04' as date) + INTERVAL 30 day) function. Change the (cast ('2002-05-18' as date) - 30 days) function to the date_sub(cast ('2002-05-18' as date),interval 30 day) or (cast('2002-08-04' as date) - INTERVAL 30 day) function.

      Here is a sample SQL query statement with a date function after modification:

      select  i_item_id
          ,i_item_desc
          ,i_current_price
      from item, inventory, date_dim, catalog_sales
      where i_current_price between 22 and 22 + 30
      and inv_item_sk = i_item_sk
      and d_date_sk=inv_date_sk
      and d_date between cast('2001-06-02' as date) and (cast('2001-06-02' as date) + INTERVAL 60 day)  ----- Modify the date function.
      and i_manufact_id in (678,964,918,849)
      and inv_quantity_on_hand between 100 and 500
      and cs_item_sk = i_item_sk
      group by i_item_id,i_item_desc,i_current_price
      order by i_item_id
      limit 100;
      
    • Modify the syntax of the rollup function in the SQL query statements.

      Change the syntax of the rollup function to group by <col_name> with rollup.

      Here is a sample SQL query statement with the rollup function after modification:

      select  i_item_id,
              ca_country,
              ca_state,
              ca_county,
              avg( cast(cs_quantity as decimal(12,2))) agg1,
              avg( cast(cs_list_price as decimal(12,2))) agg2,
              avg( cast(cs_coupon_amt as decimal(12,2))) agg3,
              avg( cast(cs_sales_price as decimal(12,2))) agg4,
              avg( cast(cs_net_profit as decimal(12,2))) agg5,
              avg( cast(c_birth_year as decimal(12,2))) agg6,
              avg( cast(cd1.cd_dep_count as decimal(12,2))) agg7
      from catalog_sales, customer_demographics cd1,
          customer_demographics cd2, customer, customer_address, date_dim, item
      where cs_sold_date_sk = d_date_sk and
          cs_item_sk = i_item_sk and
          cs_bill_cdemo_sk = cd1.cd_demo_sk and
          cs_bill_customer_sk = c_customer_sk and
          cd1.cd_gender = 'M' and
          cd1.cd_education_status = 'College' and
          c_current_cdemo_sk = cd2.cd_demo_sk and
          c_current_addr_sk = ca_address_sk and
          c_birth_month in (9,5,12,4,1,10) and
          d_year = 2001 and
          ca_state in ('ND','WI','AL'
                      ,'NC','OK','MS','TN')
      group by i_item_id, ca_country, ca_state, ca_county with rollup
      order by ca_country,
              ca_state,
              ca_county,
              i_item_id
      limit 100;
      

Create tables

Create a schema file named create_tpcds_mysql_table_part.ddl.

[wieck@localhost tools] $ mkdir load
[wieck@localhost tools] $ cd load
[wieck@localhost load] $ vim create_tpcds_mysql_table_part.ddl
SET global NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS';
SET global NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS.FF';
SET global NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZR TZD';

set global ob_query_timeout=10800000000;
set global ob_trx_timeout=10000000000;

set global ob_sql_work_area_percentage=80;

set global optimizer_use_sql_plan_baselines = true;
set global optimizer_capture_sql_plan_baselines = true;

alter system set ob_enable_batched_multi_statement='true';

set global parallel_servers_target=10000;

create tablegroup if not exists tpcds_tg_catalog_group_range binding true partition by hash partitions 128;
create tablegroup if not exists tpcds_tg_store_group_range_72_hash binding true 
partition by range columns 1 subpartition BY hash subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue));

create table dbgen_version
(
    dv_version                varchar(16)                   ,
    dv_create_date            date                          ,
    dv_create_time            varchar(20)                   ,
    dv_cmdline_args           varchar(200)
);

CREATE TABLE customer_address
(
 ca_address_sk      bigint NOT NULL,
 ca_address_id      varchar(16) NOT NULL,
 ca_street_number   varchar(10),
 ca_street_name     varchar(60),
 ca_street_type     varchar(15),
 ca_suite_number    varchar(10),
 ca_city        varchar(60),
 ca_county      varchar(30),
 ca_state       varchar(2),
 ca_zip         varchar(10),
 ca_country         varchar(20),
 ca_gmt_offset      decimal(5,2),
 ca_location_type   varchar(20),
 primary key(ca_address_sk)
) partition by hash (ca_address_sk) partitions 128;

create table customer_demographics
(
 cd_demo_sk                bigint not null,
 cd_gender                 char(1),
 cd_marital_status         char(1),
 cd_education_status       char(20),
 cd_purchase_estimate      int,
 cd_credit_rating          char(10),
 cd_dep_count              int,
 cd_dep_employed_count     int,
 cd_dep_college_count      int,
 primary key(cd_demo_sk)
) partition by hash (cd_demo_sk) partitions 128;

create table date_dim
(
 d_date_sk                 bigint not null,
 d_date_id                 char(16) not null,
 d_date                    date,
 d_month_seq               int,
 d_week_seq                int,
 d_quarter_seq             int,
 d_year                    int,
 d_dow                     int,
 d_moy                     int,
 d_dom                     int,
 d_qoy                     int,
 d_fy_year                 int,
 d_fy_quarter_seq          int,
 d_fy_week_seq             int,
 d_day_name                char(9),
 d_quarter_name            char(6),
 d_holiday                 char(1),
 d_weekend                 char(1),
 d_following_holiday       char(1),
 d_first_dom               int,
 d_last_dom                int,
 d_same_day_ly             int,
 d_same_day_lq             int,
 d_current_day             char(1),
 d_current_week            char(1),
 d_current_month           char(1),
 d_current_quarter         char(1),
 d_current_year            char(1),
 primary key(d_date_sk)
);

create table warehouse
(
 w_warehouse_sk            bigint not null,
 w_warehouse_id            char(16) not null,
 w_warehouse_name          varchar(20),
 w_warehouse_sq_ft         int,
 w_street_number           char(10),
 w_street_name             varchar(60),
 w_street_type             char(15),
 w_suite_number            char(10),
 w_city                    varchar(60),
 w_county                  varchar(30),
 w_state                   char(2),
 w_zip                     char(10),
 w_country                 varchar(20),
 w_gmt_offset              decimal(5,2),
 primary key(w_warehouse_sk)
 );

create table ship_mode
(
    sm_ship_mode_sk           bigint,
    sm_ship_mode_id           char(16) not null,
    sm_type                   char(30),
    sm_code                   char(10),
    sm_carrier                char(20),
    sm_contract               char(20),
    primary key(sm_ship_mode_sk)
) ;

create table time_dim
(
 t_time_sk                 bigint not null,
 t_time_id                 char(16) not null,
 t_time                    int,
 t_hour                    int,
 t_minute                  int,
 t_second                  int,
 t_am_pm                   char(2),
 t_shift                   char(20),
 t_sub_shift               char(20),
 t_meal_time               char(20),
 primary key(t_time_sk)
 );

create table reason
(
    r_reason_sk     bigint not null,
    r_reason_id     char(16) not null,
    r_reason_desc   char(100),
    PRIMARY key(r_reason_sk)
);

create table income_band
(
 ib_income_band_sk         bigint not null,
 ib_lower_bound            int,
 ib_upper_bound            int,
 PRIMARY key(ib_income_band_sk)
);

create table item
(
 i_item_sk                 bigint not null,
 i_item_id                 char(16) not null,
 i_rec_start_date          date,
 i_rec_end_date            date,
 i_item_desc               varchar(200),
 i_current_price           decimal(7,2),
 i_wholesale_cost          decimal(7,2),
 i_brand_id                int,
 i_brand                   char(50),
 i_class_id                int,
 i_class                   char(50),
 i_category_id             int,
 i_category                char(50),
 i_manufact_id             int,
 i_manufact                char(50),
 i_size                    char(20),
 i_formulation             char(20),
 i_color                   char(20),
 i_units                   char(10),
 i_container               char(10),
 i_manager_id              int,
 i_product_name            char(50),
 PRIMARY key(i_item_sk)
) ;

create table store
(
 s_store_sk                bigint not null,
 s_store_id                char(16) not null,
 s_rec_start_date          date,
 s_rec_end_date            date,
 s_closed_date_sk          bigint,
 s_store_name              varchar(50),
 s_number_employees        int,
 s_floor_space             int,
 s_hours                   char(20),
 s_manager                 varchar(40),
 s_market_id               int,
 s_geography_class         varchar(100),
 s_market_desc             varchar(100),
 s_market_manager          varchar(40),
 s_division_id             int,
 s_division_name           varchar(50),
 s_company_id              int,
 s_company_name            varchar(50),
 s_street_number           varchar(10),
 s_street_name             varchar(60),
 s_street_type             char(15),
 s_suite_number            char(10),
 s_city                    varchar(60),
 s_county                  varchar(30),
 s_state                   char(2),
 s_zip                     char(10),
 s_country                 varchar(20),
 s_gmt_offset              decimal(5,2),
 s_tax_percentage          decimal(5,2),
 PRIMARY key(s_store_sk)
);

create table call_center
(
 cc_call_center_sk             bigint not null,
 cc_call_center_id             char(16) not null,
 cc_rec_start_date             date,
 cc_rec_end_date               date,
 cc_closed_date_sk             bigint,
 cc_open_date_sk               bigint,
 cc_name                       varchar(50),
 cc_class                      varchar(50),
 cc_employees                  int,
 cc_sq_ft                      int,
 cc_hours                      char(20),
 cc_manager                    varchar(40),
 cc_mkt_id                     int,
 cc_mkt_class                  char(50),
 cc_mkt_desc                   varchar(100),
 cc_market_manager             varchar(40),
 cc_division                   int,
 cc_division_name              varchar(50),
 cc_company                    int,
 cc_company_name               char(50),
 cc_street_number              char(10),
 cc_street_name                varchar(60),
 cc_street_type                char(15),
 cc_suite_number               char(10),
 cc_city                       varchar(60),
 cc_county                     varchar(30),
 cc_state                      char(2),
 cc_zip                        char(10),
 cc_country                    varchar(20),
 cc_gmt_offset                 decimal(5,2),
 cc_tax_percentage             decimal(5,2),
 PRIMARY key(cc_call_center_sk)
);

CREATE TABLE customer
(
  c_customer_sk         bigint NOT NULL,
  c_customer_id         char(16) NOT NULL,
  c_current_cdemo_sk        bigint,
  c_current_hdemo_sk        bigint,
  c_current_addr_sk         bigint,
  c_first_shipto_date_sk    bigint,
  c_first_sales_date_sk     bigint,
  c_salutation          char(10),
  c_first_name          char(20),
  c_last_name           char(30),
  c_preferred_cust_flag     char(1),
  c_birth_day           int,
  c_birth_month         int,
  c_birth_year          int,
  c_birth_country       varchar(20),
  c_login           char(13),
  c_email_address       char(50),
  c_last_review_date_sk     bigint,
  PRIMARY key(c_customer_sk)
)partition by hash (c_customer_sk) partitions 128;

create table web_site
(
 web_site_sk               bigint not null,
 web_site_id               char(16) not null,
 web_rec_start_date        date,
 web_rec_end_date          date,
 web_name                  varchar(50),
 web_open_date_sk          bigint,
 web_close_date_sk         bigint,
 web_class                 varchar(50),
 web_manager               varchar(40),
 web_mkt_id                int,
 web_mkt_class             varchar(50),
 web_mkt_desc              varchar(100),
 web_market_manager        varchar(40),
 web_company_id            int,
 web_company_name          char(50),
 web_street_number         char(10),
 web_street_name           varchar(60),
 web_street_type           char(15),
 web_suite_number          char(10),
 web_city                  varchar(60),
 web_county                varchar(30),
 web_state                 char(2),
 web_zip                   char(10),
 web_country               varchar(20),
 web_gmt_offset            decimal(5,2),
 web_tax_percentage        decimal(5,2),
 PRIMARY key(web_site_sk)
);

create table store_returns
(
 sr_returned_date_sk       bigint,
 sr_return_time_sk         bigint,
 sr_item_sk                bigint not null,
 sr_customer_sk            bigint,
 sr_cdemo_sk               bigint,
 sr_hdemo_sk               bigint,
 sr_addr_sk                bigint,
 sr_store_sk               bigint,
 sr_reason_sk              bigint,
 sr_ticket_number          bigint not null,
 sr_return_quantity        int,
 sr_return_amt             decimal(7,2),
 sr_return_tax             decimal(7,2),
 sr_return_amt_inc_tax     decimal(7,2),
 sr_fee                    decimal(7,2),
 sr_return_ship_cost       decimal(7,2),
 sr_refunded_cash          decimal(7,2),
 sr_reversed_charge        decimal(7,2),
 sr_store_credit           decimal(7,2),
 sr_net_loss               decimal(7,2)
)
partition by range (sr_returned_date_sk)
subpartition BY hash(sr_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue));

create table household_demographics
(
 hd_demo_sk                bigint not null,
 hd_income_band_sk         bigint,
 hd_buy_potential          char(15),
 hd_dep_count              int,
 hd_vehicle_count          int,
 PRIMARY key(hd_demo_sk)
);

create table web_page
(
 wp_web_page_sk            bigint not null,
 wp_web_page_id            char(16) not null,
 wp_rec_start_date         date,
 wp_rec_end_date           date,
 wp_creation_date_sk       bigint,
 wp_access_date_sk         bigint,
 wp_autogen_flag           char(1),
 wp_customer_sk            bigint,
 wp_url                    varchar(100),
 wp_type                   char(50),
 wp_char_count             int,
 wp_link_count             int,
 wp_image_count            int,
 wp_max_ad_count           int,
 PRIMARY key(wp_web_page_sk)
);

create table promotion
(
 p_promo_sk                bigint not null,
 p_promo_id                char(16) not null,
 p_start_date_sk           bigint,
 p_end_date_sk             bigint,
 p_item_sk                 bigint,
 p_cost                    decimal(15,2),
 p_response_target         int,
 p_promo_name              char(50),
 p_channel_dmail           char(1),
 p_channel_email           char(1),
 p_channel_catalog         char(1),
 p_channel_tv              char(1),
 p_channel_radio           char(1),
 p_channel_press           char(1),
 p_channel_event           char(1),
 p_channel_demo            char(1),
 p_channel_details         varchar(100),
 p_purpose                 char(15),
 p_discount_active         char(1),
 PRIMARY key(p_promo_sk)
);

create table catalog_page
(
 cp_catalog_page_sk     bigint not null,
 cp_catalog_page_id     varchar(16) not null,
 cp_start_date_sk   bigint,
 cp_end_date_sk     bigint,
 cp_department      varchar(50),
 cp_catalog_number  int,
 cp_catalog_page_number int,
 cp_description     varchar(100),
 cp_type        varchar(100),
 primary key(cp_catalog_page_sk)
 );

create table inventory
(
 inv_date_sk               bigint not null,
 inv_item_sk               bigint not null,
 inv_warehouse_sk          bigint not null,
 inv_quantity_on_hand      int
)
partition by range (inv_date_sk)
subpartition BY hash(inv_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue));

create table catalog_returns
(
 cr_returned_date_sk        bigint,
 cr_returned_time_sk        bigint,
 cr_item_sk             bigint not null,
 cr_refunded_customer_sk    bigint,
 cr_refunded_cdemo_sk       bigint,
 cr_refunded_hdemo_sk       bigint,
 cr_refunded_addr_sk        bigint,
 cr_returning_customer_sk   bigint,
 cr_returning_cdemo_sk      bigint,
 cr_returning_hdemo_sk      bigint,
 cr_returning_addr_sk       bigint,
 cr_call_center_sk      bigint,
 cr_catalog_page_sk         bigint ,
 cr_ship_mode_sk        bigint ,
 cr_warehouse_sk        bigint ,
 cr_reason_sk           bigint ,
 cr_order_number        bigint not null,
 cr_return_quantity         int,
 cr_return_amount       decimal(7,2),
 cr_return_tax          decimal(7,2),
 cr_return_amt_inc_tax      decimal(7,2),
 cr_fee             decimal(7,2),
 cr_return_ship_cost        decimal(7,2),
 cr_refunded_cash       decimal(7,2),
 cr_reversed_charge         decimal(7,2),
 cr_store_credit        decimal(7,2),
 cr_net_loss            decimal(7,2)
)
tablegroup = tpcds_tg_catalog_group_range
partition by hash(cr_item_sk) partitions 128
;

create table web_returns
(
 wr_returned_date_sk       bigint,
 wr_returned_time_sk       bigint,
 wr_item_sk                bigint not null,
 wr_refunded_customer_sk   bigint,
 wr_refunded_cdemo_sk      bigint,
 wr_refunded_hdemo_sk      bigint,
 wr_refunded_addr_sk       bigint,
 wr_returning_customer_sk  bigint,
 wr_returning_cdemo_sk     bigint,
 wr_returning_hdemo_sk     bigint,
 wr_returning_addr_sk      bigint,
 wr_web_page_sk            bigint,
 wr_reason_sk              bigint,
 wr_order_number           bigint not null,
 wr_return_quantity        int,
 wr_return_amt             decimal(7,2),
 wr_return_tax             decimal(7,2),
 wr_return_amt_inc_tax     decimal(7,2),
 wr_fee                    decimal(7,2),
 wr_return_ship_cost       decimal(7,2),
 wr_refunded_cash          decimal(7,2),
 wr_reversed_charge        decimal(7,2),
 wr_account_credit         decimal(7,2),
 wr_net_loss               decimal(7,2)
)
partition by range(wr_returned_date_sk) 
subpartition BY hash(wr_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue))
;

create table web_sales
(
 ws_sold_date_sk           bigint,
 ws_sold_time_sk           bigint,
 ws_ship_date_sk           bigint,
 ws_item_sk                bigint not null,
 ws_bill_customer_sk       bigint,
 ws_bill_cdemo_sk          bigint,
 ws_bill_hdemo_sk          bigint,
 ws_bill_addr_sk           bigint,
 ws_ship_customer_sk       bigint,
 ws_ship_cdemo_sk          bigint,
 ws_ship_hdemo_sk          bigint,
 ws_ship_addr_sk           bigint,
 ws_web_page_sk            bigint,
 ws_web_site_sk            bigint,
 ws_ship_mode_sk           bigint,
 ws_warehouse_sk           bigint,
 ws_promo_sk               bigint,
 ws_order_number           bigint not null,
 ws_quantity               int,
 ws_wholesale_cost         decimal(7,2),
 ws_list_price             decimal(7,2),
 ws_sales_price            decimal(7,2),
 ws_ext_discount_amt       decimal(7,2),
 ws_ext_sales_price        decimal(7,2),
 ws_ext_wholesale_cost     decimal(7,2),
 ws_ext_list_price         decimal(7,2),
 ws_ext_tax                decimal(7,2),
 ws_coupon_amt             decimal(7,2),
 ws_ext_ship_cost          decimal(7,2),
 ws_net_paid               decimal(7,2),
 ws_net_paid_inc_tax       decimal(7,2),
 ws_net_paid_inc_ship      decimal(7,2),
 ws_net_paid_inc_ship_tax  decimal(7,2),
 ws_net_profit             decimal(7,2)
) 
partition by range (ws_sold_date_sk) 
subpartition BY hash(ws_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue))
;

create table catalog_sales
(
 cs_sold_date_sk           bigint,
 cs_sold_time_sk           bigint,
 cs_ship_date_sk           bigint,
 cs_bill_customer_sk       bigint,
 cs_bill_cdemo_sk          bigint,
 cs_bill_hdemo_sk          bigint,
 cs_bill_addr_sk           bigint,
 cs_ship_customer_sk       bigint,
 cs_ship_cdemo_sk          bigint,
 cs_ship_hdemo_sk          bigint,
 cs_ship_addr_sk           bigint,
 cs_call_center_sk         bigint,
 cs_catalog_page_sk        bigint,
 cs_ship_mode_sk           bigint,
 cs_warehouse_sk           bigint,
 cs_item_sk                bigint not null,
 cs_promo_sk               bigint,
 cs_order_number           bigint not null,
 cs_quantity               int,
 cs_wholesale_cost         decimal(7,2),
 cs_list_price             decimal(7,2),
 cs_sales_price            decimal(7,2),
 cs_ext_discount_amt       decimal(7,2),
 cs_ext_sales_price        decimal(7,2),
 cs_ext_wholesale_cost     decimal(7,2),
 cs_ext_list_price         decimal(7,2),
 cs_ext_tax                decimal(7,2),
 cs_coupon_amt             decimal(7,2),
 cs_ext_ship_cost          decimal(7,2),
 cs_net_paid               decimal(7,2),
 cs_net_paid_inc_tax       decimal(7,2),
 cs_net_paid_inc_ship      decimal(7,2),
 cs_net_paid_inc_ship_tax  decimal(7,2),
 cs_net_profit             decimal(7,2)
 )
partition by range (cs_sold_date_sk) 
subpartition BY hash(cs_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue));

create table store_sales
(
 ss_sold_date_sk           bigint,
 ss_sold_time_sk           bigint,
 ss_item_sk                bigint not null,
 ss_customer_sk            bigint,
 ss_cdemo_sk               bigint,
 ss_hdemo_sk               bigint,
 ss_addr_sk                bigint,
 ss_store_sk               bigint,
 ss_promo_sk               bigint,
 ss_ticket_number          bigint not null,
 ss_quantity               int,
 ss_wholesale_cost         decimal(7,2),
 ss_list_price             decimal(7,2),
 ss_sales_price            decimal(7,2),
 ss_ext_discount_amt       decimal(7,2),
 ss_ext_sales_price        decimal(7,2),
 ss_ext_wholesale_cost     decimal(7,2),
 ss_ext_list_price         decimal(7,2),
 ss_ext_tax                decimal(7,2),
 ss_coupon_amt             decimal(7,2),
 ss_net_paid               decimal(7,2),
 ss_net_paid_inc_tax       decimal(7,2),
 ss_net_profit             decimal(7,2)
)
partition by range(ss_sold_date_sk) 
subpartition BY hash(ss_item_sk) subpartitions 64
(partition part_1 values less than (2450846), 
partition part_2 values less than (2450874), 
partition part_3 values less than (2450905), 
partition part_4 values less than (2450935), 
partition part_5 values less than (2450966), 
partition part_6 values less than (2450996), 
partition part_7 values less than (2451027), 
partition part_8 values less than (2451058), 
partition part_9 values less than (2451088), 
partition part_10 values less than (2451119),
partition part_11 values less than (2451149),
partition part_12 values less than (2451180),
partition part_13 values less than (2451211),
partition part_14 values less than (2451239),
partition part_15 values less than (2451270),
partition part_16 values less than (2451300),
partition part_17 values less than (2451331),
partition part_18 values less than (2451361),
partition part_19 values less than (2451392),
partition part_20 values less than (2451423),
partition part_21 values less than (2451453),
partition part_22 values less than (2451484),
partition part_23 values less than (2451514),
partition part_24 values less than (2451545),
partition part_25 values less than (2451576),
partition part_26 values less than (2451605),
partition part_27 values less than (2451636),
partition part_28 values less than (2451666),
partition part_29 values less than (2451697),
partition part_30 values less than (2451727),
partition part_31 values less than (2451758),
partition part_32 values less than (2451789),
partition part_33 values less than (2451819),
partition part_34 values less than (2451850),
partition part_35 values less than (2451880),
partition part_36 values less than (2451911),
partition part_37 values less than (2451942),
partition part_38 values less than (2451970),
partition part_39 values less than (2452001),
partition part_40 values less than (2452031),
partition part_41 values less than (2452062),
partition part_42 values less than (2452092),
partition part_43 values less than (2452123),
partition part_44 values less than (2452154),
partition part_45 values less than (2452184),
partition part_46 values less than (2452215),   
partition part_47 values less than (2452245),
partition part_48 values less than (2452276),
partition part_49 values less than (2452307),
partition part_50 values less than (2452335),
partition part_51 values less than (2452366),
partition part_52 values less than (2452396),
partition part_53 values less than (2452427),
partition part_54 values less than (2452457),
partition part_55 values less than (2452488),
partition part_56 values less than (2452519),
partition part_57 values less than (2452549),
partition part_58 values less than (2452580),
partition part_59 values less than (2452610),
partition part_60 values less than (2452641),
partition part_61 values less than (2452672),
partition part_62 values less than (2452700),
partition part_63 values less than (2452731),
partition part_64 values less than (2452761),
partition part_65 values less than (2452792),
partition part_66 values less than (2452822),
partition part_67 values less than (2452853),
partition part_68 values less than (2452884),
partition part_69 values less than (2452914),
partition part_70 values less than (2452945),
partition part_71 values less than (2452975),
partition part_72 values less than (2453006),
partition part_73 values less than (maxvalue));

Load data

You can write scripts based on the data and SQL query statements generated in the preceding steps. As an example, you can take the following steps to load data:

  1. Create a script named load.py.

    [wieck@localhost load] $ vim load.py
    
    #!/usr/bin/env python
    #-*- encoding:utf-8 -*-
    import os
    import sys
    import time
    import commands
    hostname='$host_ip'  # Notice! ! You need to specify the IP address of an OBServer node, such as OBServer node A.
    port='$host_port'               # The port number of OBServer node A.
    tenant='$tenant_name'              # The tenant name.
    user='$user'               # The username.
    password='$password'           # The password.
    data_path='$path'         # Notice! ! You need to specify the directory of tbl on OBServer node A.
    db_name='$db_name'             # The database name.
    # Create a table
    cmd_str='obclient -h%s -P%s -u%s@%s -p%s -D%s < create_tpcds_mysql_table_part.ddl'%(hostname,port,user,tenant,password,db_name)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str='obclient -h%s -P%s -u%s@%s -p%s  -D%s -e "show tables;" '%(hostname,port,user,tenant,password,db_name)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/dbgen_version.dat' into table dbgen_version fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/customer_address.dat' into table customer_address fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c -D%s -e "load data /*+ parallel(80) */ infile '%s/customer_demographics.dat' into table customer_demographics fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/date_dim.dat' into table date_dim fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s   -D%s -e "load data /*+ parallel(80) */ infile '%s/warehouse.dat' into table warehouse fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/ship_mode.dat' into table ship_mode fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/time_dim.dat' into table time_dim fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/reason.dat' into table reason fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/income_band.dat' into table income_band fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/item.dat' into table item fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c -D%s -e "load data /*+ parallel(80) */ infile '%s/store.dat' into table store fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/call_center.dat' into table call_center fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s   -D%s -e "load data /*+ parallel(80) */ infile '%s/customer.dat' into table customer fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/web_site.dat' into table web_site fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/store_returns.dat' into table store_returns fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/household_demographics.dat' into table household_demographics fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/web_page.dat' into table web_page fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/promotion.dat' into table promotion fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c -D%s -e "load data /*+ parallel(80) */ infile '%s/catalog_page.dat' into table catalog_page fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/inventory.dat' into table inventory fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s   -D%s -e "load data /*+ parallel(80) */ infile '%s/catalog_returns.dat' into table catalog_returns fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/web_returns.dat' into table web_returns fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/web_sales.dat' into table web_sales fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/catalog_sales.dat' into table catalog_sales fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    cmd_str=""" obclient -h%s -P%s -u%s@%s -p%s -c  -D%s -e "load data /*+ parallel(80) */ infile '%s/store_sales.dat' into table store_sales fields terminated by '|';" """ %(hostname,port,user,tenant,password,db_name,data_path)
    result = commands.getstatusoutput(cmd_str)
    print result
    
  2. Load the data.

    Notice

    To load data, you need to install the OBClient.

    [wieck@localhost load] $ python load.py
    
  3. Perform a major compaction.

    Log in to the test tenant and perform a major compaction.

    obclient > ALTER SYSTEM SET undo_retention = 100;
    obclient > ALTER SYSTEM MAJOR FREEZE;
    
  4. Check whether the major compaction is complete.

    SELECT * FROM oceanbase.DBA_OB_ZONE_MAJOR_COMPACTION\G
    

    The return result is as follows:

    *************************** 1. row ***************************
                ZONE: zone1
      BROADCAST_SCN: 1716172011046213913
            LAST_SCN: 1716172011046213913
    LAST_FINISH_TIME: 2024-05-20 10:35:07.829496
          START_TIME: 2024-05-20 10:26:51.579881
              STATUS: IDLE
    1 row in set
    

    If the value of STATUS is IDLE and the values of BROADCAST_SCN and LAST_SCN are equal, the major compaction is complete.

  5. Manually collect statistics.

    Run the obclient -h$host_ip -P$host_port -u$user@$tenant -p$password -A -D$database command as the test user. Then execute the following statements:

    call dbms_stats.gather_table_stats(NULL, 'date_dim', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'warehouse', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'ship_mode', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'time_dim', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'reason', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'income_band', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'item', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'store', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'call_center', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'web_site', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'household_demographics', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'web_page', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'promotion', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'catalog_page', degree=>128, granularity=>'AUTO', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'inventory', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'web_sales', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'catalog_sales', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'store_sales', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'catalog_returns', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'web_returns', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'store_returns', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'customer_address', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'customer_demographics', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    call dbms_stats.gather_table_stats(NULL, 'customer', degree=>128, granularity=>'GLOBAL', method_opt=>'FOR ALL COLUMNS SIZE 128');
    

Run the test

You can write scripts based on the data and SQL query statements generated in the preceding steps. As an example, you can take the following steps to perform the test:

  1. Write a script named tpcds.sh in the sql-ds directory.

    [wieck@localhost queries] $ vim tpcds.sh
    
      #!/bin/bash
      TPCDS_TEST="obclient -h $host_ip -P $host_port -utpcds_100g_part@tpcds_mysql  -D tpcds_100g_part  -ptest -c"
      # Run a warmup.
      for i in {1..99}
      do
          sql1="source sql${i}.sql"
          echo $sql1| $TPCDS_TEST >db${i}.log  || ret=1
      done
      # Run the formal test.
      for i in {1..99}
      do
          starttime=`date +%s%N`
          echo `date  '+[%Y-%m-%d %H:%M:%S]'` "BEGIN Q${i}"
          sql1="source sql${i}.sql"
          echo $sql1| $TPCDS_TEST >db${i}.log  || ret=1
          stoptime=`date +%s%N`
          costtime=`echo $stoptime $starttime | awk '{printf "%0.2f\n", ($1 - $2) / 1000000000}'`
          echo `date  '+[%Y-%m-%d %H:%M:%S]'` "END,COST ${costtime}s"
      done
    
  2. Run the test script.

    sh tpcds.sh
    

Previous topic

TPC-H benchmark report
Last

Next topic

TPC-DS benchmark report
Next
What is on this page
What is TPC-DS?
Environment preparation
Cluster deployment
Manual TPC-DS test
Environment tuning
Set the default table format to column for a user tenant
Install the TPC-DS tools
Generate data
Generate SQL query statements
Create tables
Load data
Run the test