Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a429801

Browse files
authored
Create sess-to-unix-process.sql
1 parent 7a5f9d4 commit a429801

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sess-to-unix-process.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT s.sid, s.serial#, s.username, s.osuser, p.spid unix_process, s.machine, p.terminal, s.program, s.terminal
2+
FROM v$session s, v$process p
3+
WHERE s.paddr = p.addr
4+
and s.machine like 'host1%'
5+
and s.terminal = 'pts/2';

0 commit comments

Comments
 (0)