OceanBase logo

OceanBase

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

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

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

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Binlog Service

V4.0.1

  • Overview
  • Compatibility
  • Deployment guide
  • Parameters
  • Management Command
    • Overview
    • Node management
    • Task management
    • Instance management
    • Session management
    • File management
  • Install obcdc
  • Monitoring and alerting
  • Troubleshooting
  • Release Notes
    • Release notes
    • obbinlog Community Edition V4.0.1

Download PDF

Overview Compatibility Deployment guide Parameters Overview Node management Task management Instance management Session management File management Install obcdc Monitoring and alerting Troubleshooting Release notes obbinlog Community Edition V4.0.1
OceanBase logo

The Unified Distributed Database for the AI Era.

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

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Binlog Service
  3. V4.0.1
iconOceanBase Binlog Service
V 4.0.1
  • V 4.2.5
  • V 4.2.0

Session management

Last Updated:2025-03-21 09:41:05  Updated
share
What is on this page
Query connection sessions on a binlog instance
Syntax
Parameters
Examples
Terminate a connection session on a binlog instance
Syntax
Parameters
Examples

folded

share

Query connection sessions on a binlog instance

You can query the connection sessions on a binlog instance. For more information, see SHOW PROCESSLIST Statement.

Syntax

SHOW [FULL] PROCESSLIST FOR INSTANCE instance_name; 

Parameters

Parameter Description
FULL Optional. If you do not specify this parameter, the SHOW PROCESSLIST statement shows only the former 100 characters of each statement in the Info column.
instance_name The name of the binlog instance to query.

Examples

Query the connection sessions on the specified binlog instance.

SHOW FULL PROCESSLIST FOR INSTANCE eo46r4f2e8;

The output is as follows:

+-------+------+-----------------+------+---------+------+-------+-----------------------+
| Id    | User | Host            | db   | Command | Time | State | Info                  |
+-------+------+-----------------+------+---------+------+-------+-----------------------+
| 54286 | OBM  | 10.10.10.1:0    | NULL | Query   |    0 | Init  | SHOW FULL PROCESSLIST |
+-------+------+-----------------+------+---------+------+-------+-----------------------+

The following table describes the columns in the result set.

Column Description
Id The ID of the session.
User The user of the session. The user OBM is an internal user of the binlog server.
Host The server of the connection session.
db The default database of the thread. The value NULL indicates that no default database has been selected.
Command The type of the statement executed on the client. The value Sleep indicates that the session is idle.
Time The duration that the thread remains in the current status, in seconds.
State The operation or event being executed by the thread, or the status of the thread.
Info The statement being executed by the thread. The value NULL indicates that no statement is being executed.

Terminate a connection session on a binlog instance

You can terminate a connection session on a binlog instance. For more information, see KILL Statement.

Syntax

KILL [CONNECTION | QUERY] processlist_id FOR INSTANCE instance_name; 

Parameters

Parameter Description
KILL CONNECTION Terminates the ongoing statement of the connection, as well as the connection associated with the given processlist_id.
KILL QUERY Terminates the ongoing statement of the connection but retains the connection.
processlist_id The ID of the session, which is the value of Id in the output of the SHOW [FULL] PROCESSLIST statement.
instance_name The name of the binlog instance whose session is to be terminated.

Examples

  1. Query the sessions on the specified binlog instance.

    SHOW PROCESSLIST FOR INSTANCE yfj056ib5w;
    

    The output is as follows:

    +--------+------+-----------------+------+---------+--------+-------+------------------+
    | Id     | User | Host            | db   | Command | Time   | State | Info             |
    +--------+------+-----------------+------+---------+--------+-------+------------------+
    | 169693 | OBM  | 10.10.10.1:0    | NULL | Sleep   | 162986 |       |                  |
    | 184362 | OBM  | 10.10.10.1:0    | NULL | Sleep   | 147985 |       |                  |
    | 329035 | OBM  | 10.10.10.1:0    | NULL | Query   |      0 | Init  | SHOW PROCESSLIST |
    +--------+------+-----------------+------+---------+--------+-------+------------------+
    
  2. Terminate the session with the ID 169693, as well as the connection associated with this ID.

    KILL CONNECTION 169693 FOR INSTANCE yfj056ib5w;
    
  3. Terminate the session with the ID 184362 but retain the connection.

    KILL QUERY 184362 FOR INSTANCE yfj056ib5w;
    
  4. Query the sessions on this binlog instance again.

    SHOW PROCESSLIST FOR INSTANCE yfj056ib5w;
    

    The output is as follows:

    +--------+------+-----------------+------+---------+------+-------+------------------+
    | Id     | User | Host            | db   | Command | Time | State | Info             |
    +--------+------+-----------------+------+---------+------+-------+------------------+
    | 184362 | OBM  | 10.10.10.1:0    | NULL | Sleep   |    1 |       |                  |
    | 329086 | OBM  | 10.10.10.1:0    | NULL | Query   |    0 | Init  | SHOW PROCESSLIST |
    +--------+------+-----------------+------+---------+------+-------+------------------+
    

Previous topic

Instance management
Last

Next topic

File management
Next
What is on this page
Query connection sessions on a binlog instance
Syntax
Parameters
Examples
Terminate a connection session on a binlog instance
Syntax
Parameters
Examples