ALTER SYSTEM KILL SESSION
Function
ALTER SYSTEM KILL SESSION ends a session.
Precautions
None
Syntax
1
|
ALTER SYSTEM KILL SESSION 'session_sid, serial' [ IMMEDIATE ]; |
Parameter Description
- session_sid, serial
Specifies SID and SERIAL of a session (see examples for format).
Value range: The SIDs and SERIALs of all sessions that can be queried from the system catalog V$SESSION.
- IMMEDIATE
Indicates that a session will be ended instantly after the command is executed.
Examples
Query session information.
1
|
SELECT sid,serial#,username FROM V$SESSION; |
End the session whose SID is 140131075880720.
1
|
ALTER SYSTEM KILL SESSION '140131075880720,0' IMMEDIATE; |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.