DBA_RECYCLEBIN

2025-11-14 07:33:33  Updated

Note

This view is available starting with V2.2.77.

Purpose

This view displays information about all objects in the recycle bin of the current tenant.

Columns

Column Type Nullable? Description
OWNER VARCHAR2(128) NO The name of the original owner of the object.
OBJECT_NAME VARCHAR2(128) NO The new name of the object.
ORIGINAL_NAME VARCHAR2(128) NO The original name of the object.
OPERATION VARCHAR2(9) NO Not supported. The default value is NULL.
TYPE VARCHAR2(25) NO The type of the object.
TS_NAME VARCHAR2(30) NO The name of the tablespace to which the object belongs.
CREATETIME VARCHAR2(19) NO The time when the object was created.
DROPTIME VARCHAR2(19) NO The time when the object entered the recycle bin.
DROPSCN NUMBER NO Not supported. The default value is NULL.
PARTITION_NAME VARCHAR2(128) NO Not supported. The default value is NULL.
CAN_UNDROP VARCHAR2(3) NO Whether the object can be restored from the recycle bin:
  • YES
  • NO
  • CAN_PURGE VARCHAR2(3) NO Whether the object can be purged:
  • YES
  • NO
  • RELATED NUMBER NO Not supported. The default value is NULL.
    BASE_OBJECT NUMBER NO Not supported. The default value is NULL.
    PURGE_OBJECT NUMBER NO Not supported. The default value is NULL.
    SPACE NUMBER NO Not supported. The default value is NULL.

    Sample query

    View information about all recycle bin objects in the database.

    obclient [SYS]> SELECT * FROM SYS.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 |
    +-------+----------------------------------+------------------------+-----------+--------------+---------+---------------------+---------------------+---------+----------------+------------+-----------+---------+-------------+--------------+-------+
    | SYS   | RECYCLE_$_10001_1740730875608272 | __idx_500005_TBL2_IDX1 | NULL      | NORMAL INDEX | NULL    | 28-FEB-25 04.20.42. | 28-FEB-25 04.21.15. |    NULL | NULL           | YES        | YES       |    NULL |        NULL |         NULL |  NULL |
    | SYS   | RECYCLE_$_10001_1740730875608288 | TBL2                   | NULL      | TABLE        | NULL    | 28-FEB-25 04.20.35. | 28-FEB-25 04.21.15. |    NULL | NULL           | YES        | YES       |    NULL |        NULL |         NULL |  NULL |
    +-------+----------------------------------+------------------------+-----------+--------------+---------+---------------------+---------------------+---------+----------------+------------+-----------+---------+-------------+--------------+-------+
    2 rows in set
    

    References

    Contact Us