Created
October 10, 2016 08:26
-
-
Save haisum/e3eee6962c3dfaad36ae8f8115542677 to your computer and use it in GitHub Desktop.
Dropping connected users in oracle
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# || ''';' from v$session where username = 'SCHEMANAME' | |
alter system kill session '1977,12013'; | |
drop user 'SCHEMANAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment