Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: running a process (oracle db) with modified system time
In article <slrn.pl.cadde9.3vvpmv9.jarek_at_Jarek.Baczynski>,
Jarek 'bacza' Baczynski <jarek_at_nie.lubie.spamu.invalid> wrote:
> 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.
>
> is it possible to write some piece of code that catches some syscalls
> and returns modified time? if it is, how can I do that?
> any hints/links/code examples ;) will be greatly appreciated.
>
> the "process" is in fact an oracle database instance, so the solution
> (if any) would have to be a really good one :)
> (that is, on proper level of interception to make sure that any syscall
> that is supposed to return a current time is intercepted consistently)
You could use LD_PRELOAD to substitute your own function in place of the gettimeofday() system call.
-- Barry Margolin, barmar_at_alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***Received on Sat May 15 2004 - 20:13:55 CDT