Hi I created Oracle flashback Archive with retention of 1 month and enabled this archive on few of the tables. But when i execute a versions query like below, i get Error "ORA-08181: specified number is not a valid system change number. ORA-06512: at "SYS.TIMESTAMP_TO_SCN". " And i am not getting this consistently, Sometimes i can query way back 10 days and for some tables i cannot query past 2 days.
select versions_starttime from tbl1 versions between timestamp minvalue and maxvalue or select versions_starttime from tbl1 versions between timestamp sysdate-2 and sysdate
We do have AUTO undo management and undo retention is 24 hours and retention guarantee is set. As per many forums, its mentioned we get this Error when we try to look far back and as per the below link, it should be max( auto-tuned undo retention period, retention times of all flashback archives in the database).
https://docs.oracle.com/database/121/SQLRF/functions175.htm#SQLRF06325
Can someone help why we get this Error irrespective of FDA retention being one month?