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 Cloud Platform

V4.3.5

  • Document Overview
  • Product Introduction
    • What is OceanBase Cloud Platform?
    • Differences between Enterprise Edition and Community Edition
    • System architecture
    • Features
    • Limits
      • Dependencies
      • System requirements
  • Deploy OceanBase Cloud Platform (OCP)
    • Deploy OceanBase Cloud Platform (OCP) Community Edition
      • Installation process
      • Prepare for the installation
      • Overview
      • Post-deployment check
      • Use Docker to deploy OCP
      • Deploy OCP on the GUI
      • Installation planning
        • Host planning
        • Port planning
        • User planning
        • Disk and directory planning
      • Appendix
        • Install Docker
        • Restart OCP
        • FAQ about deployment
        • Uninstall OCP
    • Deploy OceanBase Cloud Platform (OCP) Enterprise Edition
      • Deploy OCP
        • Check after deployment
        • Deploy OCP
          • Deploying a high availability of OCP
            • Create MetaDB
            • Initialize system parameters
            • Register an OCP cluster
            • Prepare installation media
            • Install OCP
          • Deploying a single point of OCP
            • Initialize system parameters
            • Install OCP
            • Prepare installation media
            • Create MetaDB
        • Plan resources
          • Planning resources of a high availability OCP
            • MonitorDB resources
            • Host resources
            • MetaDB resources
            • OCP-Server specifications
          • Planning resources of a single node OCP
            • MonitorDB resources
            • OCP-Server specifications
            • Host resources
            • MetaDB resources
      • Deployment FAQ
        • Ubuntu deployment FAQ
        • Client requirements
        • Start and stop OCP
        • Optimize MonitorDB parameters
        • EulerOS deployment FAQ
        • F5 Big-IP LTM and alert configuration
          • Monitor the OCP service health
          • Connect OBProxy to F5 Big-IP LTM
          • Connect OCP-Console to F5 Big-IP LTM
      • Prepare the deployment environment
        • Add a server
        • Check the environment
        • Install OAT
      • Appendix
        • Check the NTP offset
        • Uninstall OCP
      • Deployment overview
        • Deploy OCP cluster in the High-availability
        • Deploy OCP cluster in the Single-node
  • Upgrade OceanBase Cloud Platform (OCP)
    • Upgrade OceanBase Cloud Platform (OCP) Enterprise Edition
      • Overview
      • Considerations
      • Preparations
      • Appendix
        • Version mapping
        • Change a user's password
      • Verify after upgrade
        • Verify the task feature
        • Verify the software package feature
        • Verify the password box feature
        • Verify the host feature
        • Verify the cluster feature
        • Verify the OBProxy feature
        • Verify the tenant feature
        • Verify the alert feature
        • Verify the backup and restore feature
      • Upgrade OCP
        • Upgrade OCP
        • Take over OCP
    • Upgrade OceanBase Cloud Platform (OCP) Community Edition
      • Post-upgrade check
      • Upgrade OCP on the GUI
      • Upgrade OCP using Docker containers
  • Quick Start
    • Log on to the OCP console
    • Create a user
    • OCP operations
    • Create an OBProxy cluster
    • Create a tenant
    • Create a cluster
    • Add a host
    • Upload a software package
  • Cluster Management
    • Upgrade an OceanBase cluster
    • View the topology of a cluster
    • Overview of cluster tenant management
    • Overview
    • Manage cluster parameter templates
    • Manage clusters
      • Disable automatic detection of deadlocks
      • Change the password
      • Restart a cluster
      • Delete a cluster
      • Take over a cluster
      • Stop a cluster
      • Move out a cluster
      • Enable automatic detection of deadlocks
      • Create a standby cluster
      • Upgrade a standalone centralized database to a distributed cluster
      • Manage CPU binding configurations
      • View the details of a cluster
      • Manage Arbitration Service of a cluster
        • Add an arbitration service group
        • Remove an arbitration service
        • Add an arbitration service
        • Replace the arbitration service for a cluster
      • Manage O&M configuration
        • Manage parameters
        • Configure resources for OCP Agent
        • Overview
        • View the parameter modification history
    • Manage Service Groups
      • Edit an arbitration service group
      • Create an arbitration service group
      • Delete an arbitration service group
      • Overview
      • Upgrade an arbitration service group
    • Manage OBServers of a cluster
      • Stop the observer process
      • Restart a faulty OBServer node
      • Delete an OBServer
      • Replace an OBServer node
      • Reinstall an OBServer
      • Add an OBServer node
      • Stop an OBServer service
    • Manage zones of a cluster
      • Restart a zone
      • Edit a zone
      • Stop a zone
      • Add a zone
      • Delete a zone
    • Manage Arbitration Services
      • Stop an arbitration service
      • Delete an arbitration service
      • Upgrade an arbitration service
      • Dissociate an arbitration service
      • Restart an arbitration service
      • Arbitration service Overview
      • Migrate an arbitration service
      • Associate a cluster
      • Take over an arbitration service
      • Create an arbitration service
      • Start an arbitration service
      • Replace an arbitration service
    • Manage cluster resource
      • View resource usage
      • View the unit distribution
    • Manage cluster parameters
      • Parameter types
      • View parameters
      • View the history of parameter changes
      • Modify parameters
    • Manage major compaction of a cluster
      • Perform a major compaction
      • View details of a major compaction
      • Modify the major compaction settings of a cluster
      • View the major compaction records
      • View statistics of a major compaction
    • Create a cluster
      • Create a distributed cluster
      • Create a standalone centralized database
  • Tenant Management
    • Tenant and resource management
    • Create a primary tenant
    • Manage tenant parameter templates
    • View OCP resource unit specifications
    • Manage unit specifications
    • Manage databases
    • Manage the resources of a tenant
    • View tenant overview information
    • Manage tenants
      • Copy a tenant
      • Manage the binlog service for a tenant
      • Rename a tenant
      • Lock a tenant
      • Modify zone priorities
      • Change the password of the sys tenant
      • Manage service names
      • Modify the allowlist of a tenant
      • Configure full link tracking for a tenant
      • View the details of a tenant
      • Create a standby tenant
      • Delete a tenant
      • Clone a tenant
    • Manage major compaction under a tenant
      • Perform a major compaction
      • Modify major compaction settings of a tenant
      • View details of tenant major compaction
      • View the major compaction records
    • Manage resource isolation
      • Overview
      • Create a resource isolation plan
      • Delete a resource isolation plan
      • Delete a resource group
      • Modify a resource group
      • Modify a resource isolation plan
      • Enable or disable a resource isolation plan
      • Create a resource group
    • Manage users and permissions under a tenant
      • System privileges in a MySQL tenant
      • Manage users in a MySQL tenant
      • Manage user under an Oracle tenant
        • Create a role under an Oracle tenant
        • Create a user under an Oracle tenant
        • Delete a user under an Oracle tenant
        • User overview under an Oracle tenant
        • Manage roles
        • Manage users
        • Change the password of a user under an Oracle tenant
    • Manage statistical information
      • Collect statistics
      • Manage statistics collection tasks
      • Overview
    • Manage tenant parameters
      • Modify a parameter
      • View the parameters
      • View the parameter modification history
    • Manage replicas of a tenant
      • Edit a tenant replica in a zone
      • Add a replica
      • Delete a tenant replica from a zone
    • Manage topulogy of a tenant
      • View the topology of a tenant
      • View the topology of the primary/standby relationships of a tenant
  • OBProxy Management
    • Parameter management
    • Create an OBProxy cluster
    • View details on the OBProxy page
    • Request analysis
    • OBProxy parameters descpription
    • Client configuration
    • Manage OBProxy parameter templates
    • OBProxy management overview
    • Manage OBProxy Clusters
      • Manage load balancing
      • Upgrade an OBProxy cluster
      • Move out an OBProxy cluster
      • Add a connectable OceanBase cluster
      • Delete a connected OceanBase cluster
      • Manage the proxyro account
      • Change the password of the proxyro user
      • Stop or start an ODP cluster
      • Delete an OBProxy cluster
      • Manage CPU core binding configurations
      • Restart an ODP cluster
      • Change the password of the proxysys user
      • View details on the Overview page of an OBProxy cluster
    • Manage OBProxy Servers
      • Stop or start an OBProxy
      • Take over an OBProxy
      • Refresh OBProxy configurations
      • Upgrade an OBProxy
      • Delete an OBProxy
      • Remove an OBProxy
      • Launch an OBProxy
      • Add an OBProxy
      • Restart an OBProxy
  • Binlog Service Management
    • Binlog service overview
    • Create a binlog cluster
    • Manage binlog cluster parameters
    • Manage binlog parameter templates
    • Manage Binlog Clusters
      • Start and stop a binlog cluster
      • View information about a binlog cluster
      • Upgrade a binlog cluster
      • Restart a binlog cluster
      • Delete a binlog cluster
      • Manage Binlog Server
        • Delete a binlog server
        • Start and stop a binlog server
        • Add a binlog node
        • Clear binlog instances on a host
      • Manage Binlog Instance
        • View a binlog instance
        • Manage binlog instance parameters
        • Restart a binlog instance
        • Start and stop a binlog instance
        • Configure throttling
  • Host Management
    • OCP-Agent processes
    • View details of a host
    • Perform host standardization checks
    • Host standardization check items
    • Reinstall OCP Agent
    • View the details of tasks on a host
    • Add a host
    • Modify a host
    • Host management operations
    • Restart OCP-Agent
    • OCP-Agent O&M Script Instructions
    • Remove a host
  • Alert Management
    • Overview
    • Alert-related concepts
    • Optional monitoring metrics for custom alerts
    • OCP alert template tag
    • View alert events
    • Manage alert push
      • Delete an alert push
      • Edit an alert push
      • View an alert push
      • Create an alert push
    • Manage blocking conditions
      • Edit an alert blocking condition
      • Create a blocking condition
      • Delete an alert blocking condition
    • Manage alert rules
      • Create an alert rule
      • Copy an alert rule
      • View an alert rule
      • Edit an alert rule
      • Export alert rule configurations
      • Alert rule groups
      • Delete an alert rule
    • Manage alert templates
      • Delete an alert template
      • Edit an alert template
      • Create an alert template
      • View an alert template
      • Copy an alert template
      • Set alert objects
      • Export alert templates
    • Manage alert channels
      • Examples of alert channel configuration
      • View an alert channel
      • Edit an alert channel
      • Delete an alert channel
      • Examples of alert channel configuration
      • Copy an alert channel
      • Create an alert channel
  • Dashboard Management
    • Manage dashboards
    • Monitoring dashboard overview
    • Manage groups
    • Manage charts
  • Performance Monitoring
    • Use the custom monitoring feature
      • View collection items
      • Overview
      • OCP metrics
      • Manage indicator items
        • Create a metric
        • Manage metrics
      • Manage charts
        • Create a chart
        • Manage charts
    • Manage monitoring
      • View OBServer node performance monitoring data
      • Drill-down monitoring
      • View database performance monitoring data
      • View host resource monitoring data
      • Overview
      • View OBKV-Table monitoring data
      • View subscription connection monitoring charts
      • View performance monitoring
      • View performance monitoring data of a binlog instance
      • View OBKV-HBase monitoring data
      • View performance and SQL monitoring data
      • View storage and cache monitoring data
      • View service monitoring data
      • View database object monitoring data
      • View host process monitoring data
      • View OBKV-Redis monitoring data
      • View host performance monitoring data
      • View system monitoring data
      • View resource monitoring data of a binlog instance
      • View transaction performance monitoring data
      • Integrate monitoring data to an external time-series system
  • Diagnostics and Tuning
    • View the capacity center
    • View the Optimization Center page
    • View diagnostics reports
      • Manage performance reports
      • Manage ASH reports
    • SQL Diagnostics
      • SQL Diagnostics Introduction
        • SQL statement execution statistics
        • SQL execution plans
        • SQL diagnostics overview
      • View the OceanBase Autonomy Service page
      • Diagnose suspicious SQL statements
      • Diagnose top SQL statements
      • View Comparison of Top SQL Statements
      • Diagnose slow SQL statements
      • Diagnose parallel SQL statements
      • Diagnose high-risk SQL statements
      • Diagnose new SQL statements
      • View the details of an SQL statement
      • View outlines
      • View the SQL collection enabling/disabling history
      • View SQL request analysis data
      • Parameters related to SQL performance diagnostics
    • Manage sessions
      • Manage the sessions of a tenant
      • View session statistics
      • View row lock analytics
      • View the deadlock history
    • Transaction Diagnostics
      • Diagnose transactions
      • Transaction overview
      • Diagnose XA transactions and suspended transactions
  • O&M Management
    • Manage Inspection
      • Inspection
      • Configure inspection items
      • View an inspection task
      • Manage Inspection reports
        • View an inspection report
        • Download an inspection report
      • Configure Scheduling Rules
        • Configure a global scheduling rule
        • Configure a scheduling rule for a single object
      • Initiate Inspection
        • Initiate a global inspection
        • Initiate an inspection for a single object
    • Manage Plans
      • Manage plans
      • Overview
      • View plan execution details
    • Manage Information Collection
      • Download an information collection report
      • Configure information collection items
      • View information collection details
      • Overview
      • Create an information collection task
  • Backup and Recovery
    • Copy a restore task
    • Overview
    • Backup and restore guide
    • Initiate a restore task
    • Overview
    • View restore task information
    • Manage backup tasks
      • View second backup tasks
      • View backup tasks
    • Manage backup and recovery service
      • Copy a service
      • View O\&M tasks
      • Add a node
      • Upgrade the version of a service
      • Delete a service
      • View services
      • Install a service
      • Restart a service on a node
      • Update service configurations
      • Uninstall a service on a node
      • Stop a service on a node
    • Regular backup
      • Manage cluster-level backup strategy
        • View a cluster-level backup stategy
        • Create a cluster-level backup strategy
        • Modify a cluster-level backup strategy
        • Delete a cluster-level backup strategy
        • Pause backup scheduling
      • Manage tenant-level backup strategy
        • Pause backup scheduling
        • Create a tenant-level backup strategy
        • View a tenant-level backup stategy
        • Delete a tenant-level backup strategy
        • Modify a tenant-level backup strategy
    • Regular recovery
      • View sampling strategies
      • View sampling tasks
      • Create a sampling strategy for recovery
    • Backup now
      • Back up a tenant now
      • Back up a cluster now
  • Disaster Recovery
    • Switching primary and standby databases
      • Start the original primary cluster in read-only mode after a failover
      • Decouple a standby cluster from the primary cluster
      • Primary/Standby cluster switchover for disaster recovery
      • Routine primary/standby cluster switchover
    • Switching primary and standby tenants
      • Decouple a standby tenant from its primary tenant
      • Failover
      • Create a standby tenant for a primary tenant managed by another OCP cluster
      • Switchover
    • OCP Manage OCP clusters in the multi-cluster mode
      • Register an OCP cluster
      • Switch an OCP cluster in a failover
      • OCP multi-cluster mode overview
      • Unbind a leader and a follower OCP cluster
      • Manage OCP cluster parameters
      • Switch an OCP cluster in daily maintenance
      • Enable the OCP multi-cluster mode
      • Delete a faulty follower OCP cluster
      • View Leader \& Follower Details
  • Log Management
    • Download logs
    • Configure log retention strategies
    • Trace query
    • Query logs
    • Configure trace query parameters
    • About OpenSearch
  • Software Package Management
    • Delete a software package
    • Download a software package
    • Upload a software package
  • System Management
    • View operation records
    • Manage tasks
    • Manage users and permissions
      • Overview
      • Manage a organization
        • View the resources of an organization
        • Delete an organization
        • Create an organization
        • Share resource configurations
        • Rename an organization
      • Manage a user
        • Copy a user
        • View a user
        • Delete a user
        • Change the password of a user
        • Edit a user
        • View the login history
        • Create a user
      • Manage a role
        • View a role
        • Edit a role
        • Default OCP roles
        • Copy a role
        • Delete a role
        • Create a role
    • Manage tags
      • Overview
      • Delete a tag
      • Edit a tag
      • Create a tag
      • Modify objects bound to a tag
    • Manage password box
      • Verify a credential
      • Edit a credential
      • Batch operations on credentials
      • Create a credential
      • Import a credential
      • Export a credential
      • Delete a credential
    • Manage system parameters
      • OCP configuration parameters
      • Modify system parameters
      • View system parameters
    • Manage external integration
      • Overview
      • Create an SSO integration task
      • Enable/Disable an SSO integration task
      • Edit an SSO integration task
      • Delete an SSO integration task
    • User center management
      • Log off the OCP console
      • Configure personal information
      • Change your logon password
  • SQL Tuning Practices
    • General SQL Performance Tuning Scenarios
      • Execution Plan Optimization
        • SQL statement performance deterioration caused by plan changes
      • Index Optimization
        • Inappropriate index of an SQL statement
        • No suitable indexes
        • Invalid index of an SQL statement
    • Customize Abnormal SQL Statement Determining Rules
      • Conditions
      • Custom column rules
    • Locate General Abnormal SQL Statements
      • How can I locate SQL statements for full-table scans in a tenant?
      • How can I locate SQL statements with high CPU load in a tenant?
      • How can I locate slow hard-parsed SQL statements in a tenant?
      • How can I locate erroneous SQL statements in a tenant?
      • How can I locate distributed SQL statements in a tenant?
      • How can I locate slow SQL statements that take a long time in a tenant?
      • How can I locate remote SQL statements in a tenant?
  • O&M Best practices
    • Send alert messages through email
    • Move out an OBProxy cluster
    • Check the availability of an auto-increment column
    • Decouple a standby tenant from the primary tenant
    • Perform a failover
    • Check clog synchronization
    • Send alert messages to a Feishu group
    • Integrate OCP monitoring into Prometheus
    • Troubleshoot host issues in an OceanBase cluster
    • Push alert messages through HTTP
    • Back up an OceanBase cluster
    • Automatic routing to the new primary tenant after a switchover
    • Scale in an OBProxy cluster
    • Perform an inspection in OCP to detect potential risks in an OceanBase cluster
    • Take over OBProxies
    • Scale in an OceanBase cluster and scale down an OceanBase Database tenant
    • Use the arbitration service of OceanBase Database to achieve HA in a scenario with two IDCs
    • Configure custom monitoring
    • Migrate a cluster between IDCs in OCP
    • Scale out an OBProxy cluster
    • Restore lost data by using backup and restore
    • Migrate a resource unit from an OceanBase Database tenant
    • Import a monitoring dashboard to Grafana
    • Send alert messages to a WeChat Enterprise group
    • Monitor the business load of OceanBase Database
    • Upgrade an OceanBase cluster
    • Expand the high availability of OceanBase clusters and tenants
    • Perform a failover between primary and standby OceanBase clusters for disaster recovery in a scenario with two IDCs
    • Replace an OBProxy
    • Reduce the high availability of OceanBase clusters and tenants
    • Scale out an OceanBase cluster and scale up an OceanBase Database tenant
    • Check the NIC rate
    • Migrate an OceanBase cluster to another IDC
    • Perform a switchover between primary and standby OceanBase Database tenants in a scenario with two IDCs
    • Delete an OBProxy
    • Send alert messages to a DingTalk group
  • Reference Guide
    • Alarm reference
      • Overview
      • Application alerts
        • ob_host_monitordb_disconnected
        • base_backup_too_long_time_no_one_success_task
        • backup_process_dead
        • odp_sql_query_slow
        • ob_cluster_inspection_not_passed
        • upgrade_ocp_agent_failed
        • monitor_exporter_unavailable
        • ob_host_tcp_retrans_percent_over_threshold
        • odp_instance_compress_failed
        • backup_storage_capacity_timeout_or_interrupted
        • ob_host_invalid_disk_exists
        • ocp_remote_server_time_diff_too_large
        • host_agent_open_fd_count_over_threshold
        • ic_server_connect_failed Inter-Connector
        • Host log alerts
        • host_agent_goroutine_count_over_threshold
        • obagent_dead
        • host_ntp_service_not_exist
        • host_ntp_offset_too_large
        • backup_storage_capacity_over_threshold
        • base_backup_timeout
        • partition_create_failed
        • host_disk_readonly
        • odp_sql_execute_failed
        • ocp_collect_metric_failure_rate_high
        • host_agent_res_memory_over_threshold
        • ob_host_net_recv_percent_over_threshold
        • vpc_connect_failed
        • ocp_http_request_timeout
        • ob_host_ssd_wear_indicator_over_threshold
        • mgragent_process_stop
        • host_agent_version_not_same
        • agentd_process_stop
        • base_backup_fail
        • ocp_alarm_detect_timeout
        • ob_host_net_send_percent_over_threshold
        • ob_host_cpu_percent_over_threshold
        • monagent_process_stop
        • ocp_meta_db_disconnected
        • ocp_contingency_failed
        • system_obproxy_unavailable
        • node_load1_peak
        • base_secondary_backup_fail
        • ob_host_mem_percent_over_threshold
        • backup_storage_capacity_retry_times_exceeded
        • odp_instance_expanse_failed
        • inc_backup_delay
        • ocp_http_request_too_many_errors_occur
        • ob_cluster_recyclebin_disk_used_over_threshold
        • host_unavailable
      • OceanBase alerts
        • obproxy_host_operation
        • ob_tenant_expired_trans_exist
        • ob_cluster_rs_not_same
        • standby_tenant_sync_delay_too_long
        • ob_cluster_merge_timeout
        • ob_cpu_percent_over_threshold
        • ob_tenant_large_trans_exist
        • ob_cluster_operation_info
        • ob_host_partition_count_over_threshold
        • ob_cluster_frozen_version_delta_over_threshold
        • ob_tenant_request_queue_over_threshold
        • refresh_location_cache_failed_by_metric
        • ob_tenant_log_stream_degraded
        • ob_cannot_connected
        • oas_anomaly_sql_from_anomaly_event_analysis_cpu_percent_high
        • obproxy_core_dump
        • obproxy_process_dead
        • obproxy_client_connections_usage_over_threshold
        • ob_cpu_assigned_percent_over_threshold
        • ob_host_load1_per_cpu_over_threshold
        • refresh_location_cache_failed
        • agent_process_count_abnormal
        • ob_tenant_operation_info
        • ob_host_operation
        • ob_host_install_disk_percent_over_threshold
        • ob_server_sstable_percent_over_threshold
        • ob_tenant_no_frozen
        • oas_anomaly_sql_from_anomaly_event_analysis_plan_changed
        • ob_tenant_partition_replica_absent
        • ob_tenant500_storage_short_meta_mem_hold_high
        • ob_tenant_active_session_count_over_threshold
        • ob_tenant_exists_expired_xa_trans
        • ob_cluster_sync_failed
        • ob_cluster_merge_error
        • ob_host_disk_readonly
        • os_observer_not_exist
        • standby_tenant_sync_status_error
        • ob_tenant_cpu_usage_over_threshold
        • ob_cluster_status_check_failed
        • ob_tenant_log_disk_usage_high
        • ob_tenant_no_compaction
        • ob_cluster_no_merge
        • obproxy_process_stop
        • ob_cluster_sync_delay_time_too_long
        • oas_anomaly_sql_from_anomaly_event_analysis_perf_degradation
        • ob_host_data_disk_percent_over_threshold
        • obproxyd_process_dead
        • ob_mem_assigned_percent_over_threshold
        • observer_process_stop
        • ob_tenant_expired_trans_exist
        • ob_tenant_long_trans_exist
        • tenant_memstore_percent_over_threshold
        • obproxy_cannot_connected
        • host_operation
        • oas_anomaly_sql_from_sql_inspection_perf_degradation
        • ob_cluster_no_frozen
        • ob_tenant_partition_leader_absent
        • tenant_active_memstore_percent_over_threshold
        • ob_server_cannot_connect_arbitration
        • OceanBase log alerts
        • ob_tenant_compaction_error
        • ob_host_task_timeout
        • ob_host_active_session_count_over_threshold
        • ob_cluster_active_session_count_over_threshold
        • ob_host_log_disk_percent_over_threshold
        • ob_host_connection_percent_over_threshold
        • oas_anomaly_sql_from_sql_inspection_plan_changed
        • ob_tenant500_mem_hold_percent_over_threshold
        • obproxy_cluster_operation
        • arbitration_service_unavailable
        • ob_tenant_long_trans_exist
        • arbitration_auto_replace_operation_info
        • obproxyd_process_stop
        • ob_cluster_exists_index_fail_table
        • same_alarm_rule_detect_too_many_targets
        • tenant_cpu_percent_over_threshold
        • ob_cluster_exists_inactive_server
        • ob_tenant_task_timeout
        • ob_tenant_slow_sql_exists
        • ob_tenant500_mem_hold_over_threshold
        • arbitration_group_auto_replace_failed
      • OAS alerts
        • node_memory_peak
        • os_nic_1000m_full
        • os_tsar_cpu_util_hwm
        • os_observer_fd_usage
        • os_tsar_traffic_error
        • os_tsar_cpu_util_full
        • os_kernel_ntp_delay
        • node_file_datalog1_usage
        • os_home_file_usage
        • os_tsar_nvme_ioawait
        • os_tsar_cpu_sys_abnormal
        • os_tsar_traffic_overload
        • os_tsar_traffic_drop
        • os_tsar_sda_ioawait
        • os_kernel_io_hang
        • sql_audit_collect_lost_percent_over_threshold
        • node_file_inode_usage
        • node_file_root_usage
        • node_file_data1_usage
        • os_kernel_ntp_down
        • os_nic_1000m_hwm
        • os_cpu_irq_error
        • os_observer_core_dump
      • Appendix
        • Network troubleshooting
        • Execute the alert clearance plan
        • Exception handling for OceanBase cluster compaction
        • Apply throttling to an OceanBase cluster
    • Metric reference
      • Overview of metrics
      • Monitoring metrics list
      • OBProxy cluster
        • Memory for the obproxy process
        • Client connections
        • Number of threads in the obproxy process
        • RPC request time consumption
        • RPC sessions
        • Number of file descriptors for the obproxy process
        • TPS
        • Server connections
        • RPC requests
        • Net bytes
        • QPS
        • OBProxy CPU usage
        • Log error
        • Route table queries
        • Average response time for each SQL statement
      • OceanBase Database tenant
        • Performance and SQL
          • Wait events
          • Rpc package rt
          • MemStore usage
          • Request queue size
          • SQL execution plan category
          • Tenant thread usage
          • Request waiting queue
          • Clog synchronization delay
          • QPS
          • Cursors
          • Frontend workload metrics
          • Tenant CPU cost
          • Metrics related to time consumption of wait events
          • DB time metrics
          • Background workload metrics
          • Response time (SQL mode)
          • RPC packet throughput
          • Sessions
          • Metrics for the SQL execution phase
          • memroy usage pecent
          • Request waiting queue time consuming
          • SQL execution plan time
          • PX worker thread usage
        • Storage and Cache
          • MemStore
          • IOPS
          • IO time-consuming
          • I/O Throughput
          • Cache size
          • Cache hit rates
          • Number of cache requests
          • Frozen MemStores
          • # Log disk
          • # Data disk
        • OBKV_Table
          • Response time (OBKV-Table)
          • Average number of statement lines processed (OBKV-Table)
          • QPS (OBKV-Table)
        • Transaction
          • Transaction table read request hits
          • Number of XA transactions
          • Number of transaction logs
          • Partitions
          • Lock waits
          • Transaction response time
          • Average execution duration of XA statements
          • TPS
          • Time consumed by transaction logs
          • TPS
          • Transaction log volume
          • Transaction response time details
          • Time consumed by lock waits
          • Number of XA statements
        • OBKV_HBase
          • QPS (OBKV_Hbase)
          • Average number of statement lines processed (OBKV-HBase)
          • Response time (OBKV-HBase)
        • OBKV_Redis
          • Response time (OBKV-Redis)
          • QPS (OBKV-Redis)
        • Database objects
          • Objects
      • Host
        • Host Performance
          • I/O usage
          • TCP retransmission rate
          • Packet forwarding
          • I/O queue length
          • Linux system load
          • I/O throughput
          • CPU Utilization
          • Inode usage
          • Time consumed by I/O operations
          • Network throughput
          • NTP clock offset
          • IOPS
        • Host Resources
          • Memory
          • Disk
          • Memory usage
        • Host Processes
          • Number of process file descriptors
          • Process resident memory
          • Number of process threads
          • Number of OCP-Agent process goroutines
          • Process CPU utilization
      • OceanBase cluster
        • Database performance
          • Query response time
          • I/O Throughput
          • Request queue time
          • Number of sessions
          • IOPS
          • Transaction response time
          • Number of transaction logs
          • QPS
          • Time consumed by transaction logs
          • TPS
          • TPS
          • Transaction log volume
          • IO time-consuming
        • OBServer performance
          • Error logs
          • Number of process threads
          • Process memory
          • Process file descriptors
          • Process CPU utilization
          • sys500 memory occupation
      • Binlog Service
        • Subscription Connection Monitoring
          • Associate RPS
          • Network Traffic
          • Sending Delay
        • Binlog Resource Monitoring
          • CPU
          • memory used
          • memory
          • disk used
          • Binlog Disk Write Rate
          • disk ratio
          • FD count
          • network bytes
        • Binlog Performance Monitoring
          • Binlog Delay
          • Binlog RPS
    • API Reference
      • Overview
      • API call description
      • Rules for generating a signature by using AK/SK
      • Task return structure
      • Software packages
        • Query software packages
        • Delete a software package
        • Upload a software package
      • Cluster management
        • Migrate an arbitration service
        • Query arbitration service parameters
        • Perform a failover
        • Upgrade an arbitration service group
        • Start a zone in an OceanBase cluster
        • Delete multiple OBServers at a time
        • Perform a precheck on batch arbitration service replacement
        • Stop an OceanBase cluster
        • Perform a takeover precheck on an OceanBase cluster
        • Create a zone for an OceanBase cluster
        • Start an OceanBase cluster
        • Start an arbitration service
        • Delete a zone from an OceanBase cluster
        • Query the list of arbitration services
        • Change the password of an OceanBase cluster
        • Take over an arbitration service
        • Delete an arbitration service group
        • Restart a zone in an OceanBase cluster
        • Query resource statistics of all OBServer nodes in an OceanBase cluster
        • Query the parameter metadata of OceanBase clusters
        • Take over an OceanBase cluster
        • Add an OBServer node
        • Delete an OceanBase cluster
        • Perform a switchover pre-check
        • Delete an arbitration service
        • Query resource statistics of an OceanBase cluster
        • Stop an OBServer node
        • Associate an arbitration service with multiple OceanBase clusters
        • Create an arbitration service group
        • Upgrade an OceanBase cluster
        • Bind/Unbind tags to/from an arbitration service
        • Query information of an arbitration service group
        • Stop an arbitration service
        • Query details of an arbitration service
        • Query units of an OceanBase cluster
        • Perform a switchover
        • Replace the arbitration service for multiple clusters
        • Create an arbitration service
        • Restart an arbitration service
        • Restart an OceanBase cluster
        • Restart an OBServer node
        • Query zones of an OceanBase cluster
        • Start an OBServer node
        • Create an OceanBase cluster
        • Query parameters of an OceanBase cluster
        • Perform an arbitration service takeover precheck
        • Query OBServer nodes in a zone
        • Move out an OceanBase cluster
        • Perform an association precheck on multiple OceanBase clusters
        • Dissociate an arbitration service from multiple clusters
        • Upgrade an arbitration service
        • Stop a zone in an OceanBase cluster
        • Replace an OBServer node
        • Modify parameters of an OceanBase cluster
        • Query OBServer nodes of an OceanBase cluster
        • Query OceanBase clusters
        • Query the list of arbitration service groups
        • Update an arbitration service group
        • Perform a failover pre-check
      • Database management
        • Grant roles to a user
        • Grant database privileges to a user
        • Grant object privileges to a user
        • Query database objects
        • Revoke global privileges of a role
        • Query the list of database roles
        • Change object privileges of a role
        • Grant global privileges to a role
        • Change global privileges of a role
        • Grant global privileges to a user
        • Query database user details
        • Change database privileges of a user
        • Delete a database user
        • Query databases
        • Revoke database privileges of a user
        • Grant roles to a role
        • Change roles of a role
        • Create a database user
        • Create a database role
        • Lock a database user
        • Change object privileges of a user
        • Query database role details
        • Delete a database role
        • Revoke roles of a user
        • Query the list of database users
        • Delete a database
        • Revoke object privileges of a user
        • Revoke roles of a role
        • Change global privileges of a user
        • Unlock a database user
        • Change the password of a database user
        • Modify a database
        • Grant object privileges to a role
        • Create a database
        • Change roles of a user
        • Revoke global privileges of a user
        • Revoke object privileges of a role
      • System management
        • Operation Audit
          • Query event history
        • Health examination
          • Query the basic information of an OCP application
          • Query OCP server time
          • Query OCP application status
        • Agent management
          • Stop the OCP Agent process on a host
          • Stop the OCP Agent process on a host
          • Restart the OCP Agent process on a host
          • Query OCP Agent details on a host
          • Batch stop the OCP Agent processes on hosts
          • Batch restart the OCP Agent processes on hosts
          • Restart the OCP Agent process on a host
          • Query OCP Agent processes on a host
      • SQL performance
        • Query the performance indicator trend of an SQL statement
        • Query performance indicators of an SQL statement
        • Query a performance report
        • Query the operator structure of an execution plan
        • Query the list of slow SQL statements
        • Query SQL text
        • Generate a performance report
        • Query snapshots
        • Query the performance indicator trend of an execution plan
        • Query performance indicators of an execution plan
      • O&M tasks management
        • Query details about a task
        • Query tasks
        • Retry a task
        • Cancel a subtask
        • Roll back a task
        • Retry a subtask
        • Query subtask logs
        • Skip a subtask
      • Backup and recovery
        • View the log backup tasks of a tenant
        • View the data backup tasks of a tenant
        • Delete the backup strategy of a cluster
        • Parse the backup information of a tenant
        • Initiate tenant recovery
        • View restore tasks
        • Query the backup strategy of a tenant
        • Start backup scheduling for a cluster
        • Clear added restore resources
        • Query recovery tasks of a cluster
        • Stop backup scheduling for a tenant
        • Query the backup overview of a cluster
        • Modify the backup strategy of a cluster
        • Query backup capabilities of a cluster
        • Query the backup strategy of a cluster
        • Create a backup strategy for a tenant
        • Parse cluster backup data
        • Initiate a data backup for a tenant
        • Modify the backup strategy of a tenant
        • Query data backup tasks of a cluster
        • Start backup scheduling for a tenant
        • Add restore resources
        • Create a backup strategy for a cluster
        • Immediately back up a cluster
        • Preview a restore task
        • Delete the backup strategy of a tenant
        • Stop backup scheduling for a cluster
        • Query log backup tasks of a cluster
      • OBProxy management
        • Update configurations of an OBProxy cluster
        • Restart an OBProxy
        • Upgrade an OBProxy
        • Remove a connectable OceanBase cluster from an OBProxy cluster
        • Create an OBProxy cluster
        • Query the description information of the OBProxy parameters
        • Delete an OBProxy (not recommended)
        • Start an OBProxy
        • Query details about an OBProxy cluster
        • Add an OBProxy
        • Take over an OBProxy
        • Stop an OBProxy
        • Add a connectable OceanBase cluster for an OBProxy cluster
        • Query parameters of an OBProxy cluster
        • Upgrade an OBProxy
        • Delete an OBProxy cluster
        • Query OBProxy clusters
        • Delete an OBProxy
        • Restart an OBProxy
      • Tenant management
        • Create a tenant
        • Modify a replica of a tenant
        • Modify parameters of a tenant
        • Query tenants of a cluster
        • Create a standby tenant
        • Obtain a list of unit specifications
        • Delete a unit from a tenant
        • Perform a batch failover
        • Add a replica for a tenant
        • Create a resource unit specification
        • Perform a batch switchover
        • Unlock a tenant
        • Perform a switchover
        • Perform a failover precheck
        • Query all tenants
        • Query parameters of a tenant
        • Delete a replica of a tenant
        • Change the administrator password of a tenant
        • Delete a resource unit specification
        • Perform a batch switchover precheck
        • Query details about a tenant
        • Modify the allowlist of a tenant
        • Perform a switchover precheck
        • Lock a tenant
        • Perform a batch failover precheck
        • Modify zone priorities of a tenant
        • Query units of a tenant
        • Delete a tenant
        • Perform a failover
      • Inspection
        • Query inspection objects
        • Query the last inspection result of an inspection item
        • Initiate an inspection
        • Query the last inspection result of an inspection object
        • Query all inspection tasks
        • View the details of an inspection report
      • Host management
        • Query host types
        • Add host type information
        • Add IDC information
        • Query details about an IDC
        • Delete multiple hosts at a time
        • Query regions
        • Delete an IDC
        • Delete a region
        • Add multiple hosts at a time
        • Delete a host
        • Query details about a host type
        • Add region information
        • Query hosts
        • Query IDCs
        • Query details about a host
        • Query details about a region
        • Delete a host type
      • Alerts
        • Call an alert API
        • Alert events
          • Query alert events
          • Query the alert event list
        • Alert notifications
          • Query alert notifications
      • Monitoring
        • Query monitoring data by tag
        • Query monitoring data
        • Query the description of a monitoring metric
    • Information Collection Reference
      • Data Disk Full
        • Collect information about the disk space occupied by temporary files of a tenant
        • Collect incremental data generated during cluster compactions
        • Collect information about sizes of data of different versions in major SSTables
        • Collect information about the macroblock utilization of nodes
        • Collect the data disk usage information of nodes in a cluster
      • CPU Exceptions
        • Collect information about threads with high CPU utilization in an observer process
        • Collect information about processes with high CPU utilization on a cluster node
      • Major Compaction Exceptions
        • Collect the last-one-day records of major compaction events scheduled by RootService
        • Collect major compaction parameter settings
        • Collect diagnostic information about major compactions
        • Collect the checksum information about tablets
        • Collect information about the major compaction status of zones of a cluster
        • Collect the major compaction time
        • Collect RootService task records
        • Collect the checksum information about columns
        • Collect information about the ongoing major compaction in a cluster
        • Collect suggestions provided based on historical major compactions
        • Collect information about DAG warnings in OceanBase Database
      • Cluster Exceptions
        • Collect connectivity information of the sys tenant
        • Collect information about the core dump file of the observer process
        • Collect host logs containing the CRASH ERROR keyword
        • Collect obstack information on a cluster node
        • Collect information about bad disks
        • Collect information about OBServer nodes in a cluster
      • OCP Agent Exceptions
        • Collect panic logs of the mgragent process
        • Collect information about goroutines of the agent processes
        • Collect panic logs of the monagent process
      • Memory Exceptions
        • Collect memory allocation sampling data of OBServer nodes
        • Collect KV cache information of a tenant
        • Collect memory leakage detection information
        • Collect MemStore information of a tenant
        • Collect information about modules with highest memory usage
      • Other Tenants Exceptions
        • Collect host logs containing the dump tenant info keyword
        • Collect host logs containing the dump tenant info keyword
        • Collect host logs containing the dump tenant disk usage keyword
      • Host Exceptions
        • Collect host information by running the df -h command
        • Collect logs from the /var/log/messages directory of a host
    • Error codes reference
      • OCP error codes
      • OBServer error codes
        • Oracle mode
          • OBE-00000 to OBE-00999
          • OBE-20000 to OBE-29999
          • Overview
          • OBE-10000 to OBE-19999
          • OBE-30000 to OBE-49999
          • OBE-02000 to OBE-04999
          • PLS-00000 to PLS-00999
          • OBE-50000 to OBE-99999
          • OBE-01500 to OBE-01999
          • OBE-05000 to OBE-10000
          • OBE-01000 to OBE-01499
        • MySQL mode
          • 10000 to 12000
          • 4000 to 4499
          • 4500 to 4999
          • 6000 to 6999
          • 7000 to 7999
          • 9000 to 9499
          • 5000 to 5999
          • 9500 to 9999
          • 8000 to 8999
          • 22998, 30926, 38104, and 38105
          • Overview
          • 0001 to 3999
  • FAQ
    • FAQ on the OCP system
    • FAQ about deployment
    • FAQ on alerts
    • OCP multi-cluster FAQ
    • FAQ on upgrade
    • FAQ on monitoring
      • FAQ on monitoring metrics
      • FAQ on SQL monitoring
      • FAQ about resource usage
      • Use OCP-Agent to pull time-series monitoring data
    • FAQ on O&M
      • FAQ on backup and recovery
      • FAQ on the OCP software package
      • FAQ on OceanBase cluster
      • FAQ on OBProxy
      • FAQ on OceanBase tenants
      • FAQ on accounts and passwords
      • FAQ on host management
  • Appendix
    • AWS S3 protocol
    • Install and configure OCI
    • Component listening port list
    • Processes
    • OCP background tasks
    • Modify the log stream downgrade control time
    • Tables managed by the daemon
  • Release Notes
    • V4.3
      • OCP V4.3.4
      • OCP V4.3.1
      • OCP V4.3.0
      • OCP V4.3.5
      • OCP V4.3.3
      • OCP V4.3.2

Download PDF

Document Overview What is OceanBase Cloud Platform? Differences between Enterprise Edition and Community Edition System architecture Features Dependencies System requirements Installation process Prepare for the installation Overview Post-deployment check Use Docker to deploy OCP Deploy OCP on the GUI Overview Considerations Preparations Post-upgrade check Upgrade OCP on the GUI Upgrade OCP using Docker containers Log on to the OCP console Create a user OCP operations Create an OBProxy cluster Create a tenant Create a cluster Add a host Upload a software package Upgrade an OceanBase cluster View the topology of a clusterOverview of cluster tenant management Overview Manage cluster parameter templates Disable automatic detection of deadlocks Change the password Restart a cluster Delete a cluster Take over a cluster Stop a cluster Move out a cluster Enable automatic detection of deadlocks Create a standby cluster Upgrade a standalone centralized database to a distributed cluster Manage CPU binding configurations View the details of a cluster Edit an arbitration service group Create an arbitration service group Delete an arbitration service group Overview Upgrade an arbitration service group Stop the observer process Restart a faulty OBServer nodeDelete an OBServer Replace an OBServer node Reinstall an OBServer Add an OBServer node Stop an OBServer service Restart a zone Edit a zone Stop a zone Add a zone Delete a zone Stop an arbitration service Delete an arbitration service Upgrade an arbitration service Dissociate an arbitration service Restart an arbitration service Arbitration service Overview Migrate an arbitration service Associate a cluster Take over an arbitration service Create an arbitration service Start an arbitration service Replace an arbitration service View resource usage View the unit distribution Parameter types View parameters View the history of parameter changes Modify parameters Perform a major compaction View details of a major compaction Modify the major compaction settings of a cluster View the major compaction records View statistics of a major compaction Create a distributed cluster Create a standalone centralized database Tenant and resource management Create a primary tenant Manage tenant parameter templatesView OCP resource unit specifications Manage unit specifications Manage databases Manage the resources of a tenant View tenant overview information Copy a tenant Manage the binlog service for a tenant Rename a tenantLock a tenant Modify zone priorities Change the password of the sys tenant
OceanBase logo

The Unified Distributed Database for the AI Era.

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

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Cloud Platform
  3. V4.3.5
iconOceanBase Cloud Platform
V 4.3.5
  • V 4.3.6
  • V 4.3.5
  • V 4.3.4
  • V 4.3.3
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.2
  • V 4.0.0 and earlier

Query the list of slow SQL statements

Last Updated:2026-04-16 03:36:04  Updated
share
What is on this page
Description
Call description
Prerequisites
Request path
Request parameters
Response parameters
Examples
Sample request
Sample response

folded

share

Description

You can call this operation to query the list of slow SQL statements.

Call description

Prerequisites

You have the Read-only permission on the specified tenant.

Request path

GET /api/v2/ob/clusters/{clusterId}/tenants/{tenantId}/slowSql

Request parameters

Parameter
Type
Required
Example value
Description
clusterId Integer Yes 1 The ID of the cluster.
tenantId Integer Yes 10001 The ID of the tenant.
startTime Datetime Yes 2023-04-12T04:38:38Z The start time of the time range for querying the execution history of the slow SQL statement. The value must be UTC time in the YYYY-MM-DDThh:mm:ssZ format.
endTime Datetime Yes 2023-04-12T05:38:38Z The end time of the time range for querying the execution history of the slow SQL statement. The value must be UTC time in the YYYY-MM-DDThh:mm:ssZ format.
serverId Integer No 300 The ID of the OBServer node on which you want to query the performance metrics. If it is not specified, the system queries the performance metrics of the SQL execution plan on all OBServer nodes.
inner Boolean No false Indicates whether the SQL statement is an internal SQL statement.
sqlText String No hello The keyword in the SQL statement, which is case-insensitive.
filterExpression String No @avgCpuTime > 20 and @executions > 100 All fields are referenced by using an at sign (@). For information about optional fields, see the "Response parameters" section in the Query performance indicators of an SQL statement topic.
limit Integer No 3 The maximum number of slow SQL statements returned.
sqlTextLength Integer No 65535 The maximum length of the returned SQL text.

Response parameters

  • Basic data structure

    Parameter
    Type
    Description
    data Object The requested data.
    ├─ contents Array The array of information about slow SQL statements. For more information, see Data structure of a slow SQL statement.
    successful Boolean Indicates whether the request was successful.
    timestamp Datetime The timestamp when the server completed the request.
    status Integer The HTTP status code.
    traceId String The trace ID of the request. This trace ID is used for troubleshooting.
    server String The address of the application server that responded to the request.
  • Data structure of a slow SQL statement

    Parameter
    Type
    Description
    data Object The returned data.
    avgAffectedRows Double The average number of rows affected.
    avgApplicationWaitTime Double The average amount of time spent on an application wait event, in milliseconds.
    avgBlockCacheHit Double The average number of block cache hits.
    avgBlockIndexCacheHit Double The average number of block index cache hits.
    avgBloomFilterCacheHit Double The average number of Bloom filter cache hits.
    avgConcurrencyWaitTime Double The average amount of time spent on a concurrency wait event, in milliseconds.
    avgCpuTime Double The average CPU time, in milliseconds.
    avgDecodeTime Double The average amount of time spent in syntax parsing, in milliseconds.
    avgDiskReads Double The average number of disk reads.
    avgElapsedTime Double The average response time, in milliseconds.
    avgExecuteTime Double The average execution time of the SQL statement, in milliseconds.
    avgExecutorRpcCount Double The number of remote executions of the SQL statement, which corresponds to v$sl_audit.executor_rpc.
    avgGetPlanTime Double The average amount of time spent in generating an execution plan, in milliseconds.
    avgLogicalReads Double The average number of logical reads.
    avgMemstoreReadRows Double The average number of rows read from the MemStore.
    avgNetTime Double The average network I/O time of the SQL statement, in milliseconds.
    avgNetWaitTime Double The average network wait time of the SQL statement, in milliseconds.
    avgPartitionCount Double The average number of partitions accessed.
    avgQueueTime Double The average queuing time, in milliseconds.
    avgReturnRows Double The average number of rows returned.
    avgRowCacheHit Double The average number of row cache hits.
    avgRpcCount Double The average number of remote procedure calls (RPCs) executed by the SQL statement.
    avgScheduleTime Double The average scheduling time, in milliseconds.
    avgSsstoreReadRows Double The average number of rows read from the SSTable.
    avgUserIoWaitTime Double The average user I/O time, in milliseconds.
    avgWaitCount Double The average number of waits of the SQL statement.
    avgWaitTime Double The average wait time, in milliseconds.
    dbName String The name of the database.
    distPlanPercentage Double The percentage of distributed execution plans used for the SQL statement.
    execPs Double The average number of executions per second within the specified period.
    executions Double The total number of executions within the specified period.
    failCount Double The number of execution errors.
    failPercentage Double The execution error rate of the SQL statement.
    inner Boolean Indicates whether the SQL statement is an internal SQL statement.
    lastFailCode Long The error code of the last execution error.
    lastFailTimestamp Datetime The timestamp of the last execution error.
    localPlanPercentage Double The percentage of local execution plans used for the SQL statement.
    maxAffectedRows Double The maximum number of rows affected by the SQL statement.
    maxApplicationWaitTime Double The maximum amount of time spent on an application wait event, in milliseconds.
    maxConcurrencyWaitTime Double The maximum amount of time spent on a concurrency wait event, in milliseconds.
    maxCpuTime Double The maximum CPU time.
    maxDiskReads Double The maximum number of disk reads.
    maxElapsedTime Double The maximum response time of the SQL statement.
    maxReturnRows Double The maximum number of rows returned by the SQL statement.
    maxUserIoWaitTime Double The maximum amount of time spent on a user I/O wait event, in milliseconds.
    missPlanPercentage Double The percentage of execution plan misses of the SQL statement.
    obDbId Long The ID of the OceanBase cluster.
    obTenantId Long ID of the OceanBase Database tenant.
    remotePlanPercentage Double The percentage of remote execution plans used for the SQL statement.
    retCode4012Count Long The number of occurrences of the error code 4012.
    retCode4013Count Long The number of occurrences of the error code 4013.
    retCode5001Count Long The number of occurrences of the error code 5001.
    retCode5024Count Long The number of occurrences of the error code 5024.
    retCode5167Count Long The number of occurrences of the error code 5167.
    retCode5217Count Long The number of occurrences of the error code 5217.
    retCode6002Count Long The number of occurrences of the error code 6002.
    retryCount Double The number of retries.
    server String The address of the application server that responded to the request.
    serverIp String The IP address of the OBServer node.
    sqlId String The ID of the SQL statement.
    sqlTextShort String The foremost 100 characters of the SQL text.
    sqlType String The type of the SQL statement.
    strongConsistencyPercentage Double The percentage of strong-consistency reads of the SQL statement.
    sumCpuTimeMs Double The total CPU time, in milliseconds.
    sumElapsedTime Double The total response time, in milliseconds.
    sumLogicalReads Double The total number of logical reads.
    sumWaitTime Double The wait time of the longest wait event, in milliseconds.
    tableScanPercentage Double The percentage of full-table scans.
    tenantId Integer The ID of the tenant.
    tenantName String The name of the tenant.
    userName String The username.
    waitEvent String The longest wait event.
    weakConsistencyPercentage Double The percentage of weak-consistency reads of the SQL statement.

Examples

Sample request

Query the slow SQL statements for the tenant with the ID 1196 in the cluster with the ID 250 during the period from 2024-07-28T00:00:00+08:00 to 2024-07-29T00:00:00+08:00.

GET /api/v2/ob/clusters/250/tenants/1196/slowSql?startTime=2024-07-28T00%3A00%3A00%2B08%3A00&endTime=2024-07-29T00%3A00%3A00%2B08%3A00

Sample response

{
  "data": {
    "contents": [
      {
        "avgAffectedRows": 0,
        "avgApplicationWaitTime": 0,
        "avgBlockCacheHit": 0,
        "avgBlockIndexCacheHit": 0,
        "avgBloomFilterCacheHit": 0,
        "avgConcurrencyWaitTime": 0,
        "avgCpuTime": 108.49,
        "avgDecodeTime": 0,
        "avgDiskReads": 0,
        "avgElapsedTime": 108.49,
        "avgExecuteTime": 108.27,
        "avgExecutorRpcCount": 0,
        "avgGetPlanTime": 0.22,
        "avgLogicalReads": 0,
        "avgMemstoreReadRows": 0,
        "avgNetTime": 0,
        "avgNetWaitTime": 0,
        "avgPartitionCount": 0,
        "avgQueueTime": 0,
        "avgReturnRows": 0,
        "avgRowCacheHit": 0,
        "avgRpcCount": 0,
        "avgScheduleTime": 0,
        "avgSsstoreReadRows": 0,
        "avgUserIoWaitTime": 0,
        "avgWaitCount": 0,
        "avgWaitTime": 0,
        "dbName": "oceanbase",
        "distPlanPercentage": 0,
        "execPs": 0.02,
        "executions": 1,
        "failCount": 1,
        "failPercentage": 100,
        "inner": false,
        "lastFailCode": 0,
        "lastFailTimestamp": 0,
        "localPlanPercentage": 0,
        "maxAffectedRows": 0,
        "maxApplicationWaitTime": 0,
        "maxConcurrencyWaitTime": 0,
        "maxCpuTime": 108.49,
        "maxDiskReads": 0,
        "maxElapsedTime": 108.49,
        "maxReturnRows": 0,
        "maxUserIoWaitTime": 0,
        "missPlanPercentage": 100,
        "obDbId": 201001,
        "obTenantId": 1010,
        "remotePlanPercentage": 0,
        "retCode4012Count": 0,
        "retCode4013Count": 0,
        "retCode5001Count": 0,
        "retCode5024Count": 0,
        "retCode5167Count": 0,
        "retCode5217Count": 0,
        "retCode6002Count": 0,
        "retryCount": 0,
        "server": "xxx.xxx.xxx.xxx:2882",
        "serverIp": "xxx.xxx.xxx.xxx",
        "sqlId": "7FA0ED8C8C94A4F26548FCDDA2368C21",
        "sqlTextShort": "CALL DBMS_BALANCE.TRIGGER_PARTITION_BALANCE();",
        "sqlType": "OTHER",
        "strongConsistencyPercentage": 0,
        "sumCpuTimeMs": 108.49,
        "sumElapsedTime": 108.49,
        "sumLogicalReads": 0,
        "sumWaitTime": 0,
        "tableScanPercentage": 0,
        "tenantId": 1196,
        "tenantName": "ocp_admin_pr",
        "userName": "root",
        "waitEvent": "none",
        "weakConsistencyPercentage": 0
      },
      {
        "avgAffectedRows": 0,
        "avgApplicationWaitTime": 0,
        "avgBlockCacheHit": 0,
        "avgBlockIndexCacheHit": 0,
        "avgBloomFilterCacheHit": 0,
        "avgConcurrencyWaitTime": 0,
        "avgCpuTime": 105.02,
        "avgDecodeTime": 0,
        "avgDiskReads": 0,
        "avgElapsedTime": 105.02,
        "avgExecuteTime": 99.28,
        "avgExecutorRpcCount": 0,
        "avgGetPlanTime": 5.74,
        "avgLogicalReads": 0,
        "avgMemstoreReadRows": 0,
        "avgNetTime": 0,
        "avgNetWaitTime": 0,
        "avgPartitionCount": 2,
        "avgQueueTime": 0,
        "avgReturnRows": 1,
        "avgRowCacheHit": 0,
        "avgRpcCount": 0,
        "avgScheduleTime": 0,
        "avgSsstoreReadRows": 0,
        "avgUserIoWaitTime": 0,
        "avgWaitCount": 0,
        "avgWaitTime": 0,
        "dbName": "oceanbase",
        "distPlanPercentage": 0,
        "execPs": 0.02,
        "executions": 1,
        "failCount": 0,
        "failPercentage": 0,
        "inner": false,
        "lastFailCode": 0,
        "lastFailTimestamp": 0,
        "localPlanPercentage": 100,
        "maxAffectedRows": 0,
        "maxApplicationWaitTime": 0,
        "maxConcurrencyWaitTime": 0,
        "maxCpuTime": 105.02,
        "maxDiskReads": 0,
        "maxElapsedTime": 105.02,
        "maxReturnRows": 1,
        "maxUserIoWaitTime": 0,
        "missPlanPercentage": 100,
        "obDbId": 201001,
        "obTenantId": 1010,
        "remotePlanPercentage": 0,
        "retCode4012Count": 0,
        "retCode4013Count": 0,
        "retCode5001Count": 0,
        "retCode5024Count": 0,
        "retCode5167Count": 0,
        "retCode5217Count": 0,
        "retCode6002Count": 0,
        "retryCount": 0,
        "server": "xxx.xxx.xxx.xxx:2882",
        "serverIp": "xxx.xxx.xxx.xxx",
        "sqlId": "8B5B4B4CC550A9251AE501E633E90D95",
        "sqlTextShort": "SELECT /*+ workload_repository_snapshot query_time",
        "sqlType": "SELECT",
        "strongConsistencyPercentage": 100,
        "sumCpuTimeMs": 105.02,
        "sumElapsedTime": 105.02,
        "sumLogicalReads": 0,
        "sumWaitTime": 0,
        "tableScanPercentage": 100,
        "tenantId": 1196,
        "tenantName": "ocp_admin_pr",
        "userName": "root",
        "waitEvent": "none",
        "weakConsistencyPercentage": 0
      }
    ]
  },
  "duration": 14,
  "server": "f00e301d58",
  "status": 200,
  "successful": true,
  "timestamp": "2024-07-29T10:50:22.176+08:00",
  "traceId": "1ab38f7744b4a012"
}

Previous topic

Query the operator structure of an execution plan
Last

Next topic

Query snapshots
Next
What is on this page
Description
Call description
Prerequisites
Request path
Request parameters
Response parameters
Examples
Sample request
Sample response