Unix Technical Forum

RE: Need to create my own environment variable in Informix

This is a discussion on RE: Need to create my own environment variable in Informix within the Informix forums, part of the Database Server Software category; --> Hi All, I found a temp solution of writing a dummy function or a procedure that will return the ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:50 AM
Aashish Ramsinghani - ASDC, Chennai
 
Posts: n/a
Default RE: Need to create my own environment variable in Informix


Hi All,
I found a temp solution of writing a dummy function or a procedure that
will return the value and when we need to change the value we just alter
the function\procedure. Don't know how effective it would be against a
select from a memory resident table. In Oracle and SQL server all
functions are compiled and kept in memory but I don't know how Informix
treats functions.

This is the only workaround I could find. If you ppl have anything else
that would help please share the same with me.

Regards,
Aash

-----Original Message-----
From: Aashish Ramsinghani - ASDC, Chennai
Sent: Monday, December 12, 2005 5:09 PM
To: informix-list@iiug.org
Subject: Need to create my own environment variable in Informix
Importance: High

Hi,
I am using Informix 7.2 on a AIX box and I have a peculiar need, in my
project we are working on a installing triggers for all the clients, but
a part of these triggers need to be inactive for some clients and active
for others. The trigger gives additional functionality that many clients
do not require.

I cannot use global variables as they are session dependent and
I cannot use tables because it will slow down the server with thousands
of transactions hitting the trigger. I also thought about using memory
resident table for this purpose but it is again very slow cause its a
transactional system and the client doesn't want any degradation in
performance.

Is there any way of creating a TRUE global variable that
initializes with the database and retains its status throughout all
sessions. like environmental variables. or is there any other way you
ppl would recommend.

Thanks again for all the help.

Regards,
Aash
sending to informix-list
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 06:24 AM.


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