Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Oracle as a "time machine"

RE: Oracle as a "time machine"

From: Dunbar, Norman <>
Date: Wed, 1 Aug 2007 11:15:20 +0100
Message-ID: <919FC80F27E0C6428106496EDF92A7524B2798@EXCCLUS05.PRODDS.NTNL>

In a past life, a company I worked at had a stored proc in the database to return the SYSDATE. Seemed a bit of overkill, but it allowed the system to roll forward (and back) to any date we cared to have it at without changing the server time or using the Oracle fixed date (which never rolled onwards - it simply remained fixed.

There was a table in the schema which held an indicator of whether we were using SYSDATE or pseudo-date and a column holding a positive offset from SYSDATE that would be added to SYSDATE when the function was called.

The app was a financial one and it was easy to use this system to roll dates forward and see how a finance contract worked out over 'three years' rather than over a real three year period.

Might not be useful to the OP, but a thought maybe?

Contract Oracle DBA
Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.

We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at

Received on Wed Aug 01 2007 - 05:15:20 CDT

Original text of this message