Oracle database tips logo
Article categories | Blog and News Page | SQL | SQL*Plus | DBA Scripts | Standby dbs | Database Links | Techno webcasts | Oracle Magazine | Free IT Magazines | Oracle Database Hosting Companies | Site Search |
RSS
XML RSS
What is this?
AddThis Feed Button

Social Bookmarking


-- FREE --
IT Magazine
Subscriptions

Oracle Magazine Oracle Magazine Contains technology strategy articles, sample code, tips, Oracle and partner news, how-to articles for developers and DBAs

WebSite Magazine WebSite Magazine Practical advice, helpful tools and insights for website owners

Dr Dobb's Journal Dr Dobb's Journal enables coders to write the most efficient programs and help in daily programming quandaries

DM Review DM Review is recognized as the premier business intelligence, analytics and data warehousing publication
Various other Free IT magazine subscriptions
NoAdware Free Trial

NoAdware Remove
harmful
adware,
spyware,
trojans,
dialers
and worms!
- Featured ebook -

Database Normalization
by Alf Pedersen

Database Normalization ebook Understand and master how to normalize a database using methods richly documented with graphical ERD and server diagram examples

Demodrop.sql
Download the script to drop the demo tables here.



Always test these 'demodrop' commands on a test server before implementing them on a production server.

If you can't find the sql script to drop the demo tables in your $ORACLE_HOME/sqlplus/demo folder
  (or %ORACLE_HOME%\sqlplus\demo on windows)
you can cut it from this page and paste it in a text editor of your choice.

Save it to a file on your server or PC and run it to complete dropping the Oracle demo tables.


Demo_drop.sql


====== start of section to cut ======
--
-- Copyright (c) Oracle Corporation 1988, 2000.  All Rights Reserved.
--
--
-- DESCRIPTION
--   This script drops the SQL*Plus demonstration tables created by
--   demobld.sql.  It should be STARTed by each owner of the tables.
--
-- USAGE
--   From within SQL*Plus, enter:
--       START demodrop.sql

SET TERMOUT ON
PROMPT Dropping demonstration tables.  Please wait.
SET TERMOUT OFF

DROP TABLE EMP;
DROP TABLE DEPT;
DROP TABLE BONUS;
DROP TABLE SALGRADE;
DROP TABLE DUMMY;

SET TERMOUT ON
PROMPT Demonstration table drop is complete.

EXIT
====== end of section to cut ======

Drop scott user

If you want to drop the scott user, do the following (login as DBA ):

SQL> drop user scott cascade;

User dropped.



  • The cascade word drops all objects owned by scott.
  • Make sure scott is no longer connected.
  • Only do this if you are sure you will no longer need the user or his objects.
  • Always take an export before dropping users.




  • Recommended reading:

  • Oracle online documentation: SQL*PlusŪ User's Guide and Reference


  • Return from 'demodrop.sql' back to 'oracle sqlplus tutorials'