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 04:30 AM
Killing idle users TIA PapaBear Shell Programming and Scripting 2 01-14-2008 04:37 PM
script for killing idle users jdel80 Shell Programming and Scripting 7 12-19-2005 04:42 PM
killing all processes for an user krishan SUN Solaris 2 05-27-2005 10:38 AM
Killing Idle session securhack Security 4 07-23-2001 09:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2002
annette annette is offline
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
  #2 (permalink)  
Old 04-12-2002
bmacdonald bmacdonald is offline
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.
  #3 (permalink)  
Old 04-13-2002
mikek147 mikek147 is offline
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
  #4 (permalink)  
Old 04-17-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
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/
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0