The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 01:30 AM
Killing idle users TIA PapaBear Shell Programming and Scripting 2 01-14-2008 01:37 PM
script for killing idle users jdel80 Shell Programming and Scripting 7 12-19-2005 01:42 PM
killing all processes for an user krishan SUN Solaris 2 05-27-2005 06:38 AM
Killing Idle session securhack Security 4 07-23-2001 05:46 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-21-2002
Registered User
 

Join Date: Dec 2001
Location: Glasgow
Posts: 5
Killing idle user processes

I'm looking for some help, please!

I'm trying to kill any idle user processes over 40 Minutes.

I have tried putting TMOUT=2400
within the users .profile
However this does not seem to be working.

We run aix 4.3.3
with ORACLE 7.3

The above works o.k. when the user is only within the unix environment. But if they are connected to oracle it doesn't.

I would be grateful for any advice.

Thanking all in advance
Forum Sponsor
  #2  
Old 04-12-2002
Registered User
 

Join Date: Apr 2002
Posts: 1
Look at your sqlnet settings.
On the database you can look @ open transactions, as long as the user your trying to kill has no open transaction kill him/her at the os level.

kill -9 osspid

Cheers.
__________________
Brian
  #3  
Old 04-13-2002
Registered User
 

Join Date: Feb 2002
Posts: 28
Uning the kill command with the signal of 9 is a dangerous way of terminating a process. The 9 signal is an absolute and unblockable form of termination. This means that if a process has, for example, multiple files open or has a database open, although the user may be gone, the files can remain open or the database left in an unstable condition.

If you must kill a process, use kill with signal 15 or without a signal. Using kill without a signal, it defaults to signal 15 anyway, which notifies the offending process to shut down. If the process is written correctly, it will close down transactions or any open files and exit cleanly. -mk
__________________
If it aint broke,
Fix it till it is.
  #4  
Old 04-17-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Also, look at the idled program. It isn't being maintained anymore, but it may still work in your environment.
http://www.darkwing.com/idled/
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0