DROP TABLE AirWatchAPICertTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AirWatchAPICertTest_DDD
(	
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
	appleId			VARCHAR2(128) NOT NULL,
	certType		VARCHAR2(300) NOT NULL,
	thumbPrint		VARCHAR2(1000) NOT NULL,
	issuedBy		VARCHAR2(1000) NOT NULL,
	issuedTo		VARCHAR2(1000) NOT NULL,
	validFrom		VARCHAR2(128) NOT NULL,
	validTo			VARCHAR2(128) NOT NULL,
	currentSetting	VARCHAR2(128) NOT NULL,
	childPermission	VARCHAR2(128) NOT NULL
	);

ALTER TABLE  AirWatchAPICertTest_DDD ADD constraint Pk_AirWatchAPICertTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AirWatchAPICertTest_DDD ON AirWatchAPICertTest_DDD
(
 	MSMT_TIME
);


DROP TABLE CtxXcXASessionTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  CtxXcXASessionTest_DDD
(
SITE_NAME  	VARCHAR2(64) NOT NULL,
TRGT_HOST    	VARCHAR2(32) NOT NULL,
PORT_NO      	VARCHAR2(32) NOT NULL,
TEST_NAME    	VARCHAR2(64) NOT NULL,
MEASURE      	VARCHAR2(64) NOT NULL,
INFO         	VARCHAR2(128) NOT NULL,
STATE        	VARCHAR2(32) NOT NULL,
MSMT_HOST    	VARCHAR2(32) NOT NULL,
MSMT_TIME    	DATE NOT NULL,
SEQ_NO 		NUMBER(16) NOT NULL,
USERNAME VARCHAR2(128) NOT NULL,
SESSIONNAME VARCHAR2(128) NOT NULL,
ID NUMBER(16) NOT NULL,
CTX_STATE VARCHAR2(32) NOT NULL,
IDLE_TIME VARCHAR2(32) NOT NULL,
LOGON_TIME VARCHAR2(32) NOT NULL,
CLIENT_NAME VARCHAR2(128) NOT NULL,
CLIENT_IPADDRESS VARCHAR2(256) NOT NULL,
CLIENT_VERSION VARCHAR2(128) NOT NULL,
CLIENT_ID VARCHAR2(128) NOT NULL,
CLIENT_TYPE VARCHAR2(256) NOT NULL,
CLIENT_CATEGORY VARCHAR2(256) NOT NULL,
SESSION_KEY VARCHAR2(256) NOT NULL,
HDX_DISPLAY_MODE VARCHAR2(256) NOT NULL,
HDX_ACTIVE_ENCODER VARCHAR2(256) NOT NULL,
HDX_PROTOCOL VARCHAR2(256) NOT NULL,
ENCRYPTION_LEVEL VARCHAR2(256) NOT NULL,
NETSCALER_RPTNAME VARCHAR2(256) NOT NULL,
NETSCALER_IP_ADDRESS VARCHAR2(128) NOT NULL,
XENAPP_IP_ADDRESS VARCHAR2(128) NOT NULL,
ENDPOINT_IP_ADDRESS VARCHAR2(128) NOT NULL,
COUNTRY_NAME VARCHAR2(256) NOT NULL,
COUNTRY_CODE VARCHAR2(256) NOT NULL,
REGION VARCHAR2(256) NOT NULL,
CITY VARCHAR2(256) NOT NULL,
LATITUDE VARCHAR2(64) NOT NULL,
LONGITUDE VARCHAR2(64) NOT NULL,
Idle_ssn_act VARCHAR2(4000) NOT NULL,
Idle_ssn_errdtl VARCHAR2(4000) NOT NULL,
Disc_ssn_act VARCHAR2(4000) NOT NULL,
Disc_ssn_errdtl VARCHAR2(4000) NOT NULL,
Pre_idle_ssn_act VARCHAR2(4000) NOT NULL,
Pre_idle_ssn_errdtl VARCHAR2(4000) NOT NULL,
Pre_disc_ssn_act VARCHAR2(4000) NOT NULL,
Pre_disc_ssn_errdtl VARCHAR2(4000) NOT NULL,
RENDEZVOUS_PROTOCOL VARCHAR2(64) NOT NULL,
SESSION_INFO VARCHAR2(4000) NOT NULL);

ALTER TABLE  CtxXcXASessionTest_DDD ADD constraint Pk_CtxXcXASessionTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE  INDEX IDX_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD
(
 	MSMT_TIME
);

CREATE INDEX idx1_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (TRGT_HOST,PORT_NO,MEASURE,USERNAME,CLIENT_IPADDRESS,CLIENT_VERSION);
CREATE INDEX IDX2_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD(MEASURE, MSMT_TIME, TRGT_HOST, USERNAME, LOGON_TIME);

create index idx3_CtxXcXASessionTest_DDD on CtxXcXASessionTest_DDD ( trgt_host, port_no, username, measure, msmt_time) ;

CREATE INDEX idx4_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (MEASURE,MSMT_TIME); 

CREATE INDEX IDX5_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (SESSION_KEY,MSMT_TIME);

DROP TABLE VmgICASessionTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE VmgICASessionTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE		VARCHAR2(64) NOT NULL,
	INFO		VARCHAR2(128) NOT NULL,
	STATE		VARCHAR2(32) NOT NULL,
	MSMT_HOST	VARCHAR2(32) NOT NULL,
	MSMT_TIME	DATE NOT NULL,
	SEQ_NO		NUMBER(16) NOT NULL,
	Bandwidth	NUMBER(20,4) NOT NULL,
	Latency		NUMBER(20,4) NOT NULL,
	Ica_RTT		NUMBER(20,4) NOT NULL,
	Bandwidth_status VARCHAR2(256) NOT NULL,
	Latency_status	VARCHAR2(256) NOT NULL,
	Ica_RTT_status	VARCHAR2(256) NOT NULL,
	CLIENT_NAME VARCHAR2(128) NOT NULL,
	CLIENT_IPADDRESS VARCHAR2(256) NOT NULL,
	CLIENT_VERSION VARCHAR2(128) NOT NULL,
	CLIENT_ID VARCHAR2(128) NOT NULL,
	CLIENT_TYPE VARCHAR2(256) NOT NULL,
	CLIENT_CATEGORY VARCHAR2(256) NOT NULL,
	SESSION_KEY VARCHAR2(256) NOT NULL,
	HDX_DISPLAY_MODE VARCHAR2(256) NOT NULL,
	HDX_ACTIVE_ENCODER VARCHAR2(256) NOT NULL,
	HDX_PROTOCOL VARCHAR2(256) NOT NULL,
	ENCRYPTION_LEVEL VARCHAR2(256) NOT NULL,
	ASSIGNMENT_TYPE VARCHAR2(128) NOT NULL,
	BROKER_SITE_NAME VARCHAR2(128) NOT NULL,
	DELIVERY_GROUP_NAME VARCHAR2(128) NOT NULL,
	CATALOG_NAME VARCHAR2(128) NOT NULL,
	DELIVERY_CONTROLLER_NAME VARCHAR2(128) NOT NULL,
	DELIVERY_CONTROLLER_TIME VARCHAR2(128) NOT NULL,
	LICENSE_SERVER_NAME VARCHAR2(128) NOT NULL,
	LICENSE_SERVER_PORT VARCHAR2(128) NOT NULL,
	LICENSE_SERVER_MODEL VARCHAR2(128) NOT NULL,
	LICENSE_PRODUCT_EDT VARCHAR2(128) NOT NULL,
	LICENSE_PRODUCT_NAME VARCHAR2(128) NOT NULL,
	PROVISIONING_TYPE VARCHAR2(128) NOT NULL,
	PERSISTENT_DATA_LOCATION VARCHAR2(256) NOT NULL,
	PERSONAL_VDISK_DRIVE VARCHAR2(128) NOT NULL,
	RENDEZVOUS_PROTOCOL VARCHAR2(64) NOT NULL,
	SESSION_INFO VARCHAR2(4000) NOT NULL);

ALTER TABLE VmgICASessionTest_DDD ADD constraint Pk_VmgICASessionTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_VmgICASessionTest_DDD ON VmgICASessionTest_DDD
(
 	MSMT_TIME
);

create index IDX1_VmgICASessionTest_DDD ON VmgICASessionTest_DDD ( TRGT_HOST, PORT_NO, INFO , MEASURE, MSMT_TIME);



DROP TABLE EgUserInfoTest_DDD  CASCADE CONSTRAINTS;
CREATE TABLE EgUserInfoTest_DDD
(
	SITE_NAME        VARCHAR2(64) NOT NULL,
	TRGT_HOST        VARCHAR2(32) NOT NULL,
	PORT_NO          VARCHAR2(32)NOT NULL,
	TEST_NAME       VARCHAR2(64) NOT NULL,
	MEASURE          VARCHAR2(64) NOT NULL,
	INFO               VARCHAR2(128) NOT NULL,
	STATE                    VARCHAR2(32) NOT NULL,
	MSMT_HOST     VARCHAR2(32) NOT NULL,
	MSMT_TIME      DATE NOT NULL,
	SEQ_NO                               NUMBER(16) NOT NULL,
	User_role            VARCHAR2(1024) NOT NULL,
	User_name        VARCHAR2(1024) NOT NULL,
	Local_or_Domain_user VARCHAR2(1024) NOT NULL,
	User_registration_date   VARCHAR2(512) NOT NULL);

ALTER TABLE  EgUserInfoTest_DDD ADD constraint Pk_EgUserInfoTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_EgUserInfoTest_DDD ON EgUserInfoTest_DDD(MSMT_TIME);

DROP TABLE SolaceReduncyStTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceReduncyStTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	MATE_ROUTER_NAME			VARCHAR2(128) NOT NULL,
	OPERATION_MODE				VARCHAR2(300) NOT NULL,
	SWITCHOVER_MECHANISM		VARCHAR2(1000) NOT NULL,
	REDUNDANCY_MODE				VARCHAR2(1000) NOT NULL,
	FAILOVER_CRITERIA			VARCHAR2(1000) NOT NULL,
	VRRP_INTERFACE_NAME			VARCHAR2(128) NOT NULL,
	VRRP_ADDRESS				VARCHAR2(128) NOT NULL,
	VRRP_INTERFACE_ROLE			VARCHAR2(128) NOT NULL,
	ROUTING_INTERFACE			VARCHAR2(128) NOT NULL,
	REDUNCY_LAST_FAIL_TIME		VARCHAR2(128) NOT NULL,
	REDUNCY_LAST_FAIL_REASON	VARCHAR2(300) NOT NULL,
	ADB_LINK_LAST_FAIL_TIME		VARCHAR2(1000) NOT NULL,
	ADB_LINK_LAST_FAIL_REASON	VARCHAR2(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_TIME	VARCHAR2(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_REASON	VARCHAR2(128) NOT NULL,
	VIRTUAL_ROUTER				VARCHAR2(128) NOT NULL,
	PREVIOUS_STATE				VARCHAR2(128) NOT NULL,
	CURRENT_STATE				VARCHAR2(128) NOT NULL
	);

ALTER TABLE  SolaceReduncyStTest_DDD ADD constraint Pk_SolaceReduncyStTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceReduncyStTest_DDD ON SolaceReduncyStTest_DDD
(
 	MSMT_TIME
);

DROP TABLE SolaceSysReplTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceSysReplTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	MATE_ROUTER_NAME			VARCHAR2(128) NOT NULL,
	MATE_CONNECT_VIA			VARCHAR2(300) NOT NULL,
	MATE_UNCOMPRESSED_PORT		VARCHAR2(1000) NOT NULL,
	MATE_COMPRESSED_PORT		VARCHAR2(1000) NOT NULL,
	MATE_SSL_PORT				VARCHAR2(1000) NOT NULL
	);

ALTER TABLE  SolaceSysReplTest_DDD ADD constraint Pk_SolaceSysReplTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceSysReplTest_DDD ON SolaceSysReplTest_DDD
(
 	MSMT_TIME
);

DROP TABLE SolaceClusterStTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceClusterStTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	NODES						VARCHAR2(128) NOT NULL,
	STATUS						VARCHAR2(300) NOT NULL,
	NODE_NAME					VARCHAR2(1000) NOT NULL,
	PREVIOUS_STATE				VARCHAR2(1000) NOT NULL,
	CURRENT_STATE				VARCHAR2(1000) NOT NULL
	);

ALTER TABLE  SolaceClusterStTest_DDD ADD constraint Pk_SolaceClusterStTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceClusterStTest_DDD ON SolaceClusterStTest_DDD
(
 	MSMT_TIME
);

DROP TABLE SolaceMsgVPNQueTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceMsgVPNQueTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	CLIENT_NAME					VARCHAR2(128) NOT NULL,
	CLIENT_ADDRESS				VARCHAR2(300) NOT NULL,
	CLIENT_HOSTNAME				VARCHAR2(1000) NOT NULL
	);

ALTER TABLE  SolaceMsgVPNQueTest_DDD ADD constraint Pk_SolaceMsgVPNQueTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceMsgVPNQueTest_DDD ON SolaceMsgVPNQueTest_DDD
(
 	MSMT_TIME
);

DROP TABLE SolaceMsgVPNClTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceMsgVPNClTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	CLIENT_ADDRESS				VARCHAR2(128) NOT NULL,
	UPTIME						VARCHAR2(300) NOT NULL
	);

ALTER TABLE  SolaceMsgVPNClTest_DDD ADD constraint Pk_SolaceMsgVPNClTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceMsgVPNClTest_DDD ON SolaceMsgVPNClTest_DDD
(
 	MSMT_TIME
);

DROP TABLE SolaceCluNodeTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  SolaceCluNodeTest_DDD
(	
	SITE_NAME					VARCHAR2(64) NOT NULL,
	TRGT_HOST					VARCHAR2(32) NOT NULL,
	PORT_NO						VARCHAR2(32)NOT NULL,
	TEST_NAME					VARCHAR2(64) NOT NULL,
	MEASURE						VARCHAR2(64) NOT NULL,
	INFO						VARCHAR2(128) NOT NULL,
	STATE						VARCHAR2(32) NOT NULL,
	MSMT_HOST					VARCHAR2(32) NOT NULL,
	MSMT_TIME					DATE NOT NULL,
	SEQ_NO						NUMBER(16) NOT NULL,
	MATE_ROUTER_NAME			VARCHAR2(128) NOT NULL,
	OPERATION_MODE				VARCHAR2(300) NOT NULL,
	SWITCHOVER_MECHANISM		VARCHAR2(1000) NOT NULL,
	REDUNDANCY_MODE				VARCHAR2(1000) NOT NULL,
	FAILOVER_CRITERIA			VARCHAR2(1000) NOT NULL,
	VRRP_INTERFACE_NAME			VARCHAR2(128) NOT NULL,
	VRRP_ADDRESS				VARCHAR2(128) NOT NULL,
	VRRP_INTERFACE_ROLE			VARCHAR2(128) NOT NULL,
	ROUTING_INTERFACE			VARCHAR2(128) NOT NULL,
	REDUNCY_LAST_FAIL_TIME		VARCHAR2(128) NOT NULL,
	REDUNCY_LAST_FAIL_REASON	VARCHAR2(300) NOT NULL,
	ADB_LINK_LAST_FAIL_TIME		VARCHAR2(1000) NOT NULL,
	ADB_LINK_LAST_FAIL_REASON	VARCHAR2(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_TIME	VARCHAR2(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_REASON	VARCHAR2(128) NOT NULL,
	VIRTUAL_ROUTER				VARCHAR2(128) NOT NULL,
	PREVIOUS_STATE				VARCHAR2(128) NOT NULL,
	CURRENT_STATE				VARCHAR2(128) NOT NULL
	);
ALTER TABLE  SolaceCluNodeTest_DDD ADD constraint Pk_SolaceCluNodeTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceCluNodeTest_DDD ON SolaceCluNodeTest_DDD
(
 	MSMT_TIME
);

DROP TABLE RedisClstrStatusTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE RedisClstrStatusTest_DDD
(
 SITE_NAME VARCHAR2(64) NOT NULL,
 TRGT_HOST VARCHAR2(32) NOT NULL,
 PORT_NO VARCHAR2(32) NOT NULL,
 TEST_NAME VARCHAR2(64) NOT NULL,
 MEASURE VARCHAR2(64) NOT NULL,
 INFO VARCHAR2(128) NOT NULL,
 STATE VARCHAR2(32) NOT NULL,
 MSMT_HOST VARCHAR2(32) NOT NULL,
 MSMT_TIME DATE NOT NULL,
 SEQ_NO NUMBER(16) NOT NULL,
 Node_ID VARCHAR2(128) NOT NULL,
 IP VARCHAR2(128) NOT NULL,
 Port VARCHAR2(128) NOT NULL,
 Flags VARCHAR2(128) NOT NULL,
 Master_Node_ID VARCHAR2(128) NOT NULL,
 Ping_Sent VARCHAR2(128) NOT NULL,
 Pong_Received VARCHAR2(128) NOT NULL,
 Config_Epoch VARCHAR2(128) NOT NULL,
 Link_State VARCHAR2(128) NOT NULL,
 Slot VARCHAR2(128) NOT NULL);

ALTER TABLE RedisClstrStatusTest_DDD ADD constraint Pk_RedisClstrStatusTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE INDEX IDX_RedisClstrStatusTest_DDD ON RedisClstrStatusTest_DDD
(
 MSMT_TIME
);

DROP TABLE RedisClstrReplicaTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE RedisClstrReplicaTest_DDD
(
 SITE_NAME VARCHAR2(64) NOT NULL,
 TRGT_HOST VARCHAR2(32) NOT NULL,
 PORT_NO VARCHAR2(32) NOT NULL,
 TEST_NAME VARCHAR2(64) NOT NULL,
 MEASURE VARCHAR2(64) NOT NULL,
 INFO VARCHAR2(128) NOT NULL,
 STATE VARCHAR2(32) NOT NULL,
 MSMT_HOST VARCHAR2(32) NOT NULL,
 MSMT_TIME DATE NOT NULL,
 SEQ_NO NUMBER(16) NOT NULL,
 Slave VARCHAR2(128) NOT NULL,
 IP VARCHAR2(128) NOT NULL,
 Port VARCHAR2(128) NOT NULL,
 Slave_State VARCHAR2(128) NOT NULL,
 Offset VARCHAR2(128) NOT NULL,
 Lag VARCHAR2(128) NOT NULL,
 Role_Status VARCHAR2(128) NOT NULL);

ALTER TABLE RedisClstrReplicaTest_DDD ADD constraint Pk_RedisClstrReplicaTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE INDEX IDX_RedisClstrReplicaTest_DDD ON RedisClstrReplicaTest_DDD
(
 MSMT_TIME
);

DROP TABLE RedisClstrFailoverTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE RedisClstrFailoverTest_DDD
(
 SITE_NAME VARCHAR2(64) NOT NULL,
 TRGT_HOST VARCHAR2(32) NOT NULL,
 PORT_NO VARCHAR2(32) NOT NULL,
 TEST_NAME VARCHAR2(64) NOT NULL,
 MEASURE VARCHAR2(64) NOT NULL,
 INFO VARCHAR2(128) NOT NULL,
 STATE VARCHAR2(32) NOT NULL,
 MSMT_HOST VARCHAR2(32) NOT NULL,
 MSMT_TIME DATE NOT NULL,
 SEQ_NO NUMBER(16) NOT NULL,
 Role_Status VARCHAR2(512) NOT NULL);

ALTER TABLE RedisClstrFailoverTest_DDD ADD constraint Pk_RedisClstrFailoverTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME);

CREATE INDEX IDX_RedisClstrFailoverTest_DDD ON RedisClstrFailoverTest_DDD
(
 MSMT_TIME
);

DROP TABLE AzrIntCertTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AzrIntCertTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
	destination     VARCHAR2(512) NOT NULL,
	validfrom	VARCHAR2(200) NOT NULL,
	validtill	VARCHAR2(200) NOT NULL
);
ALTER TABLE  AzrIntCertTest_DDD ADD CONSTRAINT PK_AzrIntCertTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AzrIntCertTest_DDD ON AzrIntCertTest_DDD
(
 	MSMT_TIME
);

DROP TABLE AzrIntConnTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AzrIntConnTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
	lastdate	        VARCHAR2(200) NOT NULL,
	version  	        VARCHAR2(200) NOT NULL
);
ALTER TABLE  AzrIntConnTest_DDD ADD CONSTRAINT PK_AzrIntConnTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AzrIntConnTest_DDD ON AzrIntConnTest_DDD
(
 	MSMT_TIME
);


DROP TABLE AzrIntApCertTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AzrIntApCertTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
        appleidentifier         VARCHAR2(512) NOT NULL,
	certno            	VARCHAR2(200) NOT NULL,
	lastModifiedDateTime	VARCHAR2(200) NOT NULL
);
ALTER TABLE  AzrIntApCertTest_DDD ADD CONSTRAINT PK_AzrIntApCertTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AzrIntApCertTest_DDD ON AzrIntApCertTest_DDD
(
 	MSMT_TIME
);

DROP TABLE AzrIntApEnrolTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AzrIntApEnrolTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
	appleid                 VARCHAR2(512) NOT NULL,
	lasttrgdt         	VARCHAR2(200) NOT NULL,
	lastsuccdt       	VARCHAR2(200) NOT NULL
);
ALTER TABLE  AzrIntApEnrolTest_DDD ADD CONSTRAINT PK_AzrIntApEnrolTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AzrIntApEnrolTest_DDD ON AzrIntApEnrolTest_DDD
(
 	MSMT_TIME
);

DROP TABLE AzrIntApVPPTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AzrIntApVPPTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32)NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128) NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO			NUMBER(16) NOT NULL,
	orgname                 VARCHAR2(512) NOT NULL,
	appleid                 VARCHAR2(512) NOT NULL,
	lastsyncdt           	VARCHAR2(200) NOT NULL,
	lastmoddt         	VARCHAR2(200) NOT NULL
);
ALTER TABLE  AzrIntApVPPTest_DDD ADD CONSTRAINT PK_AzrIntApVPPTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AzrIntApVPPTest_DDD ON AzrIntApVPPTest_DDD
(
 	MSMT_TIME
);


DROP TABLE SolaceCluNdHlthTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNdHlthTest_DDD
(
	SITE_NAME				VARCHAR2(64) NOT NULL,
	TRGT_HOST				VARCHAR2(32) NOT NULL,
	PORT_NO					VARCHAR2(32)NOT NULL,
	TEST_NAME				VARCHAR2(64) NOT NULL,
	MEASURE					VARCHAR2(64) NOT NULL,
	INFO					VARCHAR2(128) NOT NULL,
	STATE					VARCHAR2(32) NOT NULL,
	MSMT_HOST				VARCHAR2(32) NOT NULL,
	MSMT_TIME				date NOT NULL,
	SEQ_NO 					Number(16) NOT NULL,
	ACTIVE_STANDBY_ROLE		VARCHAR2(512) NOT NULL,
	ACTIVITY_STATUS			VARCHAR2(512) NOT NULL,
	REDUNDANCY_CONFIGURATION	VARCHAR2(512) NOT NULL,
	REDUNDANCY				VARCHAR2(512) NOT NULL,
	ADB_LINK_UP 			VARCHAR2(512) NOT NULL,
	ADB_HELLO_UP  			VARCHAR2(512) NOT NULL,
	MESSAGESPOOL_CONFIGURATION	VARCHAR2(512) NOT NULL,
	MESSAGESPOOL_OPERATIONAL_STATUS	VARCHAR2(512) NOT NULL,
	ADMIN_STATUS 			VARCHAR2(512) NOT NULL,
	OPERATIONAL_STATUS  	VARCHAR2(512) NOT NULL
);
ALTER TABLE  SolaceCluNdHlthTest_DDD ADD constraint Pk_SolaceCluNdHlthTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceCluNdHlthTest_DDD ON SolaceCluNdHlthTest_DDD
(
 	MSMT_TIME
);
DROP TABLE SolaceCluHealthTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluHealthTest_DDD
(
	SITE_NAME				VARCHAR2(64) NOT NULL,
	TRGT_HOST				VARCHAR2(32) NOT NULL,
	PORT_NO					VARCHAR2(32)NOT NULL,
	TEST_NAME				VARCHAR2(64) NOT NULL,
	MEASURE					VARCHAR2(64) NOT NULL,
	INFO					VARCHAR2(128) NOT NULL,
	STATE					VARCHAR2(32) NOT NULL,
	MSMT_HOST				VARCHAR2(32) NOT NULL,
	MSMT_TIME				date NOT NULL,
	SEQ_NO 					Number(16) NOT NULL,
	PRIMARY_REDUNDANCY_HEALTH		VARCHAR2(512) NOT NULL,
	BACKUP_REDUNDANCY_HEALTH			VARCHAR2(512) NOT NULL,
	PRIMARY_MESSAGESPOOL_STATUS	VARCHAR2(512) NOT NULL,
	BACKUP_MESSAGESPOOL_STATUS				VARCHAR2(512) NOT NULL,
	PRIMARY_CONFIGSYNC_STATUS 			VARCHAR2(512) NOT NULL,
	BACKUP_CONFIGSYNC_STATUS  			VARCHAR2(512) NOT NULL
);
ALTER TABLE  SolaceCluHealthTest_DDD ADD constraint Pk_SolaceCluHealthTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_SolaceCluHealthTest_DDD ON SolaceCluHealthTest_DDD
(
 	MSMT_TIME
);
DROP TABLE CtxNsTrapTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  CtxNsTrapTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE      	VARCHAR2(64) NOT NULL,
	INFO         	VARCHAR2(128) NOT NULL,
	STATE        	VARCHAR2(32) NOT NULL,
	MSMT_HOST    	VARCHAR2(32) NOT NULL,
	MSMT_TIME    	DATE NOT NULL,
	SEQ_NO 		NUMBER(16) NOT NULL,
	SENDER		VARCHAR2(128) NOT NULL,
	TRAP_TIME	VARCHAR2(128) NOT NULL,
	TRAP_TYPE	VARCHAR2(1500) NOT NULL,
	TRAP_DETAILS	VARCHAR2(2000) NOT NULL
);
ALTER TABLE  CtxNsTrapTest_DDD ADD constraint Pk_CtxNsTrapTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_CtxNsTrapTest_DDD ON CtxNsTrapTest_DDD
(
 	MSMT_TIME
);

DROP TABLE MySQLCluNodAvlTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluNodAvlTest_DDD(
SITE_NAME		VARCHAR2(64) NOT NULL,
TRGT_HOST		VARCHAR2(32) NOT NULL,
PORT_NO			VARCHAR2(32) NOT NULL,
TEST_NAME		VARCHAR2(64) NOT NULL,
MEASURE			VARCHAR2(64) NOT NULL,
INFO			VARCHAR2(128) NOT NULL,
STATE			VARCHAR2(32) NOT NULL,
MSMT_HOST		VARCHAR2(32) NOT NULL,
MSMT_TIME		DATE NOT NULL,
SEQ_NO 			NUMBER(16) NOT NULL,
CONN_FAILURE_MSG	VARCHAR2(1024) NOT NULL );
ALTER TABLE MySQLCluNodAvlTest_DDD ADD constraint Pk_MySQLCluNodAvlTest_DDD PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_MySQLCluNodAvlTest_DDD ON MySQLCluNodAvlTest_DDD(MSMT_TIME );

DROP TABLE MySQLCluMembTest_DDD  CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluMembTest_DDD(
SITE_NAME    VARCHAR2(64) NOT NULL,
TRGT_HOST    VARCHAR2(32) NOT NULL,
PORT_NO        VARCHAR2(32) NOT NULL,
TEST_NAME    VARCHAR2(64) NOT NULL,
MEASURE          VARCHAR2(64) NOT NULL,
INFO             VARCHAR2(128) NOT NULL,
STATE            VARCHAR2(32) NOT NULL,
MSMT_HOST        VARCHAR2(32) NOT NULL,
MSMT_TIME        DATE NOT NULL,
SEQ_NO         NUMBER(16) NOT NULL,
HOST_ID		VARCHAR2(128) NOT NULL,
HOST_NAME		VARCHAR2(128) NOT NULL,
Port		VARCHAR2(128) NOT NULL,
ACCESS_MODE		VARCHAR2(128) NOT NULL,
PREVIOUS_STATE		VARCHAR2(20) NOT NULL,
CURRENT_STATE		VARCHAR2(20) NOT NULL );
ALTER TABLE  MySQLCluMembTest_DDD ADD constraint Pk_MySQLCluMembTest_DDD PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE INDEX IDX_MySQLCluMembTest_DDD ON MySQLCluMembTest_DDD(MSMT_TIME);

DROP TABLE MySQLCluRepStTest_DDD  CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluRepStTest_DDD(
SITE_NAME	VARCHAR2(64) NOT NULL,
TRGT_HOST	VARCHAR2(32) NOT NULL,
PORT_NO		VARCHAR2(32)NOT NULL,
TEST_NAME	VARCHAR2(64) NOT NULL,
MEASURE		VARCHAR2(64) NOT NULL,
INFO		VARCHAR2(128) NOT NULL,
STATE		VARCHAR2(32) NOT NULL,
MSMT_HOST	VARCHAR2(32) NOT NULL,
MSMT_TIME	DATE NOT NULL,
SEQ_NO 		NUMBER(16) NOT NULL,
CHANNEL_NAME										   VARCHAR2(32) NOT NULL,
WORKER_ID											   VARCHAR2(32) NOT NULL,
THREAD_ID											   VARCHAR2(32) NOT NULL,
SERVICE_STATE										   VARCHAR2(32) NOT NULL,
LAST_APPLIED_TRANSACTION							   VARCHAR2(64) NOT NULL,
LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP	   VARCHAR2(32) NOT NULL,
LAST_APPLIED_TRANSACTION_END_TIMESTAMP				   VARCHAR2(32) NOT NULL,
REPLICATION_LAG_TIME								   VARCHAR2(32) NOT NULL,
LAST_ERROR_TIME										   VARCHAR2(32) NOT NULL,
LAST_ERROR_NUMBER									   VARCHAR2(32) NOT NULL,
LAST_ERROR_MESSAGE									   VARCHAR2(1024) NOT NULL,
LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE  VARCHAR2(1024) NOT NULL );
ALTER TABLE MySQLCluRepStTest_DDD ADD constraint Pk_MySQLCluRepStTest_DDD PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_MySQLCluRepStTest_DDD ON MySQLCluRepStTest_DDD(MSMT_TIME );

DROP TABLE OraRacUseAudTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE OraRacUseAudTest_DDD
(
    SITE_NAME    VARCHAR2(64) NOT NULL,
    TRGT_HOST    VARCHAR2(32) NOT NULL,
    PORT_NO      VARCHAR2(32) NOT NULL,
    TEST_NAME    VARCHAR2(64) NOT NULL,
    MEASURE      VARCHAR2(64) NOT NULL,
    INFO         VARCHAR2(128) NOT NULL,
    STATE        VARCHAR2(32) NOT NULL,
    MSMT_HOST    VARCHAR2(32) NOT NULL,
    MSMT_TIME    DATE NOT NULL,
    SEQ_NO       NUMBER(16) NOT NULL,
    SESSIONID    VARCHAR2(32) NOT NULL,
    OS_USERNAME  VARCHAR2(128) NOT NULL,
    OS_PROCESS   VARCHAR2(32) NOT NULL,
    USERNAME     VARCHAR2(32) NOT NULL,
    USER_HOST    VARCHAR2(32) NOT NULL,
    TERMINAL     VARCHAR2(32) NOT NULL,
    LOGIN_TIME   VARCHAR2(32) NOT NULL,
    LOGOFF_TIME  VARCHAR2(32) NOT NULL,
    RETURNCODE    VARCHAR2(32) NOT NULL
);
 
ALTER TABLE  OraRacUseAudTest_DDD ADD constraint Pk_OraRacUseAudTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO); 
CREATE  INDEX IDX_OraRacUseAudTest_DDD ON OraRacUseAudTest_DDD(MSMT_TIME);

DROP TABLE MongoExtCluAvaTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluAvaTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE 	VARCHAR2(64) NOT NULL,
	INFO		VARCHAR2(128) NOT NULL,
	STATE		VARCHAR2(32) NOT NULL,
	MSMT_HOST	VARCHAR2(32) NOT NULL,
	MSMT_TIME	DATE NOT NULL,
	SEQ_NO		NUMBER(16) NOT NULL,
	SHARD_ID 	VARCHAR2(128) NOT NULL,
	IP 			VARCHAR2(128) NOT NULL,
	PORT 		VARCHAR2(32) NOT NULL,
	NODE_STATE 	VARCHAR2(128) NOT NULL
);
ALTER TABLE  MongoExtCluAvaTest_DDD ADD constraint Pk_MongoExtCluAvaTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE INDEX IDX_MongoExtCluAvaTest_DDD ON MongoExtCluAvaTest_DDD(MSMT_TIME);


DROP TABLE MongoExtClRepStTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  MongoExtClRepStTest_DDD
(
	SITE_NAME			VARCHAR2(64) NOT NULL,
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	TEST_NAME			VARCHAR2(64) NOT NULL,
	MEASURE				VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	STATE				VARCHAR2(32) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			DATE NOT NULL,
	SEQ_NO 				NUMBER(16) NOT NULL,
	PREVIOUS_NODE			VARCHAR2(300) NOT NULL,
	CURRENT_NODE			VARCHAR2(300) NOT NULL,
	CURRENT_NODE_START_TIME		VARCHAR2(64) NOT NULL
);
ALTER TABLE  MongoExtClRepStTest_DDD ADD constraint Pk_MongoExtClRepStTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_MongoExtClRepStTest_DDD ON MongoExtClRepStTest_DDD(MSMT_TIME);

DROP TABLE MongoExtCluNetTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  MongoExtCluNetTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE		VARCHAR2(64) NOT NULL,
	INFO		VARCHAR2(128) NOT NULL,
	STATE		VARCHAR2(32) NOT NULL,
	MSMT_HOST	VARCHAR2(32) NOT NULL,
	MSMT_TIME	DATE NOT NULL,
	SEQ_NO 		NUMBER(16) NOT NULL,
	MESSAGE		VARCHAR2(1024) NOT NULL
);
ALTER TABLE  MongoExtCluNetTest_DDD ADD constraint Pk_MongoExtCluNetTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_MongoExtCluNetTest_DDD ON MongoExtCluNetTest_DDD(MSMT_TIME);


DROP TABLE MongoExtCluNdStTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  MongoExtCluNdStTest_DDD
(
	SITE_NAME			VARCHAR2(64) NOT NULL,
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	TEST_NAME			VARCHAR2(64) NOT NULL,
	MEASURE				VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	STATE				VARCHAR2(32) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			DATE NOT NULL,
	SEQ_NO 				NUMBER(16) NOT NULL,
	PREVIOUS_NODE			VARCHAR2(300) NOT NULL,
	CURRENT_NODE			VARCHAR2(300) NOT NULL,
	CURRENT_NODE_START_TIME		VARCHAR2(64) NOT NULL
);
ALTER TABLE  MongoExtCluNdStTest_DDD ADD constraint Pk_MongoExtCluNdStTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_MongoExtCluNdStTest_DDD ON MongoExtCluNdStTest_DDD(MSMT_TIME);

DROP TABLE IBMIMMMemoryTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  IBMIMMMemoryTest_DDD
(
	SITE_NAME			VARCHAR2(64) NOT NULL,
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	TEST_NAME			VARCHAR2(64) NOT NULL,
	MEASURE      		VARCHAR2(64) NOT NULL,
	INFO         		VARCHAR2(128) NOT NULL,
	STATE        		VARCHAR2(32) NOT NULL,
	MSMT_HOST    		VARCHAR2(32) NOT NULL,
	MSMT_TIME    		DATE NOT NULL,
	SEQ_NO 				NUMBER(16) NOT NULL,
	PART_NUMBER			VARCHAR2(128) NOT NULL,
	SERIAL_NUMBER 		VARCHAR2(256) NOT NULL,
	MANUFACTURE_DATE 	VARCHAR2(128) NOT NULL,
	MEMORY_TYPE 		VARCHAR2(256) NOT NULL	
);
ALTER TABLE  IBMIMMMemoryTest_DDD ADD constraint Pk_IBMIMMMemoryTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_IBMIMMMemoryTest_DDD ON IBMIMMMemoryTest_DDD
(
 	MSMT_TIME
);

DROP TABLE IBMIMMPowerTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  IBMIMMPowerTest_DDD
(
	SITE_NAME			VARCHAR2(64) NOT NULL,
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	TEST_NAME			VARCHAR2(64) NOT NULL,
	MEASURE      		VARCHAR2(64) NOT NULL,
	INFO         		VARCHAR2(128) NOT NULL,
	STATE        		VARCHAR2(32) NOT NULL,
	MSMT_HOST    		VARCHAR2(32) NOT NULL,
	MSMT_TIME    		DATE NOT NULL,
	SEQ_NO 				NUMBER(16) NOT NULL,
	PART_NUMBER			VARCHAR2(128) NOT NULL,
	FRU_NUMBER 			VARCHAR2(256) NOT NULL,
	SERIAL_NUMBER 		VARCHAR2(128) NOT NULL	
);
ALTER TABLE  IBMIMMPowerTest_DDD ADD constraint Pk_IBMIMMPowerTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_IBMIMMPowerTest_DDD ON IBMIMMPowerTest_DDD
(
 	MSMT_TIME
);

	
DROP TABLE AzrApiAccessTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE AzrApiAccessTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32)NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE		VARCHAR2(64) NOT NULL,
	INFO		VARCHAR2(128) NOT NULL,
	STATE		VARCHAR2(32) NOT NULL,
	MSMT_HOST	VARCHAR2(32) NOT NULL,
	MSMT_TIME	DATE NOT NULL,
	SEQ_NO 		NUMBER(16) NOT NULL,
	Error_msg	VARCHAR2(256) NOT NULL
);

ALTER TABLE  AzrApiAccessTest_DDD ADD constraint Pk_AzrApiAccessTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE  INDEX IDX_AzrApiAccessTest_DDD ON AzrApiAccessTest_DDD
(
 	MSMT_TIME
);


DROP TABLE CtxNsConnectTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE CtxNsConnectTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE		VARCHAR2(64) NOT NULL,
	INFO		VARCHAR2(128) NOT NULL,
	STATE		VARCHAR2(32) NOT NULL,
	MSMT_HOST	VARCHAR2(32) NOT NULL,
	MSMT_TIME	DATE NOT NULL,
	SEQ_NO		NUMBER(16) NOT NULL,
	NetScaler_version	VARCHAR2(256) NOT NULL,
	NetScaler_ip_address	VARCHAR2(256) NOT NULL,
	Netmask			VARCHAR2(256) NOT NULL,
	Node			VARCHAR2(256) NOT NULL,
	Time_zone		VARCHAR2(256) NOT NULL,
	Last_config_change_time	VARCHAR2(256) NOT NULL,
	Last_config_saved_time	VARCHAR2(256) NOT NULL,
	Platform			VARCHAR2(256) NOT NULL,
	Manufactured_on		VARCHAR2(256) NOT NULL,
	Cpu					VARCHAR2(256) NOT NULL,
	Host_id				VARCHAR2(256) NOT NULL,
	Serial_number		VARCHAR2(256) NOT NULL,
	End_coded_sn		VARCHAR2(256) NOT NULL
);

ALTER TABLE CtxNsConnectTest_DDD ADD constraint Pk_CtxNsConnectTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE  INDEX IDX_CtxNsConnectTest_DDD ON CtxNsConnectTest_DDD
(
 	MSMT_TIME
);


DROP TABLE AsAbapSyslgTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE  AsAbapSyslgTest_DDD
(
    SITE_NAME    VARCHAR2(64) NOT NULL,
    TRGT_HOST    VARCHAR2(32) NOT NULL,
    PORT_NO        VARCHAR2(32) NOT NULL,
    TEST_NAME    VARCHAR2(64) NOT NULL,
    MEASURE        VARCHAR2(64) NOT NULL,
    INFO        VARCHAR2(128) NOT NULL,
    STATE        VARCHAR2(32) NOT NULL,
    MSMT_HOST    VARCHAR2(32) NOT NULL,
    MSMT_TIME    DATE NOT NULL,
    SEQ_NO        NUMBER(16) NOT NULL,
    Client         VARCHAR2(32) NOT NULL,
    Username         VARCHAR2(32) NOT NULL,
    Terminal_Name         VARCHAR2(32) NOT NULL,
    Severity         VARCHAR2(32) NOT NULL,
    Alert_Category         VARCHAR2(32) NOT NULL,
    Datecol         VARCHAR2(32) NOT NULL,
    Timecol         VARCHAR2(32) NOT NULL,
    Program_Name         VARCHAR2(32) NOT NULL,
    Text_Message         VARCHAR2(2000) NOT NULL,
    dumpType         VARCHAR2(64) NOT NULL
);
ALTER TABLE  AsAbapSyslgTest_DDD ADD constraint Pk_AsAbapSyslgTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_AsAbapSyslgTest_DDD ON AsAbapSyslgTest_DDD
(
    MSMT_TIME
);


DROP TABLE OraRacLngRunQrTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE OraRacLngRunQrTest_DDD
(
	SITE_NAME		VARCHAR2(64) NOT NULL,
	TRGT_HOST		VARCHAR2(32) NOT NULL,
	PORT_NO			VARCHAR2(32) NOT NULL,
	TEST_NAME		VARCHAR2(64) NOT NULL,
	MEASURE			VARCHAR2(64) NOT NULL,
	INFO			VARCHAR2(128)NOT NULL,
	STATE			VARCHAR2(32) NOT NULL,
	MSMT_HOST		VARCHAR2(32) NOT NULL,
	MSMT_TIME		DATE NOT NULL,
	SEQ_NO 			NUMBER(16) NOT NULL,
	SERIAL_NUMBER							VARCHAR2(32) NOT NULL,
	SID										VARCHAR2(32) NOT NULL,
	TERMINAL								VARCHAR2(32) NOT NULL,
	USER_NAME								VARCHAR2(32) NOT NULL,
	OS_USER									VARCHAR2(32) NOT NULL,
	MACHINE									VARCHAR2(64) NOT NULL,
	PROGRAM									VARCHAR2(64) NOT NULL,
	ELAPSED_TIME_PER_EXE_SECONDS			VARCHAR2(32) NOT NULL,
	EXECUTION_COUNT							VARCHAR2(32) NOT NULL,
	SQL_TEXT								VARCHAR2(1024) NOT NULL,
	ELAPSED_TIME_SECONDS					VARCHAR2(32) NOT NULL	

);
ALTER TABLE OraRacLngRunQrTest_DDD ADD constraint Pk_OraRacLngRunQrTest_DDD
PRIMARY KEY(SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);
CREATE  INDEX IDX_OraRacLngRunQrTest_DDD ON OraRacLngRunQrTest_DDD(MSMT_TIME);

DROP TABLE CtxCdSessionTest_DDD CASCADE CONSTRAINTS;
CREATE TABLE CtxCdSessionTest_DDD
(
	SITE_NAME	VARCHAR2(64) NOT NULL,
	TRGT_HOST	VARCHAR2(32) NOT NULL,
	PORT_NO		VARCHAR2(32) NOT NULL,
	TEST_NAME	VARCHAR2(64) NOT NULL,
	MEASURE      	VARCHAR2(64) NOT NULL,
	INFO         	VARCHAR2(128) NOT NULL,
	STATE        	VARCHAR2(32) NOT NULL,
	MSMT_HOST    	VARCHAR2(32) NOT NULL,
	MSMT_TIME    	DATE NOT NULL,
	SEQ_NO 		NUMBER(16) NOT NULL,
	Session_id		VARCHAR2(128) NOT NULL,
	Machine_name		VARCHAR2(128) NOT NULL,
	Machine_fqdn		VARCHAR2(128) NOT NULL,
	Ip_address		VARCHAR2(128) NOT NULL,
	Os_type			VARCHAR2(128) NOT NULL,
	Catalog_name		VARCHAR2(128) NOT NULL,
	Delivery_group_name	VARCHAR2(128) NOT NULL,
	Hosted_machine_name 	VARCHAR2(128) NOT NULL,
	Hosting_server_name	VARCHAR2(128) NOT NULL,
	Hypervisor_conn_name	VARCHAR2(128) NOT NULL,
	User_name		VARCHAR2(128) NOT NULL,
	Client_address 		VARCHAR2(128) NOT NULL,
	Client_name		VARCHAR2(128) NOT NULL,
	Client_version		VARCHAR2(128) NOT NULL,
	Connected_via_hostname	VARCHAR2(128) NOT NULL,
	Connected_via_ip_address VARCHAR2(128) NOT NULL,
	Launched_via_hostname	VARCHAR2(128) NOT NULL,
	Launched_via_ip_address VARCHAR2(128) NOT NULL,
	Protocol		VARCHAR2(128) NOT NULL,
	Session_state		VARCHAR2(128) NOT NULL,
	Brokering_duration	VARCHAR2(128) NOT NULL,
	Establishment_duration	VARCHAR2(128) NOT NULL,
	Establishment_time	VARCHAR2(128) NOT NULL,
	Session_state_change_time VARCHAR2(128) NOT NULL,
	Start_time		VARCHAR2(128) NOT NULL,
	Brokering_time		VARCHAR2(128) NOT NULL,
	License_id		VARCHAR2(128) NOT NULL,
	Hidden			VARCHAR2(128) NOT NULL,
	Autonomously_brokered	VARCHAR2(128) NOT NULL,
	Device_id		VARCHAR2(128) NOT NULL,
	Hardware_id		VARCHAR2(128) NOT NULL,
	Agent_version		VARCHAR2(128) NOT NULL,
	Session_support		VARCHAR2(128) NOT NULL,
	Controller_name		VARCHAR2(128) NOT NULL,
	Applications_in_use	VARCHAR2(1024) NOT NULL,
	Zone_Name		VARCHAR2(128) NOT NULL,
	Client_platform		VARCHAR2(128) NOT NULL,
	Session_type		VARCHAR2(128) NOT NULL,
	Session_key		VARCHAR2(128) NOT NULL
);

ALTER TABLE  CtxCdSessionTest_DDD ADD constraint Pk_CtxCdSessionTest_DDD
PRIMARY KEY (SITE_NAME,TRGT_HOST,PORT_NO,TEST_NAME,MEASURE,INFO,MSMT_HOST,MSMT_TIME,SEQ_NO);

CREATE  INDEX IDX_CtxCdSessionTest_DDD ON CtxCdSessionTest_DDD
(
 	MSMT_TIME
);

create index idx1_CtxCdSessionTest_DDD on CtxCdSessionTest_DDD ( Session_key,MEASURE, INFO, MSMT_TIME);
