1.查询数据库当前时间(目的是为了检查数据库时间是否与你电脑时间相近,避免时间不同而将数据恢复到错误时间点)
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;
2、查询删除数据时间点之前的数据(eg:我想恢复11点之前的数据)
select * from 表名 as of timestamp to_timestamp('2019-11-20 11:00:00','yyyy-mm-dd hh24:mi:ss');
3.开启用行移动功能
alter table 表名 enable row movement;
4.恢复数据
flashback table 表名 to timestamp to_timestamp('2019-11-20 11:00:00','yyyy-mm-dd hh24:mi:ss');
5.测试
select * from 表名;