--------------------------------------------------------
--  DDL for Table SRC_SMD_PDBS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_SMD_PDBS_TB" 
   (	"PDBID" NUMBER, 
	"CDB" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"THINNAME" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"SERVICENAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"PDBNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"ONLINE" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"VERSIONMAJOR" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"VERSIONMINOR" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"DCID" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASETYPE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"DESCRIPTION" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"SINGLETONDB" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"ALLOWCLONES" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"MAINTENANCEWINDOW" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"NOTE" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"COMPID" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"AVAILABILITYDOMAIN" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"ADDITIONALATTRIBUTES" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"LASTMODIFIED" DATE, 
	"EDITION" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"ISPOOLEDCLONE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"TYPE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"EXTENSION" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASENAME" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DISPLAYNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"OCID" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"OCPUCOUNT" NUMBER, 
	"ECPUCOUNT" NUMBER, 
	"STORAGE" NUMBER, 
	"DBVERSION" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PRIVATEIP" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"HOSTNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"GROUP" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"USERNAME" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"NSDNSHOSTNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"TOWERID" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"ISTEMPLATE" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"STANDBYOCID" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"STANDBYDCID" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"RESOURCEUSER" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"ENDPOINT" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_DOWNLOADED_TIMESTAMP_UTC" DATE
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION DEFERRED 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  DDL for Index SRC_SMD_PDBS_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_SMD_PDBS_TB_PK" ON "OTHQ_OWN"."SRC_SMD_PDBS_TB" ("PDBID", "ENDPOINT", "REGION") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_SMD_PDBS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_SMD_PDBS_TB" MODIFY ("PDBID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_SMD_PDBS_TB" MODIFY ("REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_SMD_PDBS_TB" MODIFY ("ENDPOINT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_SMD_PDBS_TB" ADD CONSTRAINT "SRC_SMD_PDBS_TB_PK" PRIMARY KEY ("PDBID", "ENDPOINT", "REGION")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA"  ENABLE;
