Note
This view is available starting with V4.4.1.
Purpose
The oceanbase.DBA_OB_TENANT_FLASHBACK_LOG_SCN view displays information about each log truncation operation in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| TIMESTAMP | timestamp(6) | NO | The creation time, in microseconds. |
| SWITCHOVER_EPOCH | bigint(20) | NO | The SWITCHOVER_EPOCH value when the tenant role was switched to NORMAL. SWITCHOVER_EPOCH is a unique identifier for the switchover/failover operation. |
| OP_TYPE | varchar(64) | NO | The operation type. Valid values:
|
| FLASHBACK_LOG_SCN | bigint(20) unsigned | NO | The end point of the log truncation operation. |
Sample query
Query information about each log truncation operation in the current tenant.
obclient(root@mysql001)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_TENANT_FLASHBACK_LOG_SCN;
The query result is as follows:
+-----------+----------------------------+------------------+---------------------+---------------------+
| TENANT_ID | TIMESTAMP | SWITCHOVER_EPOCH | OP_TYPE | FLASHBACK_LOG_SCN |
+-----------+----------------------------+------------------+---------------------+---------------------+
| 1002 | 2025-05-21 16:48:53.583749 | 1747817333380437 | FAILOVER TO PRIMARY | 1747817331313513000 |
+-----------+----------------------------+------------------+---------------------+---------------------+
1 row in set