Solved

Finding old Process ID

Posted on 2012-03-15
2
757 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.

749 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