forked from geekcomputers/Oracle-SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunix_process.sql
More file actions
14 lines (12 loc) · 457 Bytes
/
unix_process.sql
File metadata and controls
14 lines (12 loc) · 457 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
REM Filename : unix_process.sql
REM Author : Craig Richards
REM Created : 27-June-2006
REM Version : 1.1
REM Modifications : 1.1 10th March 2009 (CR) - Added the sid and the serial number
REM
REM Description : Show what program is running when you pass a UNIX PID
SELECT s.username, s.program, p.spid,s.status,s.sid, s.serial#
FROM v$session s, v$process p
WHERE p.addr = s.paddr
AND p.spid = &PROC_ID;
REM End of Script