Q
Problem solve Get help with specific problems with your technologies, process and projects.

Deleting a user from a tablespace

I have a deleted user but I am getting its name again in TOAD. If I try to delete it from my tablespace, I get an error that says "cannot drop a user that is currently connected." Please help.

I have a deleted user but I am getting its name again in TOAD. If I try to delete it from my tablespace, it says:

Error on line 0
DROP USER "OPS$SBF" CASCADE

ORA-01940: cannot drop a user that is currently connected

I tried this command:

DROP USER "ops$sbf" CASCADE in TOAD

but it's showing the error as I mentioned above. Please help.

The error tells the tale -- make sure there are no active connections from this user. You cannot connect as this user and drop it, you must do that from SYS or SYSTEM or a user with the DROP USER permission. Use the ALTER SYSTEM KILL command to kill any sessions the user currently has, then drop the user. The KILL may take a while to process.

Dig Deeper on Oracle error messages

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close