oracle 10g drop table 的闪回(相当于一个回收站和日志没啥关系)
2010-07-22 11:07
836 查看
oracle 10g drop table 的闪回 --绝对的功臣 oracle 10g 在增加了闪回功能后,drop后的表被放在回收站(user_recyclebin)里,而不是直接删除掉。这样,回收站里的表信息就可以被恢复,或彻底清除。 1.通过查询回收站user_recyclebin获取被删除的表信息, select * from user_recyclebin; 然后使用语句 flashback table <user_recyclebin.object_name or user_recyclebin.original_name> to before drop [rename to <new_table_name>]; 将回收站里的表恢复为原名称或指定新名称,表中数据不会丢失。 例如:flashback table test1 to before drop rename to test2; --【to test2】将表重命名 若不想重命名,则直接运行命令:flashback table test1 to before drop 若要彻底删除表,则使用语句:drop table <table_name> purge; 2.清除回收站里的信息 清除指定表:purge table <table_name>; 清除当前用户的回收站:purge recyclebin; 清除所有用户的回收站:purge dba_recyclebin; |
相关文章推荐
- oracle 10g的闪回删除与回收站
- oracle 10g的闪回删除与回收站
- oracle 10g的闪回删除与回收站
- oracle 10g RAC 添加日志组和成员以及删除日志成员
- Oracle闪回技术之二 Oracle 11g 利用Oracle RecycleBin (回收站)闪回删除功能
- Oracle 10g中闪回数据库技术详解
- 在oracle 10g下,outline(存储大纲)与cursor_sharing参数的依赖关系
- Oracle 10g 归档日志满了的解决办法
- oracle 10g监听配置(一个实例或多个实例)
- 清空ORACLE 10G 的回收站
- oracle 10G 关于回收站的一些操作
- oracle中drop table 生成一个乱码表名的解决办法
- oracle 10g rac standby 归档日志自动删除脚本
- Oracle 10g中闪回查询操作实例(一)
- oracle 10g rac一个节点监听状态不正常,但crs_stat -t 显示正常
- Oracle 10g 归档日志满了的解决办法
- oracle 10G 没有 PIVOT 函数怎么办,自己写一个不久有了
- oracle 10g 标准版数据库日志中ORA-02097 ORA-00439问题
- 浅谈Oracle 10G 闪回恢复区
- Oracle Flashback Technologies - 估算不同时间段闪回日志的产生量