<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Database Tips blog &#187; demodrop.sql</title>
	<atom:link href="http://oracle-database-tips.com/wp/tag/demodropsql/feed" rel="self" type="application/rss+xml" />
	<link>http://oracle-database-tips.com/wp</link>
	<description>News for Oracle professionals</description>
	<lastBuildDate>Fri, 11 May 2012 12:12:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Demodrop.sql</title>
		<link>http://oracle-database-tips.com/wp/sqlplus/demodropsql</link>
		<comments>http://oracle-database-tips.com/wp/sqlplus/demodropsql#comments</comments>
		<pubDate>Fri, 23 Oct 2009 11:22:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL*PLUS]]></category>
		<category><![CDATA[bonus]]></category>
		<category><![CDATA[c oracle]]></category>
		<category><![CDATA[cascade]]></category>
		<category><![CDATA[demo folder]]></category>
		<category><![CDATA[demo tables]]></category>
		<category><![CDATA[demodrop.sql]]></category>
		<category><![CDATA[demonstration table]]></category>
		<category><![CDATA[dummy]]></category>
		<category><![CDATA[oracle corporation]]></category>

		<guid isPermaLink="false">http://oracle-database-tips.com/wp/?p=85</guid>
		<description><![CDATA[demodrop.sql syntax]]></description>
			<content:encoded><![CDATA[<p>If you can&#8217;t find the sql script to drop the demo tables in your $ORACLE_HOME/sqlplus/demo folder<br />
(or %ORACLE_HOME%sqlplusdemo on windows)<br />
you can cut it from this page and paste it in a text editor of your choice.</p>
<p>Save it to a file on your server or PC and run it to complete dropping the Oracle demo tables.</p>
<h3>Demo_drop.sql</h3>
<p>====== start of section to cut ======</p>
<pre>--
-- 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</pre>
<p>====== end of section to cut ======</p>
<h3>Drop scott user</h3>
<p>If you want to drop the scott user, do the following (login as DBA ):<br />
<!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>SQL&gt; drop user scott cascade;</p>
<p>User dropped.</p></div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="content">
<li>The cascade word drops all objects owned by scott.</li>
<li>Make sure scott is no longer connected.</li>
<li>Only do this if you are sure you will no longer need the user or his objects.</li>
<li>Always take an export before dropping users.</li>
<p><!-- ============================================================================================================================================================ --></p>
<h3>Recommended reading:</h3>
<li><a title="opens new window" onclick="window.open('http://www.oracle-database-tips.com/cgi-bin/counter.pl?url=http%3A%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14357%2Ftoc.htm&amp;referrer=http%3A%2F%2Fwww.oracle-database-tips.com%2Fdemodrop.html'); return false;" href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/toc.htm" target="_blank">Oracle online documentation: SQL*Plus® User&#8217;s Guide and Reference</a></li>
</div>
]]></content:encoded>
			<wfw:commentRss>http://oracle-database-tips.com/wp/sqlplus/demodropsql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

