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
Solved

Remove an entire schema

Posted on 2007-04-05
5
1,213 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
Creating and Managing Databases with phpMyAdmin in cPanel.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to recover a database from a user managed backup

860 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