欢迎光临
我们一直在努力

Oracle 视图 DBA_RECYCLEBIN 官方解释,作用,如何使用详细说明

本站中文解释

Oracle的视图DBA_RECYCLEBIN保存的是被DROP操作的用户对象,也就是垃圾箱里的数据,如果要使用DBA_RECYCLEBIN,可以使用以下语法:

SELECT * FROM DBA_RECYCLEBIN;

这句话会将所有数据库中被DROP 的对象显示出来,我们可以从中看出对象名称、拥有者、操作时间以及提示是否可以UNDROP,通过DBA_RECYCLEBIN可以方便定位在误删除了数据库对象内容之后可以再次还原,可以使用FLASHBACK TABLE 和 FLASHBACK DROP语句来完成。

官方英文解释

DBA_RECYCLEBIN displays information about all recycle bins in the database.

Related View

USER_RECYCLEBIN displays information about the recycle bin owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Name of the original owner of the object

OBJECT_NAME

VARCHAR2(128)

NOT NULL

New name of the object

ORIGINAL_NAME

VARCHAR2(128)

Original name of the object

OPERATION

VARCHAR2(9)

Operation carried out on the object:

  • DROP – Object was dropped

  • TRUNCATE – Object was truncated

    Note: The Oracle Database currently only supports recovering dropped objects from the recycle bin. The truncated objects cannot be recovered.

TYPE

VARCHAR2(25)

Type of the object:

  • TABLE

  • NORMAL INDEX

  • BITMAP INDEX

  • NESTED TABLE

  • LOB

  • LOB INDEX

  • DOMAIN INDEX

  • IOT TOP INDEX

  • IOT OVERFLOW SEGMENT

  • IOT MAPPING TABLE

  • TRIGGER

  • Table Partition

  • Table Composite Partition

  • Index Partition

  • Index Composite Partition

  • LOB Partition

  • LOB Composite Partition

TS_NAME

VARCHAR2(30)

Name of the tablespace to which the object belongs

CREATETIME

VARCHAR2(19)

Timestamp for the creation of the object

DROPTIME

VARCHAR2(19)

Timestamp for the dropping of the object

DROPSCN

NUMBER

System change number (SCN) of the transaction which moved the object to the recycle bin

PARTITION_NAME

VARCHAR2(128)

Name of the partition which was dropped

CAN_UNDROP

VARCHAR2(3)

Indicates whether the object can be undropped (YES) or not (NO)

CAN_PURGE

VARCHAR2(3)

Indicates whether the object can be purged (YES) or not (NO)

RELATED

NUMBER

NOT NULL

Object number of the parent object

BASE_OBJECT

NUMBER

NOT NULL

Object number of the base object

PURGE_OBJECT

NUMBER

NOT NULL

Object number for the object which gets purged

SPACE

NUMBER

Number of blocks used by the object

See Also:

“USER_RECYCLEBIN”

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。