Home > Database > Mysql Tutorial > body text

使用Oracle的flashback table来恢复数据

WBOY
Release: 2016-06-07 16:59:56
Original
891 people have browsed it

一位同事把Oracle一张重要的表给delete了,搞的项目无法运行!幸好我一位DBA的朋友提示oracle的flashback table可以恢复数据,使

一位同事把Oracle一张重要的表给delete了,搞的项目无法运行!幸好我一位DBA的朋友提示oracle的flashback table可以恢复数据,,使用之后效果不错,特写出来和大家共同学习!在这里我要感谢我的DBA朋友!!!

//设置表位可以移动的行

1.alter table T_DUAL ENABLE ROW MOVEMENT;

//执行恢复时间为20011-02-23 22:53:00之前的表数据

2.flashback table T_DUAL TO TIMESTAMP TO_TIMESTAMP(’20011-02-23 22:53:00′,’yyyy-mm-dd hh24:mi:ss’);

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!