تا قبل از اوراکل 21c، امکان flashback کردن دیتابیس به نقطه ای قبل از عملیات shrink datafile وجود نداشت:
SQL*Plus: Release 19.0.0.0.0 – Production on Wed Sep 15 17:25:54 2021
Version 19.9.0.0.0
SQL> select current_scn,flashback_on from v$database;
CURRENT_SCN FLASHBACK_ON
———– ——————
2557655 YES
SQL> select bytes from v$datafile where file#=1;
BYTES
———-
999153664
SQL> alter database datafile 1 resize 996147200;
Database altered.
SQL> startup mount force;
ORACLE instance started.
Total System Global Area 2.0200E+10 bytes
Fixed Size 19766544 bytes
Variable Size 2617245696 bytes
Database Buffers 1.7515E+10 bytes
Redo Buffers 47341568 bytes
Database mounted.
SQL> flashback database to scn 2557655;
ORA-38766: cannot flashback data file 1; file resized smaller
ORA-01110: data file 1:
‘/oracle19cR9/base/oradata/DB19R9/datafile/o1_mf_system_jn3s5rmk_.dbf’
(بیشتر…)