---
title: "oceanbase.DBA_OB_DATA_DICTIONARY_IN_LOG - OceanBase 数据库 V4.6.0 | OceanBase 文档中心"
description: oceanbase.DBA_OB_DATA_DICTIONARY_IN_LOG 说明 该视图从 V4.2.0 版本开始引入。 功能描述 记录数据字典在系统日志流中的位置范围，方便 CDC 消费数据字典。 字段说明 字段 类型 是否为 NULL 描述 SNAPSHOT_SCN bigint(20) unsigned N…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.6.0

# oceanbase.DBA_OB_DATA_DICTIONARY_IN_LOG

更新时间：2026-07-13 22:33:21

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.6.0/zh-CN/700.reference/700.system-views/400.system-view-of-mysql-mode/200.dictionary-view-of-mysql-mode/8300.o-dba_ob_data_dictionary_in_log-of-mysql-mode.md)

#### 说明

该视图从 V4.2.0 版本开始引入。

## 功能描述

记录数据字典在系统日志流中的位置范围，方便 CDC 消费数据字典。

## 字段说明

| **字段** | **类型** | **是否为 NULL** | **描述** |
| --- | --- | --- | --- |
| SNAPSHOT_SCN | bigint(20) unsigned | NO | 数据字典生成时对应租户的 SNAPSHOT SCN |
| REPORT_TIME | timestamp(6) | YES | 数据字典生成完成，汇报到内部表的时间 （单位为微秒） |
| START_LSN | bigint(20) unsigned | NO | 数据字典在租户一号日志流持久化的第一个日志的 LSN |
| END_LSN | bigint(20) unsigned | NO | 数据字典在租户一号日志流持久化的最后一个日志的 LSN |

## 查询示例

系统租户查看所有用户租户数据字典在系统日志流中的位置范围。

```shell
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_DATA_DICTIONARY_IN_LOG;

```

查询结果如下：

```shell
+-----------+---------------------+----------------------------+-----------+-----------+
| TENANT_ID | SNAPSHOT_SCN        | REPORT_TIME                | START_LSN | END_LSN   |
+-----------+---------------------+----------------------------+-----------+-----------+
|      1002 | 1723084121964378000 | 2024-08-08 10:28:42.014127 |  10713062 |  10713062 |
|      1002 | 1723170522400303000 | 2024-08-09 10:28:42.439283 | 139661239 | 139661239 |
|      1004 | 1723084155932969000 | 2024-08-08 10:29:15.983581 |  16136726 |  16136726 |
|      1004 | 1723170556335749000 | 2024-08-09 10:29:16.366229 | 148555952 | 148555952 |
+-----------+---------------------+----------------------------+-----------+-----------+
4 rows in set

```

## 相关视图或文档

[dump_data_dictionary_to_log_interval](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685346)

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
