diff --git a/castor/db/oracleCommon.schema.sql b/castor/db/oracleCommon.schema.sql index 12861116c60ff708c8ccea1fdd588d1eb6f4930d..5929289746d3f043a1e90122dfcd1d3f1c31b9ec 100644 --- a/castor/db/oracleCommon.schema.sql +++ b/castor/db/oracleCommon.schema.sql @@ -757,6 +757,7 @@ CREATE GLOBAL TEMPORARY TABLE FilesToMigrateHelper CREATE TABLE FileMigrationResultsHelper (reqId VARCHAR2(36), fileId NUMBER, lastModTime NUMBER, copyNo NUMBER, oldCopyNo NUMBER, transfSize NUMBER, comprSize NUMBER, vid VARCHAR2(6), fSeq NUMBER, blockId RAW(4), checksumType VARCHAR2(16), checksum NUMBER); +CREATE INDEX I_FileMigrationResultsHelper_ReqId ON FileMigrationResultsHelper(ReqId); /* SQL statements for type DiskServer */ CREATE TABLE DiskServer (name VARCHAR2(2048), lastHeartbeatTime NUMBER, id INTEGER CONSTRAINT PK_DiskServer_Id PRIMARY KEY, status INTEGER, hwOnline INTEGER DEFAULT 0) INITRANS 50 PCTFREE 50 ENABLE ROW MOVEMENT; diff --git a/upgrades/stager_2.1.13-9_to_2.1.14-2.sql b/upgrades/stager_2.1.13-9_to_2.1.14-2.sql index 89bf33e0df5c88e3f95e90790323d8f31d90ca46..15bfd4a8e76ce0f08970e2131d7de9dfb7da6fc8 100644 --- a/upgrades/stager_2.1.13-9_to_2.1.14-2.sql +++ b/upgrades/stager_2.1.13-9_to_2.1.14-2.sql @@ -502,6 +502,7 @@ DROP PROCEDURE startDraining; DROP PROCEDURE stopDraining; DROP PROCEDURE cancelRecall; +CREATE INDEX I_FileMigrationResultsHelper_ReqId ON FileMigrationResultsHelper(ReqId); /* PL/SQL code revalidation */ /****************************/