If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How get the session id and kill ;

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-04, 03:28
om_kash om_kash is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Question How to get the session id and kill ;

Hi all,


I'm invoking Informix Stored Procedure from Java(using JDBC); I want to kill/stop the Stored Procedure and rollback the data; My Environment is: Informix 9.4 , java 1.4.1(JDBC) ;

How to kill the Stored Procedure and roll back the data;
(how to get the session id ,pid and which command/sql command i've to use to kill the informix session programmaticly -->using Stored procedure/sql/esql)


Thanks
om

Last edited by om_kash; 02-15-04 at 04:44.
Reply With Quote
  #2 (permalink)  
Old 02-16-04, 01:50
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Re: How to get the session id and kill ;

Hi Om,

You can run the below commands from unix command prompt, i am not too sure how you would do it in stored procedure.

To view all the active sessions

onstat -g ses

To kill a particular session

onmode -z <sessionid>


Regards,

lloyd

Quote:
Originally posted by om_kash
Hi all,


I'm invoking Informix Stored Procedure from Java(using JDBC); I want to kill/stop the Stored Procedure and rollback the data; My Environment is: Informix 9.4 , java 1.4.1(JDBC) ;

How to kill the Stored Procedure and roll back the data;
(how to get the session id ,pid and which command/sql command i've to use to kill the informix session programmaticly -->using Stored procedure/sql/esql)


Thanks
om
Reply With Quote
  #3 (permalink)  
Old 02-18-04, 11:34
om_kash om_kash is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Re: How to get the session id and kill ;

Quote:
Originally posted by lloydnwo
Hi Om,

You can run the below commands from unix command prompt, i am not too sure how you would do it in stored procedure.

To view all the active sessions

onstat -g ses

To kill a particular session

onmode -z <sessionid>


Regards,

lloyd
Hi lloyd,

Any way thanks , but i'm looking for programmtically;
i thing with dbinfo('sessionid") , i can do that;
then execute onmode -z sessionid;



thanks
om
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On