--------------------------------------------------------
--  DDL for Table SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" 
   (	"DOC_COUNT" NUMBER, 
	"INDEX_" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DBINSTANCE" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DURATIONINSECONDS" NUMBER, 
	"MIGRATIONTASKID" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"MIGRATEFILE" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"CONTROLSTATE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"NETSUITEPRODUCT" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"TIMESTAMP" DATE, 
	"MIGRATEVERSION" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"DBID" NUMBER, 
	"MIGRATECONTROLFILE" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"CONTROLSECTION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"STARTTIME" DATE, 
	"MOLECULE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"EXCEPTIONMESSAGE" VARCHAR2(8192 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_DOWNLOADED_TIMESTAMP_UTC" DATE, 
	"ENDTIME" DATE, 
	"EXCEPTIONCLASS" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DBENDSIZEINGB" NUMBER, 
	"EXCEPTIONMESSAGE_HASH" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"MIGRATESTATE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_ORA_CODES" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_ANALYZED_TEXT" VARCHAR2(4096 BYTE) COLLATE "USING_NLS_COMP", 
	"MIGRATEFILESPACKAGEVERSION" VARCHAR2(32 BYTE)
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  DDL for Index SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB_PK" ON "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" ("MIGRATIONTASKID", "MIGRATEFILE", "MIGRATEVERSION", "DBID", "METADATA_REGION", "EXCEPTIONMESSAGE_HASH") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("MIGRATIONTASKID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("MIGRATEFILE" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("MIGRATEVERSION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("DBID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("EXCEPTIONMESSAGE_HASH" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" MODIFY ("METADATA_REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB" ADD CONSTRAINT "SRC_OSEARCH_MIGRATETELEMETRY_MIGVAL_TB_PK" PRIMARY KEY ("MIGRATIONTASKID", "MIGRATEFILE", "MIGRATEVERSION", "DBID", "METADATA_REGION", "EXCEPTIONMESSAGE_HASH")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA"  ENABLE;
