Skip to content

Commit

Permalink
oracle cleanup script tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jul 26, 2013
1 parent 69708ec commit d049bee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/data/oracle/cleanup.sql
Expand Up @@ -18,10 +18,11 @@ FOR i IN (SELECT table_name FROM user_tables WHERE table_name = blks) LOOP
EXECUTE IMMEDIATE 'DROP TABLE ' || blks || ' PURGE';
END LOOP;

execute immediate 'CREATE TABLE '|| clouds ||'(id number, CLOUD SDO_PC, BOUNDARY SDO_GEOMETRY)';
execute immediate q'[delete from user_sdo_geom_metadata where table_name = ' || blks || ']';

execute immediate 'purge recyclebin';
execute immediate 'purge tablespace GRID';
execute immediate 'CREATE TABLE '|| clouds ||'(id number, CLOUD SDO_PC, BOUNDARY SDO_GEOMETRY)';
execute immediate q'[delete from user_sdo_geom_metadata where table_name = ' || blks || ']';

commit;

Expand Down

0 comments on commit d049bee

Please sign in to comment.