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 Binlog Service

V4.2.5

  • Overview
  • Compatibility
  • Deployment guide
  • Configuration Information
    • Metadata
    • Local configurations
  • Control Commands
    • Overview
    • Node management
    • Task management
    • Instance management
    • Session management
    • File management
  • Monitoring and alerting
  • Troubleshooting
  • User Manual
    • Install obcdc
    • Update and upgrade
    • Performance tuning
  • Release Notes
    • Release notes
    • obbinlog V4.2.5
    • obbinlog V4.2.4
    • obbinlog V4.2.3
    • obbinlog V4.2.1
    • obbinlog V4.2.0
    • obbinlog Community Edition V4.0.1

Download PDF

Overview Compatibility Deployment guide Metadata Local configurations Overview Node management Task management Instance management Session management File management Monitoring and alerting Troubleshooting Install obcdc Update and upgrade Performance tuning Release notes obbinlog V4.2.5 obbinlog V4.2.4 obbinlog V4.2.3 obbinlog V4.2.1 obbinlog V4.2.0 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.2.5
iconOceanBase Binlog Service
V 4.2.5
  • V 4.2.5
  • V 4.2.0

Update and upgrade

Last Updated:2026-04-13 09:32:10  Updated
share
What is on this page
Upgrade the binlog service
Rotating-upgrade binlog instances
Update the configurations of an existing binlog instance

folded

share

Upgrade the binlog service

You can run the env/deploy.sh script to upgrade obbinlog. To do so, perform the following steps:

Note

This topic uses the upgrade of binlog service Community Edition as an example. To upgrade binlog service Enterprise Edition, contact OceanBase Technical Support to obtain the obbinlog installation package of the target version, and then follow the steps below.

  1. Download the obbinlog RPM package of the target version and decompress it. This operation does not directly install obbinlog.

    wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/obbinlog-ce-4.2.0-100000152024122710.el7.x86_64.rpm
    rpm2cpio obbinlog-ce-4.2.0-100000152024122710.el7.x86_64.rpm | cpio -idv
    

    The decompressed RPM package is stored in the ./home/ds/oblogproxy directory.

  2. Stop the binlog server.

    Notice

    This operation stops the current node from receiving new client requests, but does not affect the running binlog instances or the clients that are consuming binlogs.

    cd /home/ds/oblogproxy
    ./run.sh stop
    
  3. Use the ./home/ds/oblogproxy/env/deploy.sh script in the new package to update the original package.

    cd ./home/ds/oblogproxy/env
    sh deploy.sh -m upgrade -d /home/ds/oblogproxy
    

    In this example, the -d parameter specifies the original installation path of obbinlog. Modify it based on the actual installation path.

  4. Start the binlog server.

    cd /home/ds/oblogproxy
    ./run.sh start
    

    The upgrade of a binlog server node is completed.

Note

After all the binlog server nodes in the cluster are upgraded, binlog instances created or started later will use the new obbinlog package. For information about how to upgrade the existing binlog instances, see the Rotating-upgrade binlog instances section in this topic.

Rotating-upgrade binlog instances

You can upgrade binlog instances of a binlog task in rotating mode to reduce impact on your business.

If your binlog task involves multiple binlog instances, perform the following steps:

  1. Run the SHOW BINLOG STATUS command to query the primary binlog instance of the current binlog task. For more information about the command, see Task management.

  2. Run the SHOW BINLOG INSTANCES command to query all binlog instances of the current binlog task. For more information about the command, see Instance management.

  3. Upgrade the nodes where the binlog instances other than the primary one reside. For more information, see the Upgrade the binlog service section in this topic.

  4. Run the STOP BINLOG INSTANCE and START BINLOG INSTANCE commands to restart the binlog instances on the upgraded nodes. For more information about the commands, see Instance management.

  5. Run the SWITCH MASTER INSTANCE command to switch an upgraded binlog instance to be the primary instance of the current tenant. For more information about the command, see Instance management.

  6. Upgrade the nodes where the remaining binlog instances reside, and restart the binlog instances. For more information, see the Upgrade the binlog service section in this topic.

If your binlog task involves only one binlog instance, perform the following steps:

  1. Upgrade the node where the binlog instance resides. For more information, see Upgrade the binlog service section in this topic.

  2. Run the CREATE BINLOG INSTANCE command to create a binlog instance. For more information about the command, see Instance management.

  3. Run the SWITCH MASTER INSTANCE command to switch the new binlog instance to be the primary instance of the current tenant. For more information about the command, see Instance management.

  4. If you want to retain only one binlog instance, run the DROP BINLOG INSTANCE command to drop the old one. For more information about the command, see Instance management.

Update the configurations of an existing binlog instance

After a binlog instance is created, most of its configurations cannot be modified. If you want to update its configurations, you must rebuild it.

To reduce impact on your business, you can progressively rebuild the binlog instance by using control commands. For more information about the commands, see Instance management.

  1. Run the CREATE BINLOG INSTANCE command to create a binlog instance.

  2. Run the SWITCH MASTER INSTANCE command to switch the new binlog instance to be the primary instance of the current tenant.

  3. Run the DROP BINLOG INSTANCE command to drop the old binlog instance.

Previous topic

Install obcdc
Last

Next topic

Performance tuning
Next
What is on this page
Upgrade the binlog service
Rotating-upgrade binlog instances
Update the configurations of an existing binlog instance