In Oracle DB you can find out when your table was updated last time by using
SELECT SCN_TO_TIMESTAMP(MAX(ora_rowscn)) FROM myTable;
I get 01-AUG-17 05.29.54.000000000 PM
from this query.
If you execute this query
SELECT MAX(ora_rowscn) FROM myTable;
You'll get result in system change number (SCN) format. I get 268908318
from this query.
In my Java app I want to write function that get String and return Date.
Something like this:
public Date getDateFromSCNString(String scnString) {...}
So, I want to write my SCN_TO_TIMESTAMP
function in Java.
How can I do this?
Update: I want to get the date from the SCN number (268908318).