Skip to content

回收站-sys_recyclebin

功能描述

sys_recyclebin系统表用于存储所有库的进入回收站的表,表分区,索引,索引分区,触发器。

字段说明

序号字段名类型说明
0DB_IDINTEGER库ID
1USER_IDINTEGER所有者ID
2OBJECT_IDINTEGER对象ID
3RELATEDOBJ_IDINTEGER父对象ID
4OBJECT_TYPEINTEGER对象类型
5OBJECT_TYPE_NAMEVARCHAR对象类型名
6SCHEMA_IDINTEGER模式ID
7OBJECT_NAMEVARCHAR对象原名
8RECYCLE_NAMEVARCHAR回收站唯一名
9DROPED_TIMEDATETIME删除时间
10CAN_UNDROPVARCHAR是否可以从回收站恢复
11CAN_PURGEVARCHAR是否可以删除
12RESERVED1VARCHAR保留字段

示例

sql
SQL> SELECT * FROM SYS_RECYCLEBIN;

DB_ID | USER_ID | OBJECT_ID | RELATEDOBJ_ID | OBJECT_TYPE | OBJECT_TYPE_NAME | SCHEMA_ID | OBJECT_NAME | RECYCLE_NAME | DROPED_TIME | CAN_UNDROP | CAN_PURGE | RESERVED1 |
------------------------------------------------------------------------------
1 | 1 | 1048619 | 1048619 | 5 | Table| 1 | INDEX_TABLE1| BIN$0800010008| 2024-01-08 11:23:56.129 AD | YES| YES| <NULL>|
1 | 1 | 1048620 | 1048619 | 10 | Index| 1 | PK_IDX_S391217047130122| BIN$0E0000000B| 2024-01-08 11:23:56.129 AD | NO| YES| <NULL>|
1 | 101 | 1048625 | 1048625 | 5 | Table| 101 | INDEX_TABLE3| BIN$080001000B| 2024-01-08 13:41:43.262 AD | YES| YES| <NULL>|
1 | 101 | 1048626 | 1048625 | 10 | Index| 101 | PK_IDX_S1904517047212935| BIN$0E0000000E| 2024-01-08 13:41:43.262 AD | NO| YES| <NULL>|

Total 4 records.
Use time:1 ms.