forked from geekcomputers/Oracle-SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient_info.sql
More file actions
20 lines (17 loc) · 553 Bytes
/
client_info.sql
File metadata and controls
20 lines (17 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
REM Script Name : client_info.sql
REM Author : Craig Richards
REM Created :
REM Last Modified :
REM Version : 1.0
REM
REM Modifications :
REM
REM Description : Shows the client connections within the oracle database
COLUMN username FORMAT A15 WORD_WRAPPED
COLUMN module FORMAT A15 WORD_WRAPPED
COLUMN action FORMAT A15 WORD_WRAPPED
COLUMN client_info FORMAT A30 WORD_WRAPPED
SELECT username||'('||sid||','||serial#||')' username, module, action, client_info
FROM v$session
WHERE module||action||client_info IS NOT NULL;
REM End of Script