?
Solved

Remove an entire schema

Posted on 2007-04-05
5
Medium Priority
?
1,216 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 2000 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] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

762 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