Unix Technical Forum

Old INFORMIXSERVER name from onstat -g env

This is a discussion on Old INFORMIXSERVER name from onstat -g env within the Informix forums, part of the Database Server Software category; --> IDS 10 Solaris 10 Sun V480 We changed the name of our server by editing the onconfig file and ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 10:51 AM
David E. Grove
 
Posts: n/a
Default Old INFORMIXSERVER name from onstat -g env

IDS 10
Solaris 10
Sun V480

We changed the name of our server by editing the onconfig file and changing
the user informix env var INFORMIXSERVER.

Everything works just fine.

'onstat -g env' still reports the old name for INFORMIXSERVER. As a matter
of curiosity, I'm wondering where "onstat" gets the value it reports?

Regards,

DG


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:51 AM
Neil Truby
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env

"Jonathan Leffler" <jleffler@earthlink.net> wrote in message
news:Wdsnf.2409$n1.598@newsread2.news.pas.earthlin k.net...
> David E. Grove wrote:
>> IDS 10
>> Solaris 10
>> Sun V480
>>
>> We changed the name of our server by editing the onconfig file and
>> changing
>> the user informix env var INFORMIXSERVER.
>>
>> Everything works just fine.
>>
>> 'onstat -g env' still reports the old name for INFORMIXSERVER. As a
>> matter
>> of curiosity, I'm wondering where "onstat" gets the value it reports?

>
> The value of INFORMIXSERVER when you started the server.
>
> If you've not restarted the server, the value of $INFORMIXSERVER hasn't
> changed (yet) - but it sounds like it will when you restart.


And will presumably fail when you restart unless you've changed sqlhosts
also.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 10:51 AM
Jonathan Leffler
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env

David E. Grove wrote:
> IDS 10
> Solaris 10
> Sun V480
>
> We changed the name of our server by editing the onconfig file and changing
> the user informix env var INFORMIXSERVER.
>
> Everything works just fine.
>
> 'onstat -g env' still reports the old name for INFORMIXSERVER. As a matter
> of curiosity, I'm wondering where "onstat" gets the value it reports?


The value of INFORMIXSERVER when you started the server.

If you've not restarted the server, the value of $INFORMIXSERVER hasn't
changed (yet) - but it sounds like it will when you restart.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 10:51 AM
David E. Grove
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env



> The value of INFORMIXSERVER when you started the server.
>
> If you've not restarted the server, the value of $INFORMIXSERVER hasn't
> changed (yet) - but it sounds like it will when you restart.
>


That's sort of what made me curious, because we have bounced the server.
Bounced the box, too.

No complaints, everything is working fine. But, it made me wonder.

DG


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 10:51 AM
David E. Grove
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env



>
> And will presumably fail when you restart unless you've changed sqlhosts
> also.
>
>


I did change sqlhosts.

Restarts just fine. Works just fine.

DG


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 10:52 AM
David E. Grove
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env


>
> 'onstat -g env' still reports the old name for INFORMIXSERVER. As a

matter
> of curiosity, I'm wondering where "onstat" gets the value it reports?
>


Someone emailed me and suggested that the data probably came from the
reserved pages. It's got to be nonvolatile storage, so I guess that must be
it. I wonder how many INFORMIXSERVER name changes are tracked that way.

But, the real question... Even though everything seems to be OK, is there
some non-immediately-visible issue that's going to bite me in the future
when I least expect it?

DG


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 10:54 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: Old INFORMIXSERVER name from onstat -g env


So you have restarted and onstat -g env still shows the old value?

And this is not in the environment of the server when it is started
Add to the startup file env > /mydir/env.$INFORMIXSERVER.date
'+whatever gives to the second accuracy'
since I assume you will not start 2 instances in the same second. Put
in a sleep 5 between instance starts
if needed since it is probably a bad idea from machine load to start
several instances in parallel.

What does oncheck -cr give? Any reserved page differences?

David.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com