Note
- For V4.3.x, this view is available starting with V4.3.5.
- For V4.2.x, this view is available starting with V4.2.5.
Purpose
The GV$OB_LOG_TRANSPORT_DEST_STAT view displays information about downstream log synchronization links (OBCDC or network standby databases) for all tenants across all OBServer nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The RPC port of the server. |
| LS_ID | bigint(20) | NO | The ID of the log stream requested. |
| CLIENT_IP | varchar(46) | NO | The IP address of the machine where the client process is located. |
| CLIENT_PID | bigint(20) | NO | The process ID of the client. |
| CLIENT_TENANT_ID | bigint(20) | NO | The tenant ID of the client. |
| CLIENT_TYPE | varchar(7) | NO | The type of the client.
|
| START_SERVE_TIME | timestamp(6) | NO | The time when the record was created. |
| LAST_SERVE_TIME | timestamp(6) | NO | The time when the record was last modified. |
| LAST_READ_SOURCE | varchar(7) | NO | The source of the log read during the last request processing:
|
| LAST_REQUEST_TYPE | varchar(24) | NO | The type of the last RPC request:
|
| LAST_REQUEST_LOG_LSN | bigint(20) unsigned | NO | The LSN of the log from the last request. |
| LAST_REQUEST_LOG_SCN | bigint(20) unsigned | NO | The SCN of the log from the last request. |
| LAST_FAILED_REQUEST | longtext | NO | Information about the last failed RPC request, including the send time, TRACE_ID, and error code. |
| AVG_REQUEST_PROCESS_TIME | bigint(20) | NO | The average time spent processing the RPC request. |
| AVG_REQUEST_QUEUE_TIME | bigint(20) | NO | The average time spent queuing the RPC request. |
| AVG_REQUEST_READ_LOG_TIME | bigint(20) | NO | The average time spent reading logs for the RPC request. |
| AVG_REQUEST_READ_LOG_SIZE | bigint(20) | NO | The average size of logs read for the RPC request. |
| AVG_LOG_TRANSPORT_BANDWIDTH | varchar(29) | NO | The average log transmission bandwidth. |
Sample query
Query information about downstream log synchronization links (OBCDC or network standby databases) for all tenants across all OBServer nodes.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$OB_LOG_TRANSPORT_DEST_STAT;
The query result is as follows:
+-----------+----------------+----------+-------+----------------+------------+------------------+-------------+----------------------------+----------------------------+------------------+--------------------------+----------------------+----------------------+---------------------+--------------------------+------------------------+---------------------------+---------------------------+-----------------------------+
| TENANT_ID | SVR_IP | SVR_PORT | LS_ID | CLIENT_IP | CLIENT_PID | CLIENT_TENANT_ID | CLIENT_TYPE | START_SERVE_TIME | LAST_SERVE_TIME | LAST_READ_SOURCE | LAST_REQUEST_TYPE | LAST_REQUEST_LOG_LSN | LAST_REQUEST_LOG_SCN | LAST_FAILED_REQUEST | AVG_REQUEST_PROCESS_TIME | AVG_REQUEST_QUEUE_TIME | AVG_REQUEST_READ_LOG_TIME | AVG_REQUEST_READ_LOG_SIZE | AVG_LOG_TRANSPORT_BANDWIDTH |
+-----------+----------------+----------+-------+----------------+------------+------------------+-------------+----------------------------+----------------------------+------------------+--------------------------+----------------------+----------------------+---------------------+--------------------------+------------------------+---------------------------+---------------------------+-----------------------------+
| 1002 | xx.xx.xx.xx | 9708 | 1 | xx.xx.xx.xx | 44307 | 0 | CDC | 2024-10-17 17:09:04.517703 | 2024-10-17 17:30:18.328740 | ONLINE | SEQUENTIAL_READ_SERIAL | 15055628 | 1729157418188928000 | NULL | 86 | 35 | 53 | 70 | 1.35KB/S |
| 1002 | xx.xx.xx.xx | 9708 | 1001 | xx.xx.xx.xx | 79983 | 1004 | STANDBY | 2024-10-17 17:08:10.964547 | 2024-10-17 17:30:18.347842 | ONLINE | SEQUENTIAL_READ_PARALLEL | 1667072 | 1729157418206776001 | NULL | 5 | 41 | 5 | 2088 | 40.77KB/S |
| 1002 | xx.xx.xx.xx | 9708 | 1001 | xx.xx.xx.xx | 44307 | 0 | CDC | 2024-10-17 17:09:05.936290 | 2024-10-17 17:30:18.329034 | ONLINE | SEQUENTIAL_READ_SERIAL | 1667375 | 1729157418206776000 | NULL | 81 | 46 | 49 | 61 | 1.20KB/S |
| 1002 | xx.xx.xx.xx | 9708 | 1 | xx.xx.xx.xx | 79983 | 1004 | STANDBY | 2024-10-17 17:08:00.415960 | 2024-10-17 17:30:18.347866 | ONLINE | SEQUENTIAL_READ_PARALLEL | 15052800 | 1729157418206776000 | NULL | 7 | 34 | 6 | 1986 | 38.41KB/S |
| 1006 | xx.xx.xx.xx | 9708 | 1001 | xx.xx.xx.xx | 79983 | 1008 | STANDBY | 2024-10-17 17:28:59.763822 | 2024-10-17 17:30:18.347025 | ONLINE | SEQUENTIAL_READ_PARALLEL | 1503232 | 1729157418206776001 | NULL | 7 | 26 | 7 | 2081 | 40.04KB/S |
| 1006 | xx.xx.xx.xx | 9708 | 1 | xx.xx.xx.xx | 79983 | 1008 | STANDBY | 2024-10-17 17:28:49.512280 | 2024-10-17 17:30:18.350869 | ONLINE | SEQUENTIAL_READ_PARALLEL | 21626880 | 1729157418206776001 | NULL | 6 | 22 | 5 | 2263 | 43.53KB/S |
+-----------+----------------+----------+-------+----------------+------------+------------------+-------------+----------------------------+----------------------------+------------------+--------------------------+----------------------+----------------------+---------------------+--------------------------+------------------------+---------------------------+---------------------------+-----------------------------+
6 rows in set (0.01 sec)
