Go to the FreeLists Home Page Home Signup Help Login
 



Browse oracle-l: This Month's ArchiveMain Archive PageRelated postsPrevious by DateNext by Date

RE: Oracle as a "time machine"

  • From: "Dunbar, Norman" <norman.dunbar@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 1 Aug 2007 11:15:20 +0100
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?


Cheers,
Norman.
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 www.environment-agency.gov.uk
--
http://www.freelists.org/webpage/oracle-l


Other related posts:

  • Oracle as a "time machine"
  • Re: Oracle as a "time machine"
  • Re: Oracle as a "time machine"
  • Re: Oracle as a "time machine"
  • RE: Oracle as a "time machine"




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.