0

My Oracle XE database was useless mess of unused tables etc. Using SqlPlus and several google results, I finally managed to drop the XE database, but now when I connect with SqlPLus IO cannot create a database. For any CREATE DATABASE command issue, I get back the error ORACLE not available.

I assume this is as I deleted the only db on that server, which only has room for one db, SqlPlus now gets confused as to how to connect, still trying to find XE. How can I connect as admin without connection to a db. so that I am connected to Oracle but not to a db? This seems to new the most likely solution.

asked Dec 12, 2019 at 8:21
2
  • 1
    Your best bet is to wipe and reinstall Oracle XE, probably following some tutorial from Oracle, as you seem to be missing few important Oracle concepts. Commented Dec 12, 2019 at 19:56
  • 1
    %Oracle_home%\deinstall\deinstall.bat is your best friend in this case. Commented Dec 13, 2019 at 13:42

1 Answer 1

1

You should have dropped the owners (AKA schemas AKA users that created the tables) of the "mess of unused tables." If you dropped the database, no way to restore it (unless you have a backup). Just recreate the database. And in the future you can drop just the non-system users, like to drop the Oracle Sample schema SCOTT:

drop user SCOTT cascade;
answered Dec 12, 2019 at 19:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.