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 Database

SQL - V4.2.0

    Download PDF

    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 Database
    3. SQL
    4. V4.2.0
    iconOceanBase Database
    SQL - V 4.2.0
    SQL
    KV
    • 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

    Disable ARCHIVELOG

    Last Updated:2023-12-01 03:27:20  Updated
    share
    What is on this page
    Background information
    Disable ARCHIVELOG for tenants from the sys tenant
    Disable ARCHIVELOG for a user tenant from the current tenant
    References

    folded

    share

    After you enable ARCHIVELOG for a tenant, you can disable it in the same way. After you disable ARCHIVELOG for a tenant, the system automatically stops the ongoing and suspended archiving jobs of the tenant.

    Background information

    Assume that the current cluster has three tenants: sys, mysql_tenant, and oracle_tenant, and that ARCHIVELOG is enabled for mysql_tenant and oracle_tenant.

    Disable ARCHIVELOG for tenants from the sys tenant

    You can disable ARCHIVELOG for all tenants or a specified tenant in the cluster from the sys tenant.

    1. Log on to the sys tenant of the cluster as the root user.

    2. Execute the following statement to disable ARCHIVELOG.

      • Disable ARCHIVELOG for all tenants in the cluster.

        To disable ARCHIVELOG for all tenants in the cluster, execute the following statement:

        obclient [(none)]> ALTER SYSTEM NOARCHIVELOG [TENANT = ALL];
        

        After the statement is executed, ARCHIVELOG is disabled for the mysql_tenant and oracle_tenant tenants in this example. You can query the oceanbase.DBA_OB_TENANTS view in the sys tenant for the archiving modes of all tenants in the cluster.

        obclient [(none)]> SELECT TENANT_NAME, LOG_MODE FROM oceanbase.DBA_OB_TENANTS WHERE TENANT_TYPE='USER'\G
        *************************** 1. row ***************************
        TENANT_NAME: mysql_tenant
           LOG_MODE: NOARCHIVELOG
        *************************** 2. row ***************************
        TENANT_NAME: oracle_tenant
           LOG_MODE: NOARCHIVELOG
        2 rows in set
        
      • Disable ARCHIVELOG for a specified tenant in the cluster.

        To disable ARCHIVELOG for a specified tenant without affecting other tenants in the cluster, execute the following statement:

        obclient [(none)]> ALTER SYSTEM NOARCHIVELOG TENANT = mysql_tenant;
        

        Note

        If you specify multiple tenants, separate the tenant names with commas (,).

        After the statement is executed, only the mysql_tenant tenant enters the NOARCHIVELOG mode in this example. You can query the oceanbase.DBA_OB_TENANTS view from the sys tenant for the archiving modes of all tenants in the cluster.

        obclient [(none)]> SELECT TENANT_NAME, LOG_MODE oceanbase.FROM DBA_OB_TENANTS WHERE TENANT_TYPE = 'USER'\G
        *************************** 1. row ***************************
        TENANT_NAME: mysql_tenant
           LOG_MODE: NOARCHIVELOG
        *************************** 2. row ***************************
        TENANT_NAME: oracle_tenant
           LOG_MODE: ARCHIVELOG
        2 rows in set
        

    Disable ARCHIVELOG for a user tenant from the current tenant

    You can disable ARCHIVELOG for a user tenant from the current tenant without affecting other tenants.

    1. Log on to the database as a tenant administrator.

      In this example, you can log on to the mysql_tenant tenant as the root user, or log on to the oracle_tenant tenant as the SYS user.

    2. Execute the following statement to disable ARCHIVELOG.

      obclient [xxx]> ALTER SYSTEM NOARCHIVELOG;
      

      After the statement is executed, you can query the DBA_OB_TENANTS view in this tenant for its archiving mode.

      obclient [SYS]> SELECT TENANT_NAME, LOG_MODE FROM DBA_OB_TENANTS\G
      *************************** 1. row ***************************
      TENANT_NAME: oracle_tenant
         LOG_MODE: NOARCHIVELOG
      1 rows in set
      

    References

    • View the archiving progress
    • View the archiving history

    Previous topic

    Enable ARCHIVELOG
    Last

    Next topic

    View information about pieces
    Next
    What is on this page
    Background information
    Disable ARCHIVELOG for tenants from the sys tenant
    Disable ARCHIVELOG for a user tenant from the current tenant
    References