--------------------------------------------------------
--  DDL for Table SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" 
   (	"PRODUCTION_ACCOUNTS_INTERNAL_ID" NUMBER, 
	"ACCOUNT_ID" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"ACCOUNT_DATABASE_TYPE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASE_INTERNAL_ID" NUMBER, 
	"DATABASE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASE_INSTANCE" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"VERSION" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"DATACENTER" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DB_SIZE_IN_GB" NUMBER, 
	"CUSTOMER_INTERNAL_ID" NUMBER, 
	"CUSTOMER" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"SERVICE_TIER" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"WEB_ADDRESS" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"ACQUIRED_ON" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PROVISIONED_PRODUCT" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"ACTIVE_USERS" NUMBER, 
	"VALUE_ANNUAL_ENTERPRISE" NUMBER, 
	"VERTICAL" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"V_RANK" NUMBER, 
	"COMPANY_SIZE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"ANNUAL_REVENUE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"RENEWAL_RANKING" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_ACQUIRED_ON_UTC" DATE, 
	"METADATA_DOWNLOADED_TIMESTAMP_UTC" DATE, 
	"REGION" VARCHAR2(32 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_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB_PK" ON "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" ("PRODUCTION_ACCOUNTS_INTERNAL_ID", "DATABASE_INTERNAL_ID", "CUSTOMER_INTERNAL_ID") 
  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_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" MODIFY ("PRODUCTION_ACCOUNTS_INTERNAL_ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" MODIFY ("DATABASE_INTERNAL_ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" MODIFY ("CUSTOMER_INTERNAL_ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB" ADD CONSTRAINT "SRC_NLCORP_PRODUCTION_ACCOUNTS_APPLICATION_SERVER_HEALTH_TB_PK" PRIMARY KEY ("PRODUCTION_ACCOUNTS_INTERNAL_ID", "DATABASE_INTERNAL_ID", "CUSTOMER_INTERNAL_ID")
  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;
