oracle 10g的闪回删除与回收站
2012-05-23 10:16
411 查看
闪回删除与回收站的简介
1.正常情况下删除一个表
drop table test1
这是表会被放置在recyclebin(回收站)
注意:这里如果执行了“commit”提交操作。下列闪回操作就会失效!
2.使用如下代码进行闪回操作
flashback table test1 to before drop
3.使用函数 timestamp 将表闪回但是到一个确切的时间点是的状态
如:
允许行滚动
alter table test1 enable row movement;
执行闪回操作
flashback table test1 to timestamp to_timestamp(‘2012-05-22 09:19:51’,’YYYY-MM-DD HH24:MI:SS’);
4.当回收站中具有多个原始名称时。
(1)一种是使用系统为所删除的表所起的名称还原特定版本
(2)使用原始名称时,还原的表遵循后进先出(lifo)的规则
5.对回收站中的表进行闪回并且重命名。
flashback table test1 to before drop rename to testnews ;
6.不使用回收站
drop table test1 purge;
drop tablespace users including contents;
drop user scott cascade;
7.清空回收站的操作
purge recyclebin;
8.显示回收站的内容
show recyclebin
本文出自 “交流群“143420878”” 博客,请务必保留此出处http://donghao123.blog.51cto.com/4879169/873995
1.正常情况下删除一个表
drop table test1
这是表会被放置在recyclebin(回收站)
注意:这里如果执行了“commit”提交操作。下列闪回操作就会失效!
2.使用如下代码进行闪回操作
flashback table test1 to before drop
3.使用函数 timestamp 将表闪回但是到一个确切的时间点是的状态
如:
允许行滚动
alter table test1 enable row movement;
执行闪回操作
flashback table test1 to timestamp to_timestamp(‘2012-05-22 09:19:51’,’YYYY-MM-DD HH24:MI:SS’);
4.当回收站中具有多个原始名称时。
(1)一种是使用系统为所删除的表所起的名称还原特定版本
(2)使用原始名称时,还原的表遵循后进先出(lifo)的规则
5.对回收站中的表进行闪回并且重命名。
flashback table test1 to before drop rename to testnews ;
6.不使用回收站
drop table test1 purge;
drop tablespace users including contents;
drop user scott cascade;
7.清空回收站的操作
purge recyclebin;
8.显示回收站的内容
show recyclebin
本文出自 “交流群“143420878”” 博客,请务必保留此出处http://donghao123.blog.51cto.com/4879169/873995
相关文章推荐
- oracle 10g的闪回删除与回收站
- oracle 10g的闪回删除与回收站
- oracle 10g drop table 的闪回(相当于一个回收站和日志没啥关系)
- Oracle 闪回删除与回收站的简介 recyclebin
- Oracle闪回技术之二 Oracle 11g 利用Oracle RecycleBin (回收站)闪回删除功能
- Oracle 10g中闪回查询操作实例(一)
- 使用oracle闪回查询功能恢复之前删除的数据
- Oracle 回收站功能,彻底删除表
- Oracle闪回查询恢复delete删除数据
- spool命令、创建一个表,创建而且copy表,查看别的用户下的表,rowid行地址 索引的时候使用,表的增删改查,删除表,oracle的回收站
- Oracle闪回查询恢复delete删除数据
- Oracle10表删除闪回
- Oracle 回收站功能,彻底删除表(purge recyclebin)
- oracle误删除修改想找回原来数据(Oracle 9i闪回查询的新特性)
- Oracle表的修改和删除以及回收站操作
- oracle恢复删除的数据 闪回
- 浅谈ORACLE 10G 闪回恢复区
- oracle 10g:删除表
- 删除Oracle 10g中的垃圾表 例如 Bin$×××××××××
- oracle使用闪回技术中恢复误删除和修改的表及数据