Skip to content

Instantly share code, notes, and snippets.

@akapitula
Last active October 4, 2016 13:39
Show Gist options
  • Save akapitula/e77eb26d1a4c041a93fdc99b553ecca5 to your computer and use it in GitHub Desktop.
Save akapitula/e77eb26d1a4c041a93fdc99b553ecca5 to your computer and use it in GitHub Desktop.
remove connected user oracle RDS
# In any database editor run SQL:
SELECT SID, SERIAL#, STATUS
FROM V$SESSION
WHERE USERNAME = '<SCHEME>';
# then in SQLPlus:
exec rdsadmin.rdsadmin_util.kill(SID, SERIAL#);
# drop it:
drop user <username> cascade;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment