老忘记,写下记住oracle创建序列好 poor
create sequence SEQ increment by 1 start with 1 nocycle nocache order;
使用FLASHBACK TABLE进行数据恢复
1.使用flashback查询实现行级恢复 flashback查询用于获取先前时间点的表行级数据。当使用flashback查询时,需要在表名后指定as of timestamp子句或as of SCN子句,其中as of timestamp用于指定早期时间点, 而as of SCN用于指定早期的SCN值,示例如下: select * from students as of timestamp to_timestamp('2011-07-14 15:52:30','YYYY-MM-DD HH24:MI:SS') WHERE sno='10' select * from students as of SCN 11495000 where sno='10' 注意: flashback查询的最早时间点受限于初始化参数undo_retention。下面通过示例说明