Note
This view is available starting with V4.0.0.
Purpose
This view displays the major compaction progress of the current tenant on the current node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant. |
| TYPE | VARCHAR2(64) | NO | The type of compaction.
|
| ZONE | VARCHAR2(128) | NO | The zone information. |
| VERSION | NUMBER(38) | NO | The compaction version information. |
| STATUS | VARCHAR2(15) | NO | The status information. |
| TOTAL_TABLET_COUNT | NUMBER(38) | NO | The total number of tablets. |
| UNFINISHED_TABLET_COUNT | NUMBER(38) | NO | The number of tablets that have not completed the compaction. |
| DATA_SIZE | NUMBER(38) | NO | The total data size to be scanned. |
| UNFINISHED_DATA_SIZE | NUMBER(38) | NO | The data size that has not been scanned. |
| COMPRESSION_RATIO | NUMBER(38) | NO | The compression ratio of new data. Records the compression ratio of data written after the last major version point. |
| START_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The start time. |
| ESTIMATED_FINISH_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The estimated finish time. If the compaction progress is 100, the end time is displayed. |
| COMMENTS | VARCHAR2(256) | NO | The comment. Records the latest compaction event during the compaction. If the compaction is completed, records the overall time consumption. |
Sample query
Query the major compaction progress of the current tenant on the current OBServer node.
obclient [SYS]> SELECT * FROM SYS.V$OB_COMPACTION_PROGRESS;
The query result is as follows:
+----------------+----------+-----------+-------------+-------+---------------------+--------+--------------------+-------------------------+-----------+----------------------+-------------------+------------------------------+------------------------------+---------------+
| SVR_IP | SVR_PORT | TENANT_ID | TYPE | ZONE | COMPACTION_SCN | STATUS | TOTAL_TABLET_COUNT | UNFINISHED_TABLET_COUNT | DATA_SIZE | UNFINISHED_DATA_SIZE | COMPRESSION_RATIO | START_TIME | ESTIMATED_FINISH_TIME | COMMENTS |
+----------------+----------+-----------+-------------+-------+---------------------+--------+--------------------+-------------------------+-----------+----------------------+-------------------+------------------------------+------------------------------+---------------+
| 172.xx.xxx.xxx | 2882 | 1004 | MAJOR_MERGE | zone1 | 1735668003058920000 | FINISH | 2 | 0 | 0 | 0 | 1 | 01-JAN-25 02.00.03.770432 AM | 01-JAN-25 02.02.16.903124 AM | total=6.93ms; |
| 172.xx.xxx.xxx | 2882 | 1004 | MAJOR_MERGE | zone1 | 1735754404488391000 | FINISH | 2 | 0 | 0 | 0 | 1 | 02-JAN-25 02.00.07.115160 AM | 02-JAN-25 02.02.20.064100 AM | total=5.81ms; |
+----------------+----------+-----------+-------------+-------+---------------------+--------+--------------------+-------------------------+-----------+----------------------+-------------------+------------------------------+------------------------------+---------------+
2 rows in set