Last active
October 4, 2016 13:39
-
-
Save akapitula/e77eb26d1a4c041a93fdc99b553ecca5 to your computer and use it in GitHub Desktop.
remove connected user oracle RDS
This file contains hidden or 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
# 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