Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
set pages 0
spool drop.sql
select 'drop table '||table_name||';'
from user_tables
where table_name like 'TEST_%';
spool off
(check drop.sql to make sure it only drops tables you want to get rid of, then...)
@drop.sql
-- DESTROY_USER_OBJECTS.SQL 1/18/2001 R. Tefft
--
-- This script generates a SQL script which will drop all database objects
-- owned by the specified user. The resulting script must be executed manually
-- (for safety reasons).
--
column idx noprint
set pages 0 lines 100 verify off
spool destroy_&&owner._objects.sql
select 1 idx, 'alter table '||table_name||' drop constraint '||constraint_name||' cascade;'
from user_constraints where constraint_type='P'
union
select 2, 'truncate table '||object_name||';'
from user_objects
where object_type = 'TABLE'
union
select 3, 'drop '||object_type||' '||object_name||';'
from user_objects
where object_type not in ('INDEX', 'CONSTRAINT', 'PACKAGE BODY')
union
select 4, 'drop public synonym '||synonym_name||';'
from dba_synonyms
where owner='PUBLIC' and table_owner=upper('&&Owner')
order by 1, 2
/
spool off
prompt Destruction script is named destroy_&owner._objects.sql