Hi Gopal,
Thanks for your response!
I tried the approach you suggested but it is not working for me. Can you please point where I am doing this wrong?
I did the following
Used this query to find the COMMIT_ID for my user (after a particular commit ID)
SELECT * FROM TRANSACTION_HISTORY where APP_USER='nsonachalam' and commit_id>2404642725 order by commit_time desc
These were my commit ids
2404646500 - I updated the same record ( EMP_ID =1 and NAME=' Niranjan Sonachalam')
2404644916 - I Inserted a record ( EMP_ID =1 and NAME=' Niranjan')
I set the history session and deleted the latest commit, I was expecting to see NAME='NIRANJAN' only
SET HISTORY SESSION TO COMMIT ID 2404646500;
DELETE HISTORY FROM TBL_EMP_DETAILS;
I changed the HISTORY SESSION back to NOW and queried the table. The record still exists as "Niranjan Sonachalam" and moreover I can still query the history using the deleted commit id
SET HISTORY SESSION TO NOW
SELECT * FROM TBL_EMP_DETAILS
SELECT * FROM TBL_EMP_DETAILS AS OF COMMIT ID 2404646500;
Where am I going wrong?
Thanks,
Niranjan