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.3.3

    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.3.3
    iconOceanBase Database
    SQL - V 4.3.3
    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

    dumpsst

    Last Updated:2024-12-02 03:48:26  Updated
    share
    What is on this page
    macro_block

    folded

    share

    dumpsst displays the content in block_file. You can use it to trace online issues and locate data issues based on macroblocks. This topic describes how to use dumpsst.

    You can run the following command to query the help information of dumpsst.

    $ ./ob_admin dumpsst --help
    succ to open, filename=ob_admin.log, fd=3, wf_fd=2
    old log_file need close, old = ob_admin.log new = ob_admin.log
    succ to open, filename=ob_admin.log, fd=3, wf_fd=2
    succ to open, filename=ob_admin_rs.log, fd=4, wf_fd=2
    
    Usage: dumpsst command [command args] [options]
    commands:
            -d,--dump                     dump, arg: [macro_block]
            -h,--help                     display this message.
    options:
            -f,--data-file-name           data file path or the ofs address
            -a,--macro-id                 macro block id
            -i,--micro-id                 micro block id, -1 means all micro blocks
            -n,--macro-size               macro block size, in bytes
            -q,--quiet                    log level: ERROR
            -x,--hex-print                print obj value in hex mode
            -k,--master_key               master key, hex str
            -m,--master_key_id            master key id
            -t,--tablet_id                tablet id
            -s,--logical_version          macro block logical version
    samples:
      dump all rows in macro:
            ob_admin -d macro_block -f block_file_path -a macro_id
      dump specified block in the shared block:
            ob_admin -d macro_block -f block_file_path -a macro_id -t tablet_id -s logical_version
    

    The following example shows a common usage of dumpsst.

    macro_block

    You can use the following syntaxes to show the content of an SSTable block, including the macroblock common header, macro header, microblock index, microblock header, and each data record. These syntaxes are most frequently used.

    # Local mode:
    ./ob_admin -d macro_block -f <block_file_path> -a <macro_id>
    ./ob_admin -d macro_block -f <block_file_path> -a <macro_id> -t <tablet_id> -s <logical_version>
    

    The options are described as follows:

    • -d specifies the type of the dump macroblock. At present, only the macro_block type is supported.
    • -f specifies the absolute path of the folder where the data file is located.
    • -a specifies the subscript of the macroblock.
    • -t specifies the subscript of the shard.
    • -s specifies the logical version number of the macroblock.

    Previous topic

    io_adapter_benchmark
    Last

    Next topic

    obdiag
    Next
    What is on this page
    macro_block