--------------------------------------------------------
--  DDL for Table SRC_CP_ANALYTICS_QUEUE_RP_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" 
   (	"NKEY" NUMBER, 
	"SERVICEENVIRONMENT" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"SOURCEACCOUNT" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"TARGETACCOUNT" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"WORKFLOWID" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"TARGETPDB" NUMBER, 
	"TARGETUNIQUECDB" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"STATUS" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"SNAPSHOTDATE" DATE, 
	"VERSION" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"CREATEDDATE" DATE, 
	"INSTANCESIZE" NUMBER, 
	"DATACENTERID" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"MOVEDTOATP" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"LOGINTERVENTIONCOUNT" NUMBER, 
	"TOTALREFRESHTIME" NUMBER, 
	"REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"ENDPOINT" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_DOWNLOADED_TIMESTAMP_UTC" DATE, 
	"SOURCEPDB" NUMBER, 
	"HARDWARETYPE" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"EMAIL" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"MODIFIEDDATE" DATE, 
	"CLEANUPDBONFAILURE" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"SOURCEDCID" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"TARGETDCID" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"REFRESHMODE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"DBCLONEWORKFLOWID" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DBCLONETOTALTIME" NUMBER, 
	"ACCOUNTCLONEWORKFLOWID" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"ACCOUNTCLONETOTALTIME" NUMBER, 
	"LASTACTOR" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"ERRORTEXT" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP"
   )  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_CP_ANALYTICS_QUEUE_RP_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB_PK" ON "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" ("ENDPOINT", "REGION", "NKEY") 
  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_CP_ANALYTICS_QUEUE_RP_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" MODIFY ("NKEY" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" MODIFY ("REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" MODIFY ("ENDPOINT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB" ADD CONSTRAINT "SRC_CP_ANALYTICS_QUEUE_RP_TB_PK" PRIMARY KEY ("ENDPOINT", "REGION", "NKEY")
  USING INDEX "OTHQ_OWN"."SRC_CP_ANALYTICS_QUEUE_RP_TB_PK"  ENABLE;
