Note
This view is available starting with V4.0.0.
Purpose
This view displays information about all recycle bin objects in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The name of the original owner of the object. |
| OBJECT_NAME | varchar(128) | NO | The new name of the object. |
| ORIGINAL_NAME | varchar(128) | NO | The original name of the object. |
| OPERATION | varchar(9) | NO | This column is not supported. The default value is NULL. |
| TYPE | varchar(25) | NO | The type of the object. |
| TS_NAME | varchar(30) | NO | The name of the tablespace to which the object belongs. |
| CREATETIME | date | YES | The time when the object was created. |
| DROPTIME | date | YES | The time when the object entered the recycle bin. |
| DROPSCN | bigint(0) | NO | This column is not supported. The default value is NULL. |
| PARTITION_NAME | varchar(128) | NO | This column is not supported. The default value is NULL. |
| CAN_UNDROP | varchar(3) | NO | Indicates whether the object can be restored from the recycle bin:
|
| CAN_PURGE | varchar(3) | NO | Indicates whether the object can be purged:
|
| RELATED | bigint(0) | NO | This column is not supported. The default value is NULL. |
| BASE_OBJECT | bigint(0) | NO | This column is not supported. The default value is NULL. |
| PURGE_OBJECT | bigint(0) | NO | This column is not supported. The default value is NULL. |
| SPACE | bigint(0) | NO | This column is not supported. The default value is NULL. |
Sample query
Query information about all recycle bin objects in the database.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_RECYCLEBIN;
The query result is as follows:
+----------+------------------------------------+---------------+-----------+----------+---------+------------+------------+---------+----------------+------------+-----------+---------+-------------+--------------+-------+
| OWNER | OBJECT_NAME | ORIGINAL_NAME | OPERATION | TYPE | TS_NAME | CREATETIME | DROPTIME | DROPSCN | PARTITION_NAME | CAN_UNDROP | CAN_PURGE | RELATED | BASE_OBJECT | PURGE_OBJECT | SPACE |
+----------+------------------------------------+---------------+-----------+----------+---------+------------+------------+---------+----------------+------------+-----------+---------+-------------+--------------+-------+
| infotest | __recycle_$_10001_1751443597198024 | infotest | NULL | DATABASE | NULL | 2025-07-01 | 2025-07-02 | NULL | NULL | YES | YES | NULL | NULL | NULL | NULL |
+----------+------------------------------------+---------------+-----------+----------+---------+------------+------------+---------+----------------+------------+-----------+---------+-------------+--------------+-------+
1 row in set
References
For more information about how to view the recycle bin, see View recycle bin objects.