Added database/sql

This commit is contained in:
Anonymous
2014-01-17 07:03:16 -07:00
parent 84d3709fdc
commit cf2e16dba2
570 changed files with 84897 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
update version_number set version_number=166, min_version_number=166;
declare
cnt integer;
begin
select count(*) into cnt from user_indexes
where index_name = 'CHUNK_IDX';
if (cnt > 0) then
execute immediate 'DROP INDEX CHUNK_IDX';
end if;
select count(*) into cnt from user_indexes
where index_name = 'OBJECTS_NODE_CONTAINED_BY_IDX';
if (cnt = 0) then
execute immediate 'CREATE INDEX OBJECTS_NODE_CONTAINED_BY_IDX ON OBJECTS(NODE_X, NODE_Z, CONTAINED_BY, DELETED) tablespace indexes';
end if;
exception
when others then
NULL;
end;
/