Last active
August 19, 2016 18:14
-
-
Save caiogallo/4733003 to your computer and use it in GitHub Desktop.
Search oracle blocking sessions and generate alter kill session script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select 'ALTER SYSTEM KILL SESSION ''' || sid || ',' || serial# || ''' immediate;' | |
from | |
v$session | |
where | |
username in ('DEV6SVT_MDS') | |
order by | |
blocking_session; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment