Note
This view is available starting with V4.0.0.
Purpose
This view displays information about all tablet replicas in the current tenant. Each tablet replica is uniquely identified by the joint key: <TABLET_ID, SVR_IP, SVR_PORT, LS_ID>.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | NO | The creation time. |
| MODIFY_TIME | timestamp(6) | NO | The modification time. |
| TABLET_ID | bigint(20) | NO | The tablet ID. |
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| LS_ID | bigint(20) | NO | The log stream ID to which the tablet belongs. |
| COMPACTION_SCN | bigint(20) unsigned | NO | The data snapshot version number. |
| DATA_SIZE | bigint(20) | NO | The actual size of the data, in bytes. |
| REQUIRED_SIZE | bigint(20) | NO | The size of the space allocated to the data, in bytes. Data is stored in macroblocks of 2 MB. Therefore, REQUIRED_SIZE >= DATA_SIZE. |
Sample query
Query the tablet replica information in the current tenant and display the first 10 records.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_TABLET_REPLICAS LIMIT 10;
The query result is as follows:
+----------------------------+----------------------------+-----------+----------------+----------+-------+---------------------+-----------+---------------+
| CREATE_TIME | MODIFY_TIME | TABLET_ID | SVR_IP | SVR_PORT | LS_ID | COMPACTION_SCN | DATA_SIZE | REQUIRED_SIZE |
+----------------------------+----------------------------+-----------+----------------+----------+-------+---------------------+-----------+---------------+
| 2024-12-31 14:59:45.377678 | 2025-01-02 02:59:28.302290 | 1 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 25048 | 2097152 |
| 2024-12-31 14:59:45.378161 | 2025-01-02 02:59:28.302290 | 3 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 382361 | 2097152 |
| 2024-12-31 14:59:45.386361 | 2025-01-02 02:59:28.302290 | 4 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 253313 | 2097152 |
| 2024-12-31 14:59:45.386361 | 2025-01-02 02:59:28.302290 | 5 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 29939 | 2097152 |
| 2024-12-31 14:59:45.386361 | 2025-01-02 02:59:28.302290 | 102 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 2095 | 2097152 |
| 2024-12-31 14:59:45.386361 | 2025-01-02 02:59:28.289712 | 103 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 2232 | 2097152 |
| 2024-12-31 14:59:45.386361 | 2025-01-02 02:59:28.302290 | 104 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 968 | 2097152 |
| 2024-12-31 14:59:45.385814 | 2025-01-02 02:59:28.302290 | 105 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 1093 | 2097152 |
| 2024-12-31 14:59:45.387221 | 2025-01-02 02:59:28.302290 | 106 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 1178 | 2097152 |
| 2024-12-31 14:59:45.386251 | 2025-01-02 02:59:28.302290 | 107 | 172.xx.xxx.xxx | 2882 | 1 | 1735754402003130000 | 1232 | 2097152 |
+----------------------------+----------------------------+-----------+----------------+----------+-------+---------------------+-----------+---------------+
10 rows in set