[bbk4741] 第26集 第三章 Flashback Table 03

Flashback Version Query:Considerations

  • The VERSIONS clause cannot be used to query:
    • External tables
    • Temporary tables
    • Fixed tables
    • Views
  • The VERSIONS clause cannot span DDL commands.
  • Segment shrink operations are filtered out.
  • 在哪种情况下可以使用flashback versions query
    • 只能是commited以后的数据
    • 只能是dml语句,ddl不行;ddl以后,前面的dml也查询不到;
    • 没有必要非要启动row movement

两个scn之间如果发生了DDL操作,使用flashback version query是不可以查询的,只能查询ddl操作以后的版本信息变化.

flashback versions query不能用在views上的案例

The VERSIONS clause cannot span DDL commands ->example as follows

 查询时间,自第二步骤开始查询;(注意,第2步之后,有一处DDL操作,正是因为此处的DDL操作,导致versions clause的失败).

假如,调整一下查询起始时间,自DDL语句之后,开始查询,效果如下:

 

原文地址:https://www.cnblogs.com/arcer/p/3082247.html