[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Finding old Process ID

Posted on 2012-03-15
2
Medium Priority
?
770 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 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
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…

650 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