Purpose
The V$OB_TIMESTAMP_SERVICE view displays the GTS/STS values, node information, and clock source type of the clock service of tenants.
The value varies based on databases.
- For the primary database, the GTS value of the primary database is displayed.
- For the standby database, the current readable timestamp (STS) of the standby database is displayed.
The value also varies based on tenants.
- For the sys tenant, you can query the clocks of all tenants.
- For a user tenant, you can query only the lock of the current tenant.
Note
This view is introduced since OceanBase Database V4.2.0.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant.
|
| TS_TYPE | varchar(100) | NO | The type of the clock source. Valid values:
|
| TS_VALUE | bigint(20) | NO | The current clock stored in the memory. |
| SVR_IP | varchar(46) | NO | The IP address of the node where the clock service resides. |
| SVR_PORT | bigint(20) | NO | The port number of the node where the clock service resides. |