Hi Team:
We are currently performing migration from Oracle to HANA database for one of the customers.
We have identified a custom code which is basically a native SQL executed through ADBC classes.
The purpose of that code is to obtain state of table at a particular time. Syntax is as below:
SELECT * FROM ' tablename ' as of timestamp ( SYSTIMESTAMP - interval' lv_minutes_back 'minute )' INTO l_sql_statement
This works well in Oracle database. However it gives a syntax error in HANA database....as expected.
However, I am finding it difficult to obtain a corresponding syntax which can work in HANA database.
I found a document as specified in link below...which states that HANA does not have Flaashback Query feature.
http://www.oracle.com/technetwork/database/availability/sap-hana-ha-analysis-cwp-1959003.pdf
However, this document is old and not sure whether it still holds true.
Could someone please confirm that HANA does not support such a feature?
I was able to find a statement "SET HISTORY SESSION TO <when>" which seems like it could work. I am trying the same now....and will update you of result....but if someone has already done this...then it will help.
Thanks in advance for reply.