dbTalk Databases Forums  

Different instances with markedly different times

comp.databases.informix comp.databases.informix


Discuss Different instances with markedly different times in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Truby
 
Posts: n/a

Default Different instances with markedly different times - 04-30-2010 , 09:16 AM






11.5 FC6 on RHEL 5.3

We kicked this around at IIUG and neither Jonathan Leffler, Guy Bowerman nor
Spokey Wheeler could think of a solution, so there likely isn't one!

Our customer has 5 or 6 instances on a Linux server.

They want to be able to set the system date and clock forward for one
instance only to, say, 14th May at 0400, without affceting the others, so a
SELECT CURRENT will return that time on that instance only. The system
clock must remain accurate though.

TZ can't be used to set the clock more than 12 hours out in either
direction, certainly not to span many days, so I don't see how we can do it
without moving the instance to its own server or VM.

Apparently it's easy in Oracle, as I've been told 20 times now ... ;-)

Any ideas?

Thanks
N

Reply With Quote
  #2  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: Different instances with markedly different times - 04-30-2010 , 09:29 AM






I have two useless ideas:

1- Overload the OS function that IDS uses (is it gettimeofday()?) and give
it some "intelligence"
2- Convince IDS development to use an internal time keeper instead of
relying on the OS to do it (this is probable what Oracle does?)

Regards.


On Fri, Apr 30, 2010 at 3:16 PM, Neil Truby <neil.truby (AT) ardenta (DOT) com> wrote:

Quote:
11.5 FC6 on RHEL 5.3

We kicked this around at IIUG and neither Jonathan Leffler, Guy Bowerman
nor
Spokey Wheeler could think of a solution, so there likely isn't one!

Our customer has 5 or 6 instances on a Linux server.

They want to be able to set the system date and clock forward for one
instance only to, say, 14th May at 0400, without affceting the others, so a
SELECT CURRENT will return that time on that instance only. The system
clock must remain accurate though.

TZ can't be used to set the clock more than 12 hours out in either
direction, certainly not to span many days, so I don't see how we can do it
without moving the instance to its own server or VM.

Apparently it's easy in Oracle, as I've been told 20 times now ... ;-)

Any ideas?

Thanks
N

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...

Reply With Quote
  #3  
Old   
Clive Eisen
 
Posts: n/a

Default Re: Different instances with markedly different times - 05-01-2010 , 02:44 AM



On 30/04/2010 15:29, Fernando Nunes wrote:
Quote:
I have two useless ideas:

1- Overload the OS function that IDS uses (is it gettimeofday()?) and
give it some "intelligence"
That's the one. Use LD_PRELOAD to slug gettimeofday by the offset -
should only be a few lines of C



--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.