Solved

Remove an entire schema

Posted on 2007-04-05
5
1,215 Views
Last Modified: 2013-12-19
How to remove an entire schema from the command line in SQLPLUS? Oracle 9i
what rights should DBA have?
Service = Bugs
Schema = Lefteye


Drop schema didn’t work. Or I just typed it wrong. 
0
Comment
Question by:Martin_01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:gvsbnarayana
ID: 18856855
Hi,
   You can connect to the database using a DBA privileged user name and drop the user like this:
Drop user lefteye cascade;
This is an irreversable action and all objects belonging to this user and the username is also dropped.
HTH
Regards,
Badri.
0
 
LVL 27

Expert Comment

by:sujith80
ID: 18856905
To be on the safe side, keep an export dump of the schema before drop.
0
 

Author Comment

by:Martin_01
ID: 18856911
so after I log in I would type "Drop user lefteye cascade;"
0
 
LVL 8

Accepted Solution

by:
gvsbnarayana earned 500 total points
ID: 18857002
Yes, but make sure that there is no session open with the username lefteye ... if any session is open with a username, then you can't drop that user.
HTH
Regards,
Badri.
0
 

Author Comment

by:Martin_01
ID: 18857830
Thanks :)
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question