[转载]recyclebin

原文地址:recyclebin作者:笨笨
我们都知道,在oracle 10g中有个叫做flash drop的新特性。也就是把删除的表,放进类似回收站的recyclebin中。这样,当你发现drop错表的时候,你可以使用:
flashback table tb_name to before drop ;
来恢复前一次删除的表。当然,oracle有它自己的对recyclebin空间的回收的办法。本来是件好事,可是由于删除的表很多,产生了大量的recyclebin里的表,感觉很不舒服。同事都让我把recyclebin给禁用了,没有办法只有禁用了。方法如下:
sys@crmdata> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
sys@crmdata>show parameter recyclebin;
NAME                                 TYPE        VALUE
------------------------------------ ----------- -------------------------
recyclebin                           string      ON
sys@crmdata>alter system set recyclebin=off;
系统已更改。
 
然后把所有的recyclebin里的内容全给清空:
  purge dba_recyclebin;
 
以后就再也不会看到,那么多乱乱的表出现了。
 
 
原文地址:https://www.cnblogs.com/liuzhuqing/p/7480426.html