[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Finding old Process ID

Posted on 2012-03-15
2
Medium Priority
?
774 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 1000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

831 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