Note
- For OceanBase Database V4.3.x, this view is introduced in V4.3.5.
- For OceanBase Database V4.2.x, this view is introduced in V4.2.5.
Purpose
The GV$OB_LOG_TRANSPORT_DEST_STAT view displays information about all downstream log synchronization links (OBCDC or network standby) of OBServer nodes in the tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | NUMBER(38) | NO | Tenant ID |
| SVR_IP | VARCHAR2(46) | NO | IP address of the server node |
| SVR_PORT | NUMBER(38) | NO | RPC_PORT of the server node |
| LS_ID | NUMBER(38) | NO | ID of the log stream requested |
| CLIENT_IP | VARCHAR2(46) | NO | IP address of the client node where the process requesting the logs is located |
| CLIENT_PID | NUMBER(38) | NO | Process ID of the client node requesting the logs |
| CLIENT_TENANT_ID | NUMBER(38) | NO | Tenant ID of the client node requesting the logs |
| CLIENT_TYPE | VARCHAR2(7) | NO | Type of the client node requesting the logs:
|
| START_SERVE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | Creation time of the record |
| LAST_SERVE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | Modification time of the record |
| LAST_READ_SOURCE | VARCHAR2(7) | NO | Source of the logs read when the last request was processed:
|
| LAST_REQUEST_TYPE | VARCHAR2(24) | NO | RPC type of the last request:
|
| LAST_REQUEST_LOG_LSN | NUMBER(38) | NO | LSN of the logs requested last time |
| LAST_REQUEST_LOG_SCN | NUMBER(38) | NO | SCN of the logs requested last time |
| LAST_FAILED_REQUEST | CLOB | NO | Information about the last failed RPC, including the time of sending, TRACE_ID, and error code. |
| AVG_REQUEST_PROCESS_TIME | NUMBER(38) | NO | Average RPC processing time |
| AVG_REQUEST_QUEUE_TIME | NUMBER(38) | NO | Average RPC queuing time |
| AVG_REQUEST_READ_LOG_TIME | NUMBER(38) | NO | Average RPC log reading time |
| AVG_REQUEST_READ_LOG_SIZE | NUMBER(38) | NO | Average RPC log reading size |
| AVG_LOG_TRANSPORT_BANDWIDTH | VARCHAR2(44) | NO | Average log transfer bandwidth |
Sample query
Query information about all downstream log synchronization links (OBCDC or network standby) of OBServer nodes in the tenant.
obclient [SYS]> SELECT * FROM SYS.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 |
+-----------+----------------+----------+-------+----------------+------------+------------------+-------------+------------------------------+------------------------------+------------------+--------------------------+----------------------+----------------------+---------------------+--------------------------+------------------------+---------------------------+---------------------------+-----------------------------+
| 1006 | xx.xx.xx.xx | 9708 | 1001 | xx.xx.xx.xx | 79983 | 1008 | STANDBY | 17-OCT-24 05.28.59.763822 PM | 17-OCT-24 05.56.16.953615 PM | ONLINE | SEQUENTIAL_READ_PARALLEL | 3403776 | 1729158976806695000 | NULL | 6 | 37 | 5 | 2100 | 41.23KB/S |
| 1006 | xx.xx.xx.xx | 9708 | 1 | xx.xx.xx.xx | 79983 | 1008 | STANDBY | 17-OCT-24 05.28.49.512280 PM | 17-OCT-24 05.56.16.953672 PM | ONLINE | SEQUENTIAL_READ_PARALLEL | 26202112 | 1729158976806695000 | NULL | 6 | 37 | 5 | 2180 | 42.58KB/S |
+-----------+----------------+----------+-------+----------------+------------+------------------+-------------+------------------------------+------------------------------+------------------+--------------------------+----------------------+----------------------+---------------------+--------------------------+------------------------+---------------------------+---------------------------+-----------------------------+
2 rows in set (0.01 sec)