Query the connection information in the database. SQL _COMMAND is an SQL statement that can release A process: selectA. SID, B. SPID, a. SERIAL #, A. lockwait, A. USERNAME,.
Query the connection information in the database. SQL _COMMAND is an SQL statement that can release A process: select A. SID, B. SPID, a. SERIAL #, A. lockwait, A. USERNAME,.
Query the connection information in the database. SQL _COMMAND is an SQL statement that can release a process:
Select. SID, B. SPID,. SERIAL #,. lockwait,. USERNAME,. OSUSER,. logon_time,. last_call_et/3600 LAST_HOUR,. STATUS,
'Orakill' | sid | ''| spid HOST_COMMAND,
'Alter system kill session ''' | A. sid | ',' | A. SERIAL # | ''' SQL _COMMAND
From v $ session A, V $ process B where A. PADDR = B. ADDR AND SID> 6 and a. USERNAME = 'sbapp ';
Query database connections by user and machine Name:
SELECT username, machine, program, status, COUNT (machine)
Number of connections
FROM v $ session
Group by username, machine, program, status
Order by machine;
In the end database, A connection statement is as follows: '192 3' is '| A. sid |', '| A. SERIAL # |'
Alter system kill session '2017 3'
,