Pages

Popular Posts

Showing posts with label How to Locate Database Process on OS. Show all posts
Showing posts with label How to Locate Database Process on OS. Show all posts

Thursday, January 31, 2008

How to Locate Database Process on OS

This script will map database process to the operating system process (spid), provide username and program (sqlplus, java etc...):

select p.spid, s.username, s.program
from v$process p, v$session s
where p.addr=s.paddr order by 2, 3, 1
/