User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 402,035 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,430 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 2407 | Replies: 4
Reply
Join Date: Mar 2007
Posts: 45
Reputation: satish.paluvai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
satish.paluvai satish.paluvai is offline Offline
Light Poster

Question deleting the tables

  #1  
Mar 31st, 2007
how to delete all the tables in the a user at a time?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: London
Posts: 114
Reputation: davidcairns is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
davidcairns davidcairns is offline Offline
Junior Poster

Re: deleting the tables

  #2  
Mar 31st, 2007
There is no one command to do this, you could write a PL procedure to do it, or generate the SQL statements from USER_TABLES. Alternately some IDE's provide an easier way.
Reply With Quote  
Join Date: Apr 2007
Posts: 11
Reputation: wavalker is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
wavalker wavalker is offline Offline
Newbie Poster

Re: deleting the tables

  #3  
Apr 12th, 2007
if in yor databse you have only tables then simply can drop user
or u can create one one store procedure to delete all table from your databse
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 78
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: deleting the tables

  #4  
Jul 14th, 2007
try to write a script for this
or
a better option would be to write a cursor and then drop the tables .
Share your Knowledge.
Reply With Quote  
Join Date: Aug 2007
Posts: 6
Reputation: Musta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Musta Musta is offline Offline
Newbie Poster

Re: deleting the tables

  #5  
Aug 23rd, 2007
You have two options:
---------------------------------------
1) Create a script
set lines 200;
set pages 10000;
spool c:\DROP_TABLES.txt;
select 'DROP TABLE '||table_name||';'
from all_tables
where owner = 'SCOTT';
-- change the SCOTT to the owner of the tables you need to drop.
spool off;
---------------------------------------
@c:\DROP_TABLES.txt; -- to run the script that we created.
-- repeat this step tell u drop all the tables.
---------------------------------------

2) From the Enterprise Manager , Drop the owner Schema.

Regards.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Oracle Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 10:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC