Solved

Finding old Process ID

Posted on 2012-03-15
2
748 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
Comment Utility
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
Comment Utility
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

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Suggested Solutions

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now