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 Deployer

V4.3.0Community Edition
  • What is obd
  • Quick Start
    • Install obd
    • Quick deployment of OceanBase Database
    • Quickly deploy OCP
  • obd Command
    • Quick deployment commands
    • Cluster commands
    • Command groups
    • Image and repository commands
    • Test command groups
    • Tool commands
    • obdiag commands
    • Binlog service commands
    • Hardware commands
    • License commands
    • Password commands
    • Telemetry commands
  • User Guide
    • Usage overview
    • Deploy through GUI
      • Overview
      • Pattern configuration rules
      • Deploy an OceanBase cluster
      • Deploy OCP
      • Deploy OMS
      • Change components
      • Upgrade OCP
      • Upgrade OMS
    • Deploy through CLI
      • Configuration file
      • Component deployment
        • Deploy an OceanBase cluster
        • Deploy seekdb
        • Deploy obconfigserver
        • Deploy OMS
        • Deploy OCP
        • Deploy Alertmanager
        • Deploy obbinlog
        • Deploy oblogproxy
      • Cluster management
        • Physical Standby Database
          • Create a standby tenant
          • Role switching and decoupling
          • Switch the synchronization mode between primary and standby tenants
        • seekdb primary/standby instance
          • Create a standby instance
          • Role switching and decoupling
        • Scale out and component changes
        • Performance test
        • Diagnose a cluster
        • Backup and restore
        • Add a GUI monitoring system to an existing cluster
      • Cluster management
        • Use OCP to take over an OceanBase cluster deployed by obd
        • Take over an OceanBase cluster
      • Component upgrade
        • Upgrade OceanBase Database
        • Upgrade ODP
        • Upgrade OMS
  • Upgrade obd
  • FAQ
  • Error codes
  • Release Notes
    • Version rules
    • V4.3
      • OceanBase Deploy V4.3.0
    • V4.2
      • OceanBase Deployment Tool V4.2.0
    • V4.1
      • OceanBase Deployer V4.1.0
    • V4.0
      • OceanBase Deployer V4.0.0
    • V3.6
      • OceanBase Deployer V3.6.0
    • V3.5
      • OceanBase Deployer V3.5.0
    • V3.4
      • OceanBase Deployer V3.4.0
    • V3.3
      • OceanBase Deployer V3.3.0
    • V3.2
      • OceanBase Deployer V3.2.2
      • OceanBase Deployer V3.2.1
      • OceanBase Deployer V3.2.0
    • V3.1
      • OceanBase Deployer V3.1.2
      • OceanBase Deployer V3.1.1
      • OceanBase Deployer V3.1.0
    • V3.0
      • OceanBase Deployer V3.0.1
      • OceanBase Deployer V3.0.0
    • V2.10
      • OceanBase Deployer V2.10.1
      • OceanBase Deployer V2.10.0
    • V2.9
      • OceanBase Deployer V2.9.2
      • OceanBase Deployer V2.9.1
      • OceanBase Deployer V2.9.0
    • V2.8
      • OceanBase Deployment Tool V2.8.0
    • V2.7
      • OceanBase Deployment Tool V2.7.0
    • V2.6
      • OceanBase Deployment Tool V2.6.2
      • OceanBase Deployment Tool V2.6.1
      • OceanBase Deployment Tool V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployment Tool V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployment Tool V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployment Tool V2.1.0
    • V2.0
      • OceanBase Deployment Tool V2.0.1
      • OceanBase Deployment Tool V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0
  • Interactive deployment of OceanBase Database Community Edition
  • Deploy a Community Edition cluster using the obd graphical interface
  • Deploy a Community Edition cluster by using an obd configuration file

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V4.3.0

Binlog service commands

Last Updated:2026-09-04 08:21:29

obd binlog create
obd binlog drop
obd binlog show
obd binlog start
obd binlog stop

The Binlog service collects transaction logs from OceanBase Database and converts them into MySQL binlogs. It is primarily used for real-time data subscription scenarios. For more information about the Binlog service, see the OceanBase Binlog service documentation on the official website.

You can use the -h/--help option in each command to view the help information. Similarly, you can use the -v/--verbose option to view the detailed execution process when a command execution error occurs.

Note

  • The business tenant mentioned in this topic refers to the tenant in the OceanBase cluster that needs to generate binlog files.

  • Currently, the obd binlog command is supported only for OceanBase Database V4.2.1 and later. The ODP version must be V4.2.1 or later.

  • The cluster name and deployment name mentioned in this topic are the names obtained by executing the obd cluster list command. If the cluster where the business tenant resides is not managed by obd, you can perform a takeover operation. For more information, see Take over a cluster using obd.

obd binlog create

You can run this command to create a Binlog instance for the specified tenant.

obd binlog create <binlog deploy name> <oceanbase deploy name> <oceanbase tenant> [options]

# example
obd binlog create binlog_1 obdemo ob_mysql --replicate-num=3

The binlog deploy name parameter specifies the deployment name of the Binlog service, the oceanbase deploy name parameter specifies the name of the cluster where the business tenant is located, and the oceanbase tenant parameter specifies the name of the business tenant.

The following table describes the options.

Option
Required
Data type
Default value
Description
--replicate-num No int 1 Specifies the number of replicas of the Binlog instance of the tenant. When the value is greater than 1, the Binlog service randomly selects one replica as the primary instance.
-d/--odp/--obproxy-deployname No string ob_deployname Specifies the deployment name of the ODP cluster associated with the business tenant. This option is required only when the ODP cluster and the business cluster are not in the same deployment.
-p/--cdcro-password No string Empty Specifies the password of the cdcro user in the sys tenant. This option is required only when the cdcro user is manually created.

Note

If the cdcro user does not exist in the sys tenant of the cluster where the business tenant is located, this command automatically creates the cdcro user in the sys tenant.

--rs/--root-server-list No string Empty Specifies the list of machines where the Root Service and its replicas are located in the cluster where the business tenant is located. The value is obtained by running the SHOW PARAMETERS LIKE 'rootservice_list'; command. Multiple machines are separated by semicolons (;). The format is observer_ip1:rpc_port:mysql_port;observer_ip2:rpc_port:mysql_port.

Note

This option is supported only when the deployed obbinlog is of V4.3.5 or later. In the following scenarios, you can omit this option.

  • If the obconfig_url parameter is configured in the cluster where the business tenant is located (the value is obtained by running the SHOW PARAMETERS LIKE 'obconfig_url'; command), obd automatically uses the obconfig_url parameter to create a Binlog instance for the specified tenant.
  • If the cluster where the business tenant is located is the MetaDB cluster of the Binlog service, and the Deploy obbinlog and MetaDB method is used to deploy obbinlog, obd automatically concatenates the rs_list.

obd binlog drop

You can run this command to disable all Binlog instances of the specified tenant and delete the generated Binlog files. This command is equivalent to the DROP BINLOG FOR TENANT <cluster>.<tenant>; command in the Binlog service.

obd binlog drop <binlog deploy name> <oceanbase deploy name> <oceanbase tenant> [options]

# example
obd binlog drop binlog_1 obdemo ob_mysql

The binlog deploy name parameter specifies the deployment name of the Binlog service, the oceanbase deploy name parameter specifies the name of the cluster where the business tenant is located, and the oceanbase tenant parameter specifies the name of the business tenant.

obd binlog show

You can run this command to list all Binlog instances. This command is equivalent to the SHOW BINLOG INSTANCES FOR <cluster>.<tenant>; command in the Binlog service.

obd binlog show <deploy name> [options]

# example
obd binlog show binlog_1 -d obdemo -t ob_mysql

The deploy name parameter specifies the deployment name of the Binlog service.

The following table describes the options.

Option
Required
Data type
Default value
Description
-d/--deploy-name No string Empty The deployment name of the business cluster.
-t/-n/--tenant-name No string Empty The name of the business tenant.

Note

Both options must be specified or neither can be specified. If only one of the options is specified, an error is returned.

obd binlog start

You can run this command to start all Binlog instances of the specified tenant.

obd binlog start <binlog deploy name> <oceanbase deploy name> <oceanbase tenant> [options]

# example
obd binlog start binlog_1 obdemo ob_mysql

The binlog deploy name parameter specifies the deployment name of the Binlog service, the oceanbase deploy name parameter specifies the name of the cluster where the business tenant is located, and the oceanbase tenant parameter specifies the name of the business tenant.

obd binlog stop

You can run this command to stop all Binlog instances of the specified tenant.

obd binlog stop <binlog deploy name> <oceanbase deploy name> <oceanbase tenant> [options]

# example
obd binlog stop binlog_1 obdemo ob_mysql

The binlog deploy name parameter specifies the deployment name of the Binlog service, the oceanbase deploy name parameter specifies the name of the cluster where the business tenant is located, and the oceanbase tenant parameter specifies the name of the business tenant.

Previous topic

obdiag commands
Last

Next topic

Hardware commands
Next
on this page
obd binlog create
obd binlog drop
obd binlog show
obd binlog start
obd binlog stop