OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Database Proxy

V4.3.1
  • What is ODP?
  • Installation and deployment
    • Overview
    • Deploy ODP by using obd
    • Deploy ODP by using OCP
    • Deploy ODP by using the CLI
    • Deployment modes
  • Basic operations
  • Configuration parameter
    • View and modify parameters
    • Parameter summary
    • Global parameters
      • automatic_match_work_thread
      • block_thread_num
      • cache_cleaner_clean_interval
      • check_tenant_locality_change
      • client_max_connections
      • client_max_memory_size
      • client_session_id_version
      • client_sock_option_flag_out
      • client_tcp_keepcnt
      • client_tcp_keepidle
      • client_tcp_keepintvl
      • client_tcp_user_timeout
      • cluster_count_high_water_mark
      • cluster_expire_time
      • config_server_refresh_interval
      • congestion_fail_window
      • congestion_failure_threshold
      • congestion_retry_interval
      • connection_diagnosis_option
      • connect_observer_max_retries
      • current_local_config_version
      • default_buffer_water_mark
      • default_inactivity_timeout
      • delay_exit_time
      • delay_update_entry_interval
      • detect_server_timeout
      • digest_sql_length
      • enable_abort_conn_info
      • enable_async_log
      • enable_async_pull_location_cache
      • enable_bad_route_reject
      • enable_binlog_service
      • enable_cached_server
      • enable_causal_order_read
      • enable_client_connection_lru_disconnect
      • enable_client_ip_checkout
      • enable_cluster_checkout
      • enable_compression_protocol
      • enable_congestion
      • enable_connection_diagnosis
      • enable_cpu_isolate
      • enable_cpu_topology
      • enable_extra_prometheus_metric
      • enable_flow_control
      • enable_full_link_trace
      • enable_full_username
      • enable_get_rslist_remote
      • enable_global_ps_cache
      • enable_index_route
      • enable_monitor_stat
      • enable_ob_protocol_v2
      • enable_ob_protocol_v2_with_client
      • enable_obproxy_rpc_service
      • enable_partition_table_route
      • enable_performance_mode
      • enable_pl_route
      • enable_primary_zone
      • enable_prometheus
      • enable_proxy_scramble
      • enable_qa_mode
      • enable_qos
      • enable_report_session_stats
      • enable_reroute
      • enable_sequence_prefetch
      • enable_sharding
      • enable_single_leader_node_routing
      • enable_standby
      • enable_stat
      • enable_strict_kernel_release
      • enable_strict_stat_time
      • enable_sync_all_stats
      • enable_syslog_file_compress
      • enable_syslog_wf
      • enable_trace
      • enable_trace_stats
      • enable_trans_detail_stats
      • enable_transaction_internal_routing
      • enable_xa_route
      • fetch_proxy_bin_random_time
      • fetch_proxy_bin_timeout
      • flow_consumer_reenable_threshold
      • flow_event_queue_threshold
      • flow_high_water_mark
      • flow_low_water_mark
      • grpc_client_num
      • grpc_thread_num
      • hot_upgrade_exit_timeout
      • hot_upgrade_failure_retries
      • hot_upgrade_rollback_timeout
      • idc_list_refresh_interval
      • ignore_local_config
      • internal_cmd_mem_limited
      • ip_listen_mode
      • ldg_info_refresh_interval
      • listen_port
      • local_bound_ip
      • local_bound_ipv6_ip
      • log_cleanup_interval
      • log_dir_size_threshold
      • log_file_percentage
      • long_async_task_timeout
      • max_log_file_size
      • max_syslog_file_count
      • max_syslog_file_time
      • mem_leak_check_class_name
      • mem_leak_check_mod_name
      • metadb_server_state_refresh_interval
      • min_congested_connect_timeout
      • min_keep_congestion_interval
      • monitor_cost_ms_unit
      • monitor_item_limit
      • monitor_item_max_idle_period
      • monitor_log_level
      • monitor_stat_dump_interval
      • monitor_stat_high_threshold
      • monitor_stat_low_threshold
      • monitor_stat_middle_threshold
      • need_convert_vip_to_tname
      • net_accept_threads
      • net_config_poll_timeout
      • normal_pl_update_threshold
      • obproxy_config_server_url
      • obproxy_sys_password
      • partition_location_expire_relative_time
      • prometheus_cost_ms_unit
      • prometheus_listen_port
      • prometheus_sync_interval
      • protocol_diagnosis_level
      • proxy_hot_upgrade_check_interval
      • proxy_id
      • proxy_info_check_interval
      • proxy_local_cmd
      • proxy_mem_limited
      • qa_mode_mock_public_cloud_slb_addr
      • qos_stat_clean_interval
      • qos_stat_item_limit
      • refresh_idc_list
      • refresh_json_config
      • refresh_rslist
      • request_buffer_length
      • rootservice_list
      • routing_cache_mem_limited
      • rpc_enable_direct_expire_route_entry
      • rpc_enable_congestion
      • rpc_enable_global_index
      • rpc_enable_force_srv_black_list
      • rpc_enable_reroute
      • rpc_enable_parallel_handler
      • rpc_enable_retry_request_info_log
      • rpc_force_srv_black_list
      • rpc_max_request_batch_size
      • rpc_listen_port
      • rpc_max_response_batch_size
      • rpc_net_timeout_base
      • rpc_max_server_table_entry_num
      • rpc_request_timeout
      • rpc_period_task_interval
      • rpc_server_entry_expire_time
      • rpc_request_timeout_delta
      • rpc_server_net_invalid_time_us
      • rpc_server_net_handler_expire_time
      • rpc_server_net_max_pending_request
      • rpc_srv_session_pool_inactive_timeout
      • rpc_support_key_partition_shard_request
      • sequence_entry_expire_time
      • sequence_fail_retry_count
      • sequence_prefetch_threshold
      • server_detect_fail_threshold
      • server_detect_mode
      • server_detect_refresh_interval
      • server_routing_mode
      • server_state_refresh_interval
      • server_tcp_init_cwnd
      • server_tcp_keepcnt
      • server_tcp_keepidle
      • server_tcp_keepintvl
      • server_tcp_user_timeout
      • shard_scan_thread_num
      • short_async_task_timeout
      • skip_proxy_sys_private_check
      • skip_proxyro_check
      • slow_proxy_process_time_threshold
      • slow_transaction_time_threshold
      • sock_option_flag_out
      • sock_packet_mark_out
      • sock_packet_tos_out
      • sock_recv_buffer_size_out
      • sock_send_buffer_size_out
      • sql_table_cache_expire_relative_time
      • sql_table_cache_mem_limited
      • sqlaudit_mem_limited
      • stack_size
      • stat_dump_interval
      • stat_table_sync_interval
      • syslog_io_bandwidth_limit
      • syslog_level
      • task_thread_num
      • tenant_location_valid_time
      • tunnel_request_size_threshold
      • username_separator
      • work_thread_num
      • xflush_log_level
    • Multi-level parameters
      • binlog_service_ip
      • compression_algorithm
      • enable_client_ssl
      • enable_cloud_full_username
      • enable_read_write_split
      • enable_server_ssl
      • enable_transaction_split
      • enable_weak_reroute
      • mysql_version
      • ob_max_read_stale_time
      • obproxy_force_parallel_query_dop
      • obproxy_read_consistency
      • obproxy_read_only
      • observer_query_timeout_delta
      • observer_sys_password
      • observer_sys_password1
      • proxy_idc_name
      • proxy_primary_zone_name
      • proxy_route_policy
      • proxy_tenant_name
      • query_digest_time_threshold
      • read_stale_retry_interval
      • rootservice_cluster_name
      • route_diagnosis_level
      • slow_query_time_threshold
      • ssl_attributes
      • target_db_server
  • Connection management
    • Principles
    • Session status synchronization
    • Configure a globally unique client session ID
    • Client session
    • Server session
    • Network connection
  • Data routing
    • Factors affecting data routing
    • ODP routing
    • Intra-tenant routing
      • Overview
      • IP address-based routing
      • Partitioned table-based routing for strong-consistency reads
      • Global index table-based routing for strong-consistency reads
      • Replicated table-based routing for strong-consistency reads
      • Primary zone-based routing for strong-consistency reads
      • Strategy-based routing
      • Distributed transaction routing
      • Rerouting
      • Forcible routing
    • Automatic routing to the primary/standby tenants
    • Read/Write separation
    • Follower latency threshold
    • Function partition key routing
      • Overview
      • String functions
      • Numeric calculation functions
      • Date calculation functions
      • FAQ
    • Character set-based routing
  • Logs
    • Overview
    • obproxy_diagnosis.log
    • obproxy_digest.log
    • obproxy_error.log
    • obproxy_slow.log
    • obproxy_stat.log
    • obproxy.log
  • Commands
    • Overview
    • Dedicated ODP commands
      • ALTER
      • KILL
      • ping
      • SHOW
    • Compatible MySQL commands
      • BINLOG
      • KILL
      • SHOW PROCESSLIST
      • SHOW RELAYLOG EVENTS
      • SHOW SLAVE HOSTS
  • High availability mechanism
    • Overview
    • High availability of ODP services
    • High availability of OceanBase Database
    • High availability testing
  • Security and protocols
  • RPC service port
  • Operation and maintenance
    • Troubleshooting logic
    • Performance analysis
    • Show Trace
    • Routing diagnostics
      • Overview
      • Obtain diagnostic information
      • Diagnostic point troubleshooting
        • Overview
        • SQL_PARSE
        • ROUTE_INFO
        • LOCATION_CACHE_LOOKUP
        • ROUTINE_ENTRY_LOOKUP_DONE
        • FETCH_TABLE_RELATED_DATA
        • TABLE_ENTRY_LOOKUP_DONE
        • EXPR_PARSE
        • CALC_ROWID
        • RESOLVE_TOKEN
        • RESOLVE_EXPR
        • CALC_PARTITION_ID
        • PARTITION_ID_CALC_DONE
        • PARTITION_ENTRY_LOOKUP_DONE
        • ROUTE_POLICY
        • CONGESTION_CONTROL
        • RETRY
        • HANDLE_RESPONSE
      • Examples
    • Memory leak diagnostics
    • Connection diagnostics
  • Release Notes
    • Versioning rules
    • Enterprise Edition
      • V4.3
        • ODP Enterprise Edition V4.3.1
        • ODP Enterprise Edition V4.3.0
      • V4.2
        • ODP Enterprise Edition V4.2.3
        • ODP Enterprise Edition V4.2.2
        • ODP Enterprise Edition V4.2.1
      • V4.1
        • ODP Enterprise Edition V4.1.0
      • V4.0
        • ODP Enterprise Edition V4.0.0
      • V3.2
        • ODP Enterprise Edition V3.2.11
        • ODP Enterprise Edition V3.2.3.5
    • Community Edition
      • V4.3
        • ODP Community Edition V4.3.1
      • V4.2
        • ODP Community Edition V4.2.3
        • ODP Community Edition V4.2.1
        • ODP Community Edition V4.2.0
      • V4.1
        • ODP Community Edition V4.1.0
      • V4.0
        • ODP Community Edition V4.0.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Database Proxy
  3. V4.3.1

SHOW

Last Updated:2026-09-04 08:23:04

Purpose
Syntax
Parameters
Examples
Query ODP information
Query ODP connection information
Query memory usage information of ODP
Query cluster information
Query internal statistical items of ODP
Query alert logs

Purpose

You can use this statement to query information about OceanBase Database Proxy (ODP) and OceanBase Database.

Syntax

SHOW {
    PROXYINFO BINARY
   | PROXYINFO UPGRADE
   | PROXYINFO IDC
   | PROXYCLUSTER [IDC] [like 'cluster_name']
   | PROXYCONFIG [diff] [user] [like 'config_name']
   | PROXYCONGESTION [all] [cluster_name]
   | PROXYMEMORY [objpool] [num]
   | PROXYNET CONNECTION [thread_id [LIMIT xx]]
   | PROXYNET THREAD
   | PROXYROUTE [like 'cluster [tenant [db [table]]]']
   | PROXYSESSION
   | PROXYSESSION ATTRIBUTE [id [like 'xxx']]
   | PROXYSESSION STAT id [like 'xx']
   | PROXYSESSION VARIABLES [all] id [like 'xx']
   | PROXYSM [sm_id]
   | PROXYSTAT [refresh] [like 'name']
   | WARNLOG [[[log_id], thread_id], time]
};

Parameters

Parameter
Description
PROXYINFO BINARY Returns binary ODP information in rich text, including the version, packaging time, and MD5 hash.
PROXYINFO UPGRADE Returns ODP runtime and upgrade information in rich text.
PROXYINFO IDC Returns information about the Internet Data Centers (IDCs) that match ODP in rich text.
PROXYCLUSTER [IDC] [like 'cluster_name'] Returns details of the RootService list of the cluster, if IDC is specified. You can use the like clause for fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
PROXYCONFIG [diff] [user] [like 'config_name'] Returns ODP parameters. If diff is specified, only parameters with values different from the default values are returned. If diff user is specified, only user-level parameters with values different from the default values are returned. The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
PROXYCONGESTION [all] [cluster_name] Returns information about all clusters served by ODP. The returned information varies based on the following cases:
  • By default, the information about blocklisted OBserver nodes of all clusters is returned. An OBServer node is blocklisted if the value of any of the dead_congested, alive_congested, is_zone_upgrading, and is_server_upgrading parameters is true.
  • If all is specified, information about the OBServer nodes of all clusters, including OBServer nodes in and those not in the blocklists, is returned.
  • If only clustername is specified, the information about blocklisted OBServer nodes in the specified cluster is returned.
  • If all options are specified, the information about OBServer nodes in the specified cluster is returned.

Note

In ODP of a version earlier than V1.1.2, clustername does not need to be enclosed in quotation marks. In ODP V1.1.2 and later, clustername must be enclosed in single or double quotation marks.

PROXYMEMORY [objpool] [num] Returns the memory usage information of ODP, including the size of allocated memory, size of used memory, and type of each module, to facilitate ODP performance analysis. You can specify the num option to view the memory allocation stack. A maximum of 10 layers can be displayed. You need to modify the mem_leak_check_mod_name and mem_leak_check_class_name parameters.
PROXYNET CONNECTION [thread_id [LIMIT xx]] Returns the internal attributes of all network connections in ODP. You can specify thread_id to view the internal attributes of network connections on the specified thread. If thread_id is not specified, the internal attributes of all network connections in ODP are returned. If thread id is specified, you can also specify LIMIT [offset,] rows and LIMIT rows OFFSET offset. Their formats are fully compatible with those in MySQL. If rows is set to -1, all rows are returned.

Note

For more information, see Network connection.

PROXYNET THREAD Returns the attributes of worker threads in ODP. The number of worker threads of ODP is specified by work_thread_num.
PROXYROUTE [like 'cluster [tenant [db [table]]]'] Returns the status information about table entries in ODP. By default, the information about all table entries is returned. The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_). SQL routing address information in ODP is provided in the unit of table entry. Each table entry is comprised of the cluster name, tenant name, database name, and table name. An SQL query without a table name is marked with __all_dummy in ODP.
PROXYSESSION Returns the internal status of all client sessions for current tenant connections in ODP. Unlike the SHOW PROCESSLIST statement, the SHOW PROXYSESSION statement can also show the cluster of each tenant.
PROXYSESSION ATTRIBUTE [id [like 'xxx']] Returns the details of a client session, including the related server session of this client session.
  • If id is not specified, the details of the current session are returned (supported in ODP V1.1.0 and later). Fuzzy search is supported for retrieving the value of a specified attribute in the current session (supported in ODP V1.1.2 and later).
  • If id is specified, fuzzy search is supported for retrieving the value of a specified attribute (supported in ODP V1.1.0 and later).
  • Here, id can be cs_id or connection_id, and the same results are returned.
    cs_id indicates the ID of a client session in ODP. connection_id indicates the ID of a client session in OceanBase Database. In MySQL mode, you can use SELECT CONNECTION_ID(); to query the client session ID. In Oracle mode, you can use SHOW FULL PROCESSLIST; to query the client session ID.
  • The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
PROXYSESSION STAT id [like 'xx'] Returns the internal statistical items of a specified client session in ODP, such as the SQL response count and SQL response size.
  • Here, id can be cs_id or connection_id, and the same results are returned.
    cs_id indicates the ID of a client session in ODP. connection_id indicates the ID of a client session in OceanBase Database. In MySQL mode, you can use SELECT CONNECTION_ID(); to query the client session ID. In Oracle mode, you can use SHOW FULL PROCESSLIST; to query the client session ID.
  • The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
PROXYSESSION VARIABLES [all] id [like 'xx'] Returns the variables of a client session.
  • If all is not specified, the local session variables of the specified client session, including modified system and user variables, are returned.
  • If all is specified, all session variables of the specified client session, including all system and user variables, are returned.
  • Here, id can be cs_id or connection_id, and the same results are returned.
    cs_id indicates the ID of a client session in ODP. connection_id indicates the ID of a client session in OceanBase Database. In MySQL mode, you can use SELECT CONNECTION_ID(); to query the client session ID. In Oracle mode, you can use SHOW FULL PROCESSLIST; to query the client session ID.
  • The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
PROXYSM [sm_id] Returns the internal status of the state machines in ODP in rich text. You can also specify sm_id to return the internal status of the specified state machine.
PROXYSTAT [refresh] [like 'xx'] Returns the internal statistical items of ODP.
  • If refresh is not specified, the internal statistical items summarized the last time are returned by default.
  • If refresh is specified, the summarized local statistical items are forcibly refreshed and then returned.
  • The like clause supports fuzzy search. Supported wildcard characters are the percent sign (%) and the underscore (_).
  • In the output, if the persist_type value of a statistical item isPERSISTENT, the statistical item will be persisted to the ob_all_proxy_stat table.
  • Local statistical items are refreshed at an interval specified by stat_table_sync_interval, which is 60s by default.
WARNLOG [[[log_id], thread_id], time] Returns the WARN- and ERROR-level logs with the specified log ID generated within the specified period. You can specify tread_id to query the alert logs of the specified thread. If you are not concerned about the log ID or thread ID, you can set log_id or thread_id to -1, which specifies to obtain the alert logs for all log IDs or thread IDs.

Examples

Query ODP information

  • Query the ODP version

    show proxyinfo binary\G
    

    The output is as follows:

    *************************** 1. row ***************************
    name: binary info
    info: ObProxy-OceanBase 4.0.0-20221103165243.el7
    version:RELEASE_7U
    MD5
    REVISION:20221103165243-7c7e5821009b2d3924d1bc7a8165edf7384f6ed3
    BUILD_TIME:Nov  3 2022 16:57:16
    
  • Query ODP runtime and upgrade information

    show proxyinfo upgrade\G
    

    The output is as follows:

    *************************** 1. row ***************************
    name: hot upgrade info
    info: {is_inited:true, proxy_port:13205, proxy_ip:"10.10.10.1", 
    is_self_md5_available:false, proxy_self_md5:"", upgrade_failures:0, check_available_failures:0, is_timeout_rollback:false, timeout_rollback_timeout_at:0,  wait_cr_finish_timeout_at:0, is_self_binary:false, 
    last_new_binary_name:"", last_new_binary_md5:"", cmd:"", hu_cont:NULL, 
    mysql_proxy:{this:0x1107a750, is_inited:true, stop:false, is_raw_execute:false, timeout_ms:5000, 
    client_pool:{this:0x7fd04d55d280, is_inited:true, stop:false, mc_count:1, cluster_resource:0x7fd04d5a5f80}, 
    raw_mysql_client:{is_inited:true, info:{has_passwd_scrambled:false, user_name:"admin", database_name:"oceanbase", request_sql:""}, svr_addr_[0]="0.0.0.0", svr_addr_[1]="0.0.0.0", svr_addr_[2]="0.0.0.0"}}, 
    info:{is_inherited:false, upgrade_version:0, need_conn_accept:true, user_rejected:0, fd:23, sub_pid:-1, graceful_exit_end_time:0, graceful_exit_start_time:0, active_client_vc_count:-1, local_addr:"10.10.10.1:13205", rc_status:"", 
    hu_cmd:"", state:"HU_STATE_WAIT_HU_CMD", hu_status:"", is_parent:true, sub_status:"", last_parent_status:"", last_sub_status:"", 
    upgrade_version_buf:"", argc:1, argv[0]="./bin/obproxy", inherited_argv[0]="./bin/obproxy", inherited_argv[1]="(null)", inherited_argv[2]="(null)", inherited_argv[3]="(null)"}}
    
  • Query information about IDCs matching ODP

    show proxyinfo idc;
    

    The output is as follows:

    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    | global_idc_name | cluster_name | match_type     | regions_name | same_idc     | same_region | other_region |
    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    | idc1            | MetaDataBase | MATCHED_BY_IDC | ["HZ"]       | ["z1", "z2"] | []          | ["z3", "z4"] |
    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    

Query ODP connection information

Here is an example of querying ODP connection information. For more information, see Client session.

The following sample code queries attributes whose names contain id in the client session with the ID 2.

show proxysession attribute 2 like '%id%';

The output is as follows:

+------------------------+--------------------+----------------+
| attribute_name         | value              | info           |
+------------------------+--------------------+----------------+
| proxy_sessid           | 756006681247547396 | cs common      |
| cs_id                  | 2                  | cs common      |
| tid                    | 2230520            | cs common      |
| pid                    | 2230520            | cs common      |
| last_insert_id_version | 0                  | cs var version |
| server_sessid          | 2147549201         | last used ss   |
| ss_id                  | 4                  | last used ss   |
| last_insert_id_version | 0                  | last used ss   |
+------------------------+--------------------+----------------+

Query memory usage information of ODP

show proxymemory;

The output is as follows:

+-------------------------------+-----------+----------+----------+-------+----------+
| mod_name                      | mod_type  | hold     | used     | count | avg_used |
+-------------------------------+-----------+----------+----------+-------+----------+
| OB_ALLOC_CHUNK                | allocator | 29424512 | 29423792 |    15 |  1961586 |
| OB_ALLOC_BLOCK                | allocator | 24137696 | 23371079 |   223 |   104803 |
| OB_ALLOC_OBJECT               | allocator | 23260647 | 23253895 |   211 |   110208 |
| OB_MEMORY_STAT                | user      |    54336 |    54336 |     1 |    54336 |
| OB_TSI_FACTORY                | user      |  8757888 |  8757888 |    16 |   547368 |
| OB_PAGE_ARENA                 | user      |    32640 |    32640 |     4 |     8160 |
| OB_FIXED_QUEUE                | user      |    13008 |    13008 |     2 |     6504 |
| TEST                          | user      |    55400 |    55400 |     1 |    55400 |
| OB_HASH_BUCKET_CONF_CONTAINER | user      |    24720 |    24720 |     1 |    24720 |
| OB_HASH_BUCKET_TASK_MAP       | user      |    37376 |    37376 |     1 |    37376 |
| OB_HASH_NODE_CONF_CONTAINER   | user      |    15792 |    15792 |     2 |     7896 |
| OB_CONCURRENCY_OBJ_POOL       | user      | 14183104 | 14183104 |   175 |    81046 |
| OB_CORE_LOCAL_STORAGE         | user      |     2048 |     2048 |     1 |     2048 |
| OB_PROXY_DEFAULT_SYS_VARIABLE | user      |    32768 |    32768 |     2 |    16384 |
| OB_PROXY_SQL_PARSE            | user      |    24576 |    24576 |     3 |     8192 |
| OB_PROXY_COMMON_DQ            | user      |     8200 |     8200 |     1 |     8200 |
| OB_LARGE_IO_BUFFER            | user      |    12039 |    12039 |     1 |    12039 |
+-------------------------------+-----------+----------+----------+-------+----------+

Query cluster information

The following sample code queries information about OBServer nodes in a cluster:

show proxycongestion all "obcluster";

In this example, the cluster is named obcluster. The output is as follows. You must replace the cluster name with the actual one when you query information.

+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
| cluster_name    | zone_name | zone_state | server_ip          | server_state | alive_congested | last_alive_congested | dead_congested | last_dead_congested | stat_alive_failures | stat_conn_failures | conn_last_fail_time | conn_failure_events | alive_last_fail_time | alive_failure_events | ref_count |
+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
| obcluster       | zone1     | ACTIVE     | 10.10.10.1:13201   | ACTIVE       |               0 | 0                    |              0 | 0                   |                   0 |                  0 | 0                   |                   0 | 0                    |                    0 |         2 |
+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+

Query internal statistical items of ODP

The following sample code queries statistical items whose names contain global in ODP.

show proxystat refresh like '%global%';

The output is as follows, where global_client_connections_currently_open indicates the number of client connections with ODP and global_connections_currently_open indicates the sum of the number of client connections with ODP and the number of ODP connections with OceanBase Database.

+---------------------------------------------+-------+--------------+
| stat_name                                   | value | persist_type |
+---------------------------------------------+-------+--------------+
| get_congestion_from_global_cache_miss       |     0 | PERSISTENT   |
| get_congestion_from_global_cache_hit        |     0 | PERSISTENT   |
| kick_out_routine_entry_from_global_cache    |     0 | PERSISTENT   |
| gc_routine_entry_from_global_cache          |     0 | PERSISTENT   |
| get_routine_entry_from_global_cache_dirty   |     0 | PERSISTENT   |
| get_routine_entry_from_global_cache_hit     |     0 | PERSISTENT   |
| kick_out_partition_entry_from_global_cache  |     0 | PERSISTENT   |
| gc_partition_entry_from_global_cache        |     0 | PERSISTENT   |
| get_partition_entry_from_global_cache_dirty |     0 | PERSISTENT   |
| get_partition_entry_from_global_cache_hit   |     0 | PERSISTENT   |
| kick_out_table_entry_from_global_cache      |     0 | NULL         |
| gc_table_entry_from_global_cache            |     0 | NULL         |
| get_pl_from_global_cache_dirty_stat         |     0 | PERSISTENT   |
| get_pl_from_global_cache_hit                |     2 | PERSISTENT   |
| global_accepts_currently_open               |     4 | NULL         |
| global_connections_currently_open           |     1 | NULL         |
| global_client_connections_currently_open    |     1 | NULL         |
+---------------------------------------------+-------+--------------+

Query alert logs

  • Query alert logs generated at 2016-09-13 11:20:52.251 or later.

    show warnlog -1, -1, "2016-09-13 11:20:52.251";
    

    In this example, both log_id and thread_id are set to -1 to query all alert logs generated at the specified time or later.

  • Query alert logs with a log ID equal to or greater than 1000 that were generated by the thread with the ID 36592 at 2016-09-13 11:20:52.251 or later.

    show warnlog 1000, 36592, "2016-09-13 11:20:52.251";
    

Previous topic

ping
Last

Next topic

BINLOG
Next
on this page
Purpose
Syntax
Parameters
Examples
Query ODP information
Query ODP connection information
Query memory usage information of ODP
Query cluster information
Query internal statistical items of ODP
Query alert logs