92 Examine the output of the query that you executed to list the objects in the recycle bin: SQL> SE

本文详细介绍了在SQL环境中使用PURGE命令清除回收站中对象的过程,包括如何选择性地清除特定对象,并解释了在回收站中存在多个同名对象时的处理逻辑。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

92
Examine the output of the query that you executed to list the objects in the recycle bin: SQL>
SELECT original_name, droptime, dropscn FROM user_recyclebin; ORIGINAL_NAME
DROPTIME DROPSCN
--------- ----------- -------
SALES_TAB 2007-12-11:13:37:11 4472036
SALES_TAB 2007-12-11:13:49:30 4472988
SALES_TAB 2007-12-11:13:55:39 4473100
You verified that no table named SALES_TAB exists in the schema. Then you executed the following
command to purge the objects in the recycle bin:
SQL> PURGE TABLE sales_tab;
What would be the outcome of this command?
A. All three tables in the recycle bin are purged
B. Only the table with the oldest DROPSCN is purged
C. The command returns an error because multiple entries with the same name exist in the recycle bin
D. Only the table with the latest DROPSCN is purged













Correct Answer: B

Section: (none)
Explanation
Explanation/Reference:
Explanation:
verified
http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_9018.htm
If you specify the user-specified name, and if the recycle bin contains more than one object of that name,
then the database purges the object that has been in the recycle bin the longest.
Use the PURGE statement to remove a table or index from your recycle bin and release all of the space
associated with the object, or to remove the entire recycle bin, or to remove part of all of a dropped
tablespace from the recycle bin.
When the database purges a table, all table partitions, LOBs and LOB partitions, indexes, and other
dependent objects of that table are also purged.
The database object must reside in your own schema or you must have the DROP ANY… system privilege
for the type of object to be purged, or you must have the SYSDBA system privilege.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值