Skip to content

Commit 2022f95

Browse files
committed
Shows which program etc is running in Oracle when you pass it a UNIX PID
1 parent d674fb4 commit 2022f95

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: unix_process.sql

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
REM Filename : unix_process.sql
2+
REM Author : Craig Richards
3+
REM Created : 27-June-2006
4+
REM Version : 1.1
5+
REM Modifications : 1.1 10th March 2009 (CR) - Added the sid and the serial number
6+
REM
7+
REM Description : Show what program is running when you pass a UNIX PID
8+
9+
SELECT s.username, s.program, p.spid,s.status,s.sid, s.serial#
10+
FROM v$session s, v$process p
11+
WHERE p.addr = s.paddr
12+
AND p.spid = &PROC_ID;
13+
14+
REM End of Script

0 commit comments

Comments
 (0)