我有两个相同的模式,在通过数据库链接连接的不同数据库上。
Schema_1: Source Schema. **Rows being inserted at rapid rate.**
Schema_2: Target Schema.
快速插入到 Schema_1(源模式)中的行。
我在源模式中运行 SQL,如下所示:
Insert into Table_1@DB_LINK select * from Table_1
此语句需要几分钟时间。
现在我将语句更改如下(使用闪回查询)
Insert into Table_1@DB_LINK select * Table_1 as of timestamp to_timestamp ( to_timestamp ( date ));
此查询在几秒钟内完成。
为什么会有如此巨大的差异?