Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: running a process (oracle db) with modified system time

Re: running a process (oracle db) with modified system time

From: Barry Margolin <barmar_at_alum.mit.edu>
Date: Mon, 17 May 2004 00:21:00 -0400
Message-ID: <barmar-A8D1F0.00210017052004@comcast.dca.giganews.com>


In article <f9226414.0405161636.4515fcc_at_posting.google.com>,  ilaletin_at_usa.net (Igor Laletin) wrote:

> Jarek 'bacza' Baczynski <jarek_at_nie.lubie.spamu.invalid> wrote in message
> news:<slrn.pl.cadde9.3vvpmv9.jarek_at_Jarek.Baczynski>...
> > hello there,
> >
> > I'm wondering if there is a way to run a process on solaris in such
> > a way that it receives the system time modified with a given amount
> > of secs/mins/hours/...
> >
> > I don't want to change the time on the server, I just want to run
> > a specific process in an environment that "emulates" a different time.
>
> The easiest way is to set TZ env variable before you start up the
> instance and the listener. You can even have different times in
> different sessions if you start several listeners with different TZ's
> and connect via Net.

That would change the way the time is displayed to humans, but won't have any effect on the times used internally within the program. Those times are simply the interval since the epoch.

-- 
Barry Margolin, barmar_at_alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Received on Sun May 16 2004 - 23:21:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US