Skip to content

Instantly share code, notes, and snippets.

@haisum
Created October 10, 2016 08:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haisum/e3eee6962c3dfaad36ae8f8115542677 to your computer and use it in GitHub Desktop.
Save haisum/e3eee6962c3dfaad36ae8f8115542677 to your computer and use it in GitHub Desktop.
Dropping connected users in oracle
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