Solved

Finding old Process ID

Posted on 2012-03-15
2
751 Views
Last Modified: 2012-08-28
We are running Red Hat 5.7 and are trying to find a way to
determine what a process was running that was assigned to a certain  PID ??

We believe this was a process that crased the Oracle Database, we have found in some
Oracle logs the PID, but can't determine what that PID was...

Is there a way to get this out of the sar file for that day ???

Thanks
0
Comment
Question by:mikel60
2 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 37728957
have you read http://www.unix.com/red-hat/43718-how-find-out-process-id-particular-one-file.html great comment there
You need to use the 'a' option to see the processes by all users and the 'x' option to show all of the processes outside of the scope of the shell.
# ps -ax

If you just run that command as is, the results will just scroll by.

In order see and browse the results at you own pace you can pipe the list into 'less'.
# ps -ax | less

Or if you want to search for a particular application process, instead of piping in 'less' you can pipe the results into grep.
# ps -ax | grep search

For example I can find the process id of Firefox by doing something like this:
# ps -ax | grep firefox
3399 ?? S 3:30.90 /Ap ... OS/firefox-bin -ps ...
3456 p1 S+ 0:00.00 grep firefoxthis will solve your problem.
0
 

Author Comment

by:mikel60
ID: 37729185
I can find a running process, what I need to know is if there is a way through sar or some other history on the server to find a process that was running a few days ago ??
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Phone number for Microsoft server activation issues 3 54
HP P440ar Smart Array 6 81
MDT 2013 Sysprep and Capture 1 61
Problem to search 5 43
Good afternoon all, We are running a VM infrastructure on a clustered ESX environment with two DELL R710's.  One of our IT Application Support Engineers contacted me and asked if it was possible to extend the partition of a certain Windows 2003 S…
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question