Since you already decided to use "onstat -g ntt" the you can also use
session id (sid) of idle session and sent it "onmode -z" to attempt more
gracefull kill.
> Hello everyone!
> We are implementing a script to automatically kill off idle application
[quoted text clipped - 16 lines]
> Regards,
> Carl Y. Wu
Carl Wu - 31 Oct 2006 00:03 GMT
> Since you already decided to use "onstat -g ntt" the you can also use
> session id (sid) of idle session and sent it "onmode -z" to attempt more
> gracefull kill.
Thanks Davorin.
The application processes are run by a separate user id, and the script
to kill idle processes are also run by that user id. This is an
advantage as that user id does not have DBA permission. "onmode -z"
will have to be run as user "informix", which would be undesirable.