I want to take a sequential snapshot of an Oracle database that is constantly being updated using the TIBCO DB adapter.
Typically, TIBCO updates several tables at once, and then COMMIT. If I go through all the tables, taking a snapshot once a day, I could capture the data from table A before committing and from table B after committing, but if A and B have relationships, then they will no longer match properly.
Is "SET TRANSACTION READ ONLY" a way?
eg
COMMIT SET TRANSACTION READ ONLY SELECT * FROM A WHERE A.ADB_UPDATEDDATE > TODAY()-1 SELECT * FROM B WHERE B.ADB_UPDATEDDATE > TODAY()-1 etc. COMMIT
(TODAY syntax may be wrong, unimportant!)
Or is there something better I can do?
oracle snapshot
Bhasker pandya
source share