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 Database

SQL - V4.4.2

    Download PDF

    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 Database
    3. SQL
    4. V4.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    enable_transfer

    Last Updated:2026-04-02 06:23:58  Updated
    share
    What is on this page
    Description
    Privilege requirements
    Attributes
    Considerations
    Examples
    References

    folded

    share

    Note

    For V4.2.1, this parameter is available starting with V4.2.1.

    Description

    enable_transfer specifies whether to allow Transfer operations within a tenant.

    Privilege requirements

    • Query the parameter

      The sys tenant and all user tenants can use the SHOW PARAMETERS statement or the GV$OB_PARAMETERS view to query this parameter.

    • Modify the parameter

      The sys tenant and user tenants can modify this parameter.

    Attributes

    Attribute
    Description
    Parameter type Bool
    Default value True
    Value range
    • True: enabled.
    • False: disabled.
    Modifiable Yes. You can use the ALTER SYSTEM SET statement to modify the parameter.
    Effective upon OBServer node restart No. The setting takes effect immediately.

    Considerations

    The load balancing strategy within a tenant is jointly controlled by the enable_rebalance and enable_transfer parameters.

    The enable_rebalance parameter controls whether to perform load balancing between tenants in the sys tenant and whether to perform load balancing within a tenant in a user tenant. The default value is true. After you set this parameter, you do not need to restart OBServer nodes. The setting takes effect immediately.

    The enable_transfer parameter specifies whether to enable the Transfer feature within a tenant. The default value is true. After you set this parameter, you do not need to restart OBServer nodes. The setting takes effect immediately. The meaning of the value of the enable_transfer parameter depends on the value of the enable_rebalance parameter:

    • If the value of the enable_rebalance parameter is false, automatic load balancing is disabled regardless of the value of the enable_transfer parameter. The following command disables all load balancing:

      obclient> ALTER SYSTEM SET enable_rebalance=false;
      
    • If the value of the enable_rebalance parameter is true and the value of the enable_transfer parameter is true, the system automatically adjusts the distribution of partitions during tenant scaling operations to achieve load balancing. The following command dynamically adjusts the number of log streams based on the load balancing algorithm, automatically performs leader balancing and partition balancing within the tenant:

      obclient> ALTER SYSTEM SET enable_rebalance=true;
      obclient> ALTER SYSTEM SET enable_transfer=true;
      
    • If the value of the enable_rebalance parameter is true and the value of the enable_transfer parameter is false, the system cannot initiate Transfer operations during tenant scaling operations. It can only perform limited load balancing through log stream migration. The following command performs log stream balancing based on existing log streams without initiating Transfer operations or dynamically adjusting the number of log streams:

      obclient> ALTER SYSTEM SET enable_rebalance=true;
      obclient> ALTER SYSTEM SET enable_transfer=false;
      

    Examples

    • Set the load balancing strategy for a specified tenant in the sys tenant.

      • Enable tenant-level load balancing and the Transfer feature within the specified tenant in the sys tenant.

        obclient> ALTER SYSTEM SET enable_rebalance = true TENANT = 'tenant_name';
        
        obclient> ALTER SYSTEM SET enable_transfer = true TENANT = 'tenant_name';
        

        The preceding statements set the values of the enable_rebalance and enable_transfer parameters to true for the specified tenant.

      • Enable tenant-level load balancing and the Transfer feature within all user tenants (excluding the sys tenant and the Meta tenant) in the sys tenant.

        obclient> ALTER SYSTEM SET enable_rebalance = true TENANT = all_user;
        
        obclient> ALTER SYSTEM SET enable_transfer = true TENANT = all_user;
        

        or

        obclient> ALTER SYSTEM SET enable_rebalance = true TENANT = all;
        
        obclient> ALTER SYSTEM SET enable_transfer = true TENANT = all;
        

        The preceding statements set the values of the enable_rebalance and enable_transfer parameters to true for all user tenants.

        Note

        Starting from V4.2.1 of OceanBase Database, the TENANT = all_user and TENANT = all clauses have the same semantics. When you want to apply the settings to all user tenants, we recommend that you use the TENANT = all_user clause. The TENANT = all clause will be deprecated in the future.

    • Set the load balancing strategy for the current tenant in a user tenant.

      MySQL-compatible mode
      Oracle-compatible mode

      The following statements enable tenant-level load balancing and the Transfer feature within the current MySQL-compatible tenant:

      obclient> ALTER SYSTEM SET enable_rebalance = true;
      
      obclient> ALTER SYSTEM SET enable_transfer = true;
      

      The following statements enable tenant-level load balancing and the Transfer feature within the current Oracle-compatible tenant:

      obclient> ALTER SYSTEM SET enable_rebalance = 'true';
      
      obclient> ALTER SYSTEM SET enable_transfer = 'true';
      

    References

    • Scale in or out a tenant by adjusting the number of units
    • Scale in or out a tenant by adjusting the primary zone
    • enable_rebalance

    Previous topic

    enable_sql_extension
    Last

    Next topic

    enable_user_defined_rewrite_rules
    Next
    What is on this page
    Description
    Privilege requirements
    Attributes
    Considerations
    Examples
    References