FLASHBACK TABLE
到恢復點失敗,但表還原點是在表更改後立即創建的。下面的代碼僅適用於特定步驟之間有睡眠的情況。儘管在表創建/更改表後創建恢復點
SQL> DROP TABLE TEST_TABLE;
Table dropped.
SQL> CREATE TABLE TEST_TABLE AS SELECT 1 A FROM DUAL;
Table created.
SQL> ALTER TABLE TEST_TABLE ENABLE ROW MOVEMENT;
Table altered.
SQL> --Sleep required here to prevent error on flashback.
SQL> DROP RESTORE POINT TEST_RESTORE_POINT;
Restore point dropped.
SQL> CREATE RESTORE POINT TEST_RESTORE_POINT;
Restore point created.
SQL> FLASHBACK TABLE TEST_TABLE TO RESTORE POINT TEST_RESTORE_POINT;
FLASHBACK TABLE TEST_TABLE TO RESTORE POINT TEST_RESTORE_POINT
*
ERROR at line 1:
ORA-01466: unable to read data - table definition has changed
爲什麼需要延遲,有沒有辦法消除它?
你在任何地方都沒有任何'PARALLEL = TRUE',是嗎? –
@MikeNakis一次運行一次就可以重現此問題。它在最新版本12.1.0.2上失敗了。 –