DROP TABLE AirWatchAPICertTest_DDD;
CREATE TABLE  AirWatchAPICertTest_DDD
(
	SITE_NAME		VARCHAR(64) NOT NULL,
	TRGT_HOST		VARCHAR(32) NOT NULL,
	PORT_NO			VARCHAR(32)NOT NULL,
	TEST_NAME		VARCHAR(64) NOT NULL,
	MEASURE			VARCHAR(64) NOT NULL,
	INFO			VARCHAR(128) NOT NULL,
	STATE			VARCHAR(32) NOT NULL,
	MSMT_HOST		VARCHAR(32) NOT NULL,
	MSMT_TIME		DATETIME NOT NULL,
	SEQ_NO			DECIMAL(16) NOT NULL,
	appleId			VARCHAR(128) NOT NULL,
	certType		VARCHAR(300) NOT NULL,
	thumbPrint		VARCHAR(1000) NOT NULL,
	issuedBy		VARCHAR(1000) NOT NULL,
	issuedTo		VARCHAR(1000) NOT NULL,
	validFrom		VARCHAR(128) NOT NULL,
	validTo			VARCHAR(128) NOT NULL,
	currentSetting	VARCHAR(128) NOT NULL,
	childPermission	VARCHAR(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;
CREATE TABLE  CtxXcXASessionTest_DDD
(
SITE_NAME  	VARCHAR(64) NOT NULL,
TRGT_HOST    	VARCHAR(32) NOT NULL,
PORT_NO      	VARCHAR(32)NOT NULL,
TEST_NAME    	VARCHAR(64) NOT NULL,
MEASURE      	VARCHAR(64) NOT NULL,
INFO         	VARCHAR(128) NOT NULL,
STATE        	VARCHAR(32) NOT NULL,
MSMT_HOST    	VARCHAR(32) NOT NULL,
MSMT_TIME    	DATETIME NOT NULL,
SEQ_NO 		DECIMAL(16) NOT NULL,
USERNAME VARCHAR(128) NOT NULL,
SESSIONNAME VARCHAR(128) NOT NULL,
ID DECIMAL(16) NOT NULL,
CTX_STATE VARCHAR(32) NOT NULL,
IDLE_TIME VARCHAR(32) NOT NULL,
LOGON_TIME VARCHAR(32) NOT NULL,
CLIENT_NAME VARCHAR(128) NOT NULL,
CLIENT_IPADDRESS VARCHAR(256) NOT NULL,
CLIENT_VERSION VARCHAR(128) NOT NULL,
CLIENT_ID VARCHAR(128) NOT NULL,
CLIENT_TYPE VARCHAR(256) NOT NULL,
CLIENT_CATEGORY VARCHAR(256) NOT NULL,
SESSION_KEY VARCHAR(256) NOT NULL,
HDX_DISPLAY_MODE VARCHAR(256) NOT NULL,
HDX_ACTIVE_ENCODER VARCHAR(256) NOT NULL,
HDX_PROTOCOL VARCHAR(256) NOT NULL,
ENCRYPTION_LEVEL VARCHAR(256) NOT NULL,
NETSCALER_RPTNAME VARCHAR(256) NOT NULL,
NETSCALER_IP_ADDRESS VARCHAR(128) NOT NULL,
XENAPP_IP_ADDRESS VARCHAR(128) NOT NULL,
ENDPOINT_IP_ADDRESS VARCHAR(128) NOT NULL,
COUNTRY_NAME VARCHAR(256) NOT NULL,
COUNTRY_CODE VARCHAR(256) NOT NULL,
REGION VARCHAR(256) NOT NULL,
CITY VARCHAR(256) NOT NULL,
LATITUDE VARCHAR(64) NOT NULL,
LONGITUDE VARCHAR(64) NOT NULL,
Idle_ssn_act VARCHAR(4000) NOT NULL,
Idle_ssn_errdtl VARCHAR(4000) NOT NULL,
Disc_ssn_act VARCHAR(4000) NOT NULL,
Disc_ssn_errdtl VARCHAR(4000) NOT NULL,
Pre_idle_ssn_act VARCHAR(4000) NOT NULL,
Pre_idle_ssn_errdtl VARCHAR(4000) NOT NULL,
Pre_disc_ssn_act VARCHAR(4000) NOT NULL,
Pre_disc_ssn_errdtl VARCHAR(4000) NOT NULL,
RENDEZVOUS_PROTOCOL VARCHAR(64) NOT NULL,
SESSION_INFO VARCHAR(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 NONCLUSTERED INDEX idx1_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (TRGT_HOST,PORT_NO,MEASURE,CLIENT_IPADDRESS,CLIENT_VERSION) INCLUDE (MSMT_TIME,USERNAME,IDLE_TIME,LOGON_TIME,CLIENT_NAME,CLIENT_ID,CLIENT_TYPE,COUNTRY_NAME,REGION,CITY);
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 NONCLUSTERED INDEX idx4_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (MEASURE,MSMT_TIME) INCLUDE (trgt_host,PORT_NO,USERNAME,LOGON_TIME,CLIENT_NAME,CLIENT_IPADDRESS,CLIENT_VERSION,CLIENT_CATEGORY,COUNTRY_NAME,REGION,CITY);

CREATE NONCLUSTERED INDEX IDX5_CtxXcXASessionTest_DDD ON CtxXcXASessionTest_DDD (SESSION_KEY,MSMT_TIME) INCLUDE (CTX_STATE, CLIENT_ID, CLIENT_CATEGORY, HDX_DISPLAY_MODE, HDX_ACTIVE_ENCODER, HDX_PROTOCOL, ENCRYPTION_LEVEL, NETSCALER_RPTNAME, NETSCALER_IP_ADDRESS, XENAPP_IP_ADDRESS, ENDPOINT_IP_ADDRESS, COUNTRY_NAME, COUNTRY_CODE, REGION, CITY, LATITUDE, LONGITUDE);



DROP TABLE EgUserInfoTest_DDD;
CREATE TABLE EgUserInfoTest_DDD
(
SITE_NAME        VARCHAR(64) NOT NULL,
TRGT_HOST        VARCHAR(32) NOT NULL,
PORT_NO                            VARCHAR(32)NOT NULL,
TEST_NAME       VARCHAR(64) NOT NULL,
MEASURE                            VARCHAR(64) NOT NULL,
INFO                      VARCHAR(128) NOT NULL,
STATE                    VARCHAR(32) NOT NULL,
MSMT_HOST     VARCHAR(32) NOT NULL,
MSMT_TIME      DATETIME NOT NULL,
SEQ_NO                               DECIMAL(16) NOT NULL,
User_role            VARCHAR(1024) NOT NULL,
User_name        VARCHAR(1024) NOT NULL,
Local_or_Domain_user VARCHAR(1024) NOT NULL,
User_registration_date   VARCHAR(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;
CREATE TABLE  SolaceReduncyStTest_DDD
(
	SITE_NAME				VARCHAR(64) NOT NULL,
	TRGT_HOST				VARCHAR(32) NOT NULL,
	PORT_NO					VARCHAR(32)NOT NULL,
	TEST_NAME				VARCHAR(64) NOT NULL,
	MEASURE					VARCHAR(64) NOT NULL,
	INFO					VARCHAR(128) NOT NULL,
	STATE					VARCHAR(32) NOT NULL,
	MSMT_HOST				VARCHAR(32) NOT NULL,
	MSMT_TIME				DATETIME NOT NULL,
	SEQ_NO					DECIMAL(16) NOT NULL,
	MATE_ROUTER_NAME 		VARCHAR(128) NOT NULL,
	OPERATION_MODE			VARCHAR(300) NOT NULL,
	SWITCHOVER_MECHANISM 	VARCHAR(1000) NOT NULL,
	REDUNDANCY_MODE			VARCHAR(1000) NOT NULL,
	FAILOVER_CRITERIA		VARCHAR(1000) NOT NULL,
	VRRP_INTERFACE_NAME		VARCHAR(128) NOT NULL,
	VRRP_ADDRESS			VARCHAR(128) NOT NULL,
	VRRP_INTERFACE_ROLE		VARCHAR(128) NOT NULL,
	ROUTING_INTERFACE 		VARCHAR(128) NOT NULL,
	REDUNCY_LAST_FAIL_TIME 	VARCHAR(128) NOT NULL,
	REDUNCY_LAST_FAIL_REASON	VARCHAR(300) NOT NULL,
	ADB_LINK_LAST_FAIL_TIME VARCHAR(1000) NOT NULL,
	ADB_LINK_LAST_FAIL_REASON	VARCHAR(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_TIME	VARCHAR(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_REASON	VARCHAR(128) NOT NULL,
	VIRTUAL_ROUTER			VARCHAR(128) NOT NULL,
	PREVIOUS_STATE			VARCHAR(128) NOT NULL,
	CURRENT_STATE			VARCHAR(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;
CREATE TABLE  SolaceSysReplTest_DDD
(
SITE_NAME                     VARCHAR(64) NOT NULL, 
TRGT_HOST                     VARCHAR(32) NOT NULL, 
PORT_NO                       VARCHAR(32)NOT NULL, 
TEST_NAME                     VARCHAR(64) NOT NULL, 
MEASURE                       VARCHAR(64) NOT NULL, 
INFO                          VARCHAR(128) NOT NULL, 
STATE                         VARCHAR(32) NOT NULL, 
MSMT_HOST                     VARCHAR(32) NOT NULL, 
MSMT_TIME					  DATETIME NOT NULL,
SEQ_NO                        DECIMAL(16) NOT NULL, 
MATE_ROUTER_NAME              VARCHAR(256) NOT NULL, 
MATE_CONNECT_VIA              VARCHAR(256) NOT NULL, 
MATE_UNCOMPRESSED_PORT        VARCHAR(256) NOT NULL, 
MATE_COMPRESSED_PORT          VARCHAR(256) NOT NULL, 
MATE_SSL_PORT                 VARCHAR(256) 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;
CREATE TABLE  SolaceClusterStTest_DDD
(
SITE_NAME                     VARCHAR(64) NOT NULL, 
TRGT_HOST                     VARCHAR(32) NOT NULL, 
PORT_NO                       VARCHAR(32)NOT NULL, 
TEST_NAME                     VARCHAR(64) NOT NULL, 
MEASURE                       VARCHAR(64) NOT NULL, 
INFO                          VARCHAR(128) NOT NULL, 
STATE                         VARCHAR(32) NOT NULL, 
MSMT_HOST                     VARCHAR(32) NOT NULL, 
MSMT_TIME					  DATETIME NOT NULL,
SEQ_NO                        DECIMAL(16) NOT NULL, 
NODES			              VARCHAR(256) NOT NULL, 
STATUS			              VARCHAR(256) NOT NULL, 
NODE_NAME		              VARCHAR(256) NOT NULL, 
PREVIOUS_STATE			      VARCHAR(256) NOT NULL, 
CURRENT_STATE		          VARCHAR(256) 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;
CREATE TABLE  SolaceMsgVPNQueTest_DDD
(
SITE_NAME                     VARCHAR(64) NOT NULL, 
TRGT_HOST                     VARCHAR(32) NOT NULL, 
PORT_NO                       VARCHAR(32)NOT NULL, 
TEST_NAME                     VARCHAR(64) NOT NULL, 
MEASURE                       VARCHAR(64) NOT NULL, 
INFO                          VARCHAR(128) NOT NULL, 
STATE                         VARCHAR(32) NOT NULL, 
MSMT_HOST                     VARCHAR(32) NOT NULL, 
MSMT_TIME					  DATETIME NOT NULL,
SEQ_NO                        DECIMAL(16) NOT NULL, 
CLIENT_NAME              		VARCHAR(256) NOT NULL, 
CLIENT_ADDRESS              	VARCHAR(256) NOT NULL, 
CLIENT_HOSTNAME        		VARCHAR(256) 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;
CREATE TABLE  SolaceMsgVPNClTest_DDD
(
SITE_NAME                     VARCHAR(64) NOT NULL, 
TRGT_HOST                     VARCHAR(32) NOT NULL, 
PORT_NO                       VARCHAR(32)NOT NULL, 
TEST_NAME                     VARCHAR(64) NOT NULL, 
MEASURE                       VARCHAR(64) NOT NULL, 
INFO                          VARCHAR(128) NOT NULL, 
STATE                         VARCHAR(32) NOT NULL, 
MSMT_HOST                     VARCHAR(32) NOT NULL, 
MSMT_TIME					  DATETIME NOT NULL,
SEQ_NO                        DECIMAL(16) NOT NULL, 
CLIENT_ADDRESS                VARCHAR(256) NOT NULL, 
UPTIME        				  VARCHAR(256) 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;
CREATE TABLE  SolaceCluNodeTest_DDD
(
	SITE_NAME				VARCHAR(64) NOT NULL,
	TRGT_HOST				VARCHAR(32) NOT NULL,
	PORT_NO					VARCHAR(32)NOT NULL,
	TEST_NAME				VARCHAR(64) NOT NULL,
	MEASURE					VARCHAR(64) NOT NULL,
	INFO					VARCHAR(128) NOT NULL,
	STATE					VARCHAR(32) NOT NULL,
	MSMT_HOST				VARCHAR(32) NOT NULL,
	MSMT_TIME				DATETIME NOT NULL,
	SEQ_NO					DECIMAL(16) NOT NULL,
	MATE_ROUTER_NAME 		VARCHAR(128) NOT NULL,
	OPERATION_MODE			VARCHAR(300) NOT NULL,
	SWITCHOVER_MECHANISM 	VARCHAR(1000) NOT NULL,
	REDUNDANCY_MODE			VARCHAR(1000) NOT NULL,
	FAILOVER_CRITERIA		VARCHAR(1000) NOT NULL,
	VRRP_INTERFACE_NAME		VARCHAR(128) NOT NULL,
	VRRP_ADDRESS			VARCHAR(128) NOT NULL,
	VRRP_INTERFACE_ROLE		VARCHAR(128) NOT NULL,
	ROUTING_INTERFACE 		VARCHAR(128) NOT NULL,
	REDUNCY_LAST_FAIL_TIME 	VARCHAR(128) NOT NULL,
	REDUNCY_LAST_FAIL_REASON	VARCHAR(300) NOT NULL,
	ADB_LINK_LAST_FAIL_TIME VARCHAR(1000) NOT NULL,
	ADB_LINK_LAST_FAIL_REASON	VARCHAR(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_TIME	VARCHAR(1000) NOT NULL,
	ADB_HELLO_LAST_FAIL_REASON	VARCHAR(128) NOT NULL,
	VIRTUAL_ROUTER			VARCHAR(128) NOT NULL,
	PREVIOUS_STATE			VARCHAR(128) NOT NULL,
	CURRENT_STATE			VARCHAR(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;
CREATE TABLE RedisClstrStatusTest_DDD
(
 SITE_NAME varchar(64) NOT NULL,
 TRGT_HOST varchar(32) NOT NULL,
 PORT_NO varchar(32) NOT NULL,
 TEST_NAME varchar(64) NOT NULL,
 MEASURE varchar(64) NOT NULL,
 INFO varchar(128) NOT NULL,
 STATE varchar(32) NOT NULL,
 MSMT_HOST varchar(32) NOT NULL,
 MSMT_TIME datetime NOT NULL,
 SEQ_NO DECIMAL(16) NOT NULL,
 Node_ID varchar(128) NOT NULL,
 IP varchar(128) NOT NULL,
 Port varchar(128) NOT NULL,
 Flags varchar(128) NOT NULL,
 Master_Node_ID varchar(128) NOT NULL,
 Ping_Sent varchar(128) NOT NULL,
 Pong_Received varchar(128) NOT NULL,
 Config_Epoch varchar(128) NOT NULL,
 Link_State varchar(128) NOT NULL,
 Slot varchar(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;
CREATE TABLE RedisClstrReplicaTest_DDD
(
 SITE_NAME VARCHAR(64) NOT NULL,
 TRGT_HOST VARCHAR(32) NOT NULL,
 PORT_NO VARCHAR(32) NOT NULL,
 TEST_NAME VARCHAR(64) NOT NULL,
 MEASURE VARCHAR(64) NOT NULL,
 INFO VARCHAR(128) NOT NULL,
 STATE VARCHAR(32) NOT NULL,
 MSMT_HOST VARCHAR(32) NOT NULL,
 MSMT_TIME datetime NOT NULL,
 SEQ_NO DECIMAL(16) NOT NULL,
 Slave VARCHAR(128) NOT NULL,
 IP VARCHAR(128) NOT NULL,
 Port VARCHAR(128) NOT NULL,
 Slave_State VARCHAR(128) NOT NULL,
 Offset VARCHAR(128) NOT NULL,
 Lag VARCHAR(128) NOT NULL,
 Role_Status VARCHAR(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;
CREATE TABLE RedisClstrFailoverTest_DDD
(
 SITE_NAME VARCHAR(64) NOT NULL,
 TRGT_HOST VARCHAR(32) NOT NULL,
 PORT_NO VARCHAR(32) NOT NULL,
 TEST_NAME VARCHAR(64) NOT NULL,
 MEASURE VARCHAR(64) NOT NULL,
 INFO VARCHAR(128) NOT NULL,
 STATE VARCHAR(32) NOT NULL,
 MSMT_HOST VARCHAR(32) NOT NULL,
 MSMT_TIME datetime NOT NULL,
 SEQ_NO DECIMAL(16) NOT NULL,
 Role_Status VARCHAR(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;
CREATE TABLE AzrIntCertTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	destination     VARCHAR(512) NOT NULL,
	validfrom	VARCHAR(200) NOT NULL,
	validtill	VARCHAR(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;
CREATE TABLE AzrIntConnTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	lastdate	VARCHAR(200) NOT NULL,
	version  	VARCHAR(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;
CREATE TABLE AzrIntApCertTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	appleidentifier     VARCHAR(512) NOT NULL,
	certno	VARCHAR(200) NOT NULL,
	lastModifiedDateTime	VARCHAR(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;
CREATE TABLE AzrIntApEnrolTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	appleid     VARCHAR(512) NOT NULL,
	lasttrgdt	VARCHAR(200) NOT NULL,
	lastsuccdt	VARCHAR(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;
CREATE TABLE AzrIntApVPPTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	orgname     VARCHAR(512) NOT NULL,
	appleid     VARCHAR(512) NOT NULL,
	lastsyncdt	VARCHAR(200) NOT NULL,
	lastmoddt	VARCHAR(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;
CREATE TABLE  SolaceCluNdHlthTest_DDD
(
	SITE_NAME				VARCHAR(64) NOT NULL,
	TRGT_HOST				VARCHAR(32) NOT NULL,
	PORT_NO					VARCHAR(32)NOT NULL,
	TEST_NAME				VARCHAR(64) NOT NULL,
	MEASURE					VARCHAR(64) NOT NULL,
	INFO					VARCHAR(128) NOT NULL,
	STATE					VARCHAR(32) NOT NULL,
	MSMT_HOST				VARCHAR(32) NOT NULL,
	MSMT_TIME				DATETIME NOT NULL,
	SEQ_NO					DECIMAL(16) NOT NULL,
	ACTIVE_STANDBY_ROLE		VARCHAR(128) NOT NULL,
	ACTIVITY_STATUS			VARCHAR(300) NOT NULL,
	REDUNDANCY_CONFIGURATION		VARCHAR(1000) NOT NULL,
	REDUNDANCY				VARCHAR(1000) NOT NULL,
	ADB_LINK_UP				VARCHAR(1000) NOT NULL,
	ADB_HELLO_UP			VARCHAR(128) NOT NULL,
	MESSAGESPOOL_CONFIGURATION			VARCHAR(128) NOT NULL,
	MESSAGESPOOL_OPERATIONAL_STATUS	VARCHAR(128) NOT NULL,
	ADMIN_STATUS			VARCHAR(128) NOT NULL,
	OPERATIONAL_STATUS		VARCHAR(128) 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;
CREATE TABLE  SolaceCluHealthTest_DDD
(
	SITE_NAME					VARCHAR(64) NOT NULL,
	TRGT_HOST					VARCHAR(32) NOT NULL,
	PORT_NO						VARCHAR(32)NOT NULL,
	TEST_NAME					VARCHAR(64) NOT NULL,
	MEASURE						VARCHAR(64) NOT NULL,
	INFO						VARCHAR(128) NOT NULL,
	STATE						VARCHAR(32) NOT NULL,
	MSMT_HOST					VARCHAR(32) NOT NULL,
	MSMT_TIME					DATETIME NOT NULL,
	SEQ_NO						DECIMAL(16) NOT NULL,
	PRIMARY_REDUNDANCY_HEALTH		VARCHAR(128) NOT NULL,
	BACKUP_REDUNDANCY_HEALTH		VARCHAR(300) NOT NULL,
	PRIMARY_MESSAGESPOOL_STATUS		VARCHAR(1000) NOT NULL,
	BACKUP_MESSAGESPOOL_STATUS		VARCHAR(1000) NOT NULL,
	PRIMARY_CONFIGSYNC_STATUS		VARCHAR(1000) NOT NULL,
	BACKUP_CONFIGSYNC_STATUS		VARCHAR(128) 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;
CREATE TABLE  CtxNsTrapTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	SENDER		VARCHAR(128) NOT NULL,	
	TRAP_TIME	VARCHAR(128) NOT NULL,	
	TRAP_TYPE	VARCHAR(1500) NOT NULL,	
	TRAP_DETAILS	VARCHAR(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;
CREATE TABLE  MySQLCluNodAvlTest_DDD(
SITE_NAME		VARCHAR(64) NOT NULL,
TRGT_HOST		VARCHAR(32) NOT NULL,
PORT_NO			VARCHAR(32)NOT NULL,
TEST_NAME		VARCHAR(64) NOT NULL,
MEASURE			VARCHAR(64) NOT NULL,
INFO			VARCHAR(128) NOT NULL,
STATE			VARCHAR(32) NOT NULL,
MSMT_HOST		VARCHAR(32) NOT NULL,
MSMT_TIME		DATETIME NOT NULL,
SEQ_NO 			DECIMAL(16) NOT NULL,
CONN_FAILURE_MSG	VARCHAR(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;
CREATE TABLE MySQLCluMembTest_DDD(
SITE_NAME    VARCHAR(64) NOT NULL,
TRGT_HOST    VARCHAR(32) NOT NULL,
PORT_NO        VARCHAR(32) NOT NULL,
TEST_NAME    VARCHAR(64) NOT NULL,
MEASURE          VARCHAR(64) NOT NULL,
INFO             VARCHAR(128) NOT NULL,
STATE            VARCHAR(32) NOT NULL,
MSMT_HOST        VARCHAR(32) NOT NULL,
MSMT_TIME        DATETIME NOT NULL,
SEQ_NO         DECIMAL(16) NOT NULL,
HOST_ID		VARCHAR(128) NOT NULL,
HOST_NAME		VARCHAR(128) NOT NULL,
Port		VARCHAR(128) NOT NULL,
ACCESS_MODE		VARCHAR(128) NOT NULL,
PREVIOUS_STATE		VARCHAR(20) NOT NULL,
CURRENT_STATE		VARCHAR(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;
CREATE TABLE MySQLCluRepStTest_DDD(
SITE_NAME	VARCHAR(64) NOT NULL,
TRGT_HOST	VARCHAR(32) NOT NULL,
PORT_NO		VARCHAR(32)NOT NULL,
TEST_NAME	VARCHAR(64) NOT NULL,
MEASURE		VARCHAR(64) NOT NULL,
INFO		VARCHAR(128) NOT NULL,
STATE		VARCHAR(32) NOT NULL,
MSMT_HOST	VARCHAR(32) NOT NULL,
MSMT_TIME	DATETIME NOT NULL,
SEQ_NO 		DECIMAL(16) NOT NULL,
CHANNEL_NAME										   VARCHAR(32) NOT NULL,
WORKER_ID											   VARCHAR(32) NOT NULL,
THREAD_ID											   VARCHAR(32) NOT NULL,
SERVICE_STATE										   VARCHAR(32) NOT NULL,
LAST_APPLIED_TRANSACTION							   VARCHAR(64) NOT NULL,
LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP	   VARCHAR(32) NOT NULL,
LAST_APPLIED_TRANSACTION_END_TIMESTAMP				   VARCHAR(32) NOT NULL,
REPLICATION_LAG_TIME								   VARCHAR(32) NOT NULL,
LAST_ERROR_TIME										   VARCHAR(32) NOT NULL,
LAST_ERROR_NUMBER									   VARCHAR(32) NOT NULL,
LAST_ERROR_MESSAGE									   VARCHAR(1024) NOT NULL,
LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE  VARCHAR(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;
CREATE TABLE OraRacUseAudTest_DDD
(
    SITE_NAME    VARCHAR(64) NOT NULL,
    TRGT_HOST    VARCHAR(32) NOT NULL,
    PORT_NO      VARCHAR(32) NOT NULL,
    TEST_NAME    VARCHAR(64) NOT NULL,
    MEASURE      VARCHAR(64) NOT NULL,
    INFO         VARCHAR(128) NOT NULL,
    STATE        VARCHAR(32) NOT NULL,
    MSMT_HOST    VARCHAR(32) NOT NULL,
    MSMT_TIME    DATETIME NOT NULL,
    SEQ_NO       DECIMAL(16) NOT NULL,
    SESSIONID    VARCHAR(32) NOT NULL,
    OS_USERNAME  VARCHAR(128) NOT NULL,
    OS_PROCESS   VARCHAR(32) NOT NULL,
    USERNAME     VARCHAR(32) NOT NULL,
    USER_HOST    VARCHAR(32) NOT NULL,
    TERMINAL     VARCHAR(32) NOT NULL,
    LOGIN_TIME   VARCHAR(32) NOT NULL,
    LOGOFF_TIME  VARCHAR(32) NOT NULL,
    RETURNCODE    VARCHAR(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 MongoExtClRepStTest_DDD;
CREATE TABLE MongoExtClRepStTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	PREVIOUS_NODE 	VARCHAR(300) NOT NULL,	
	CURRENT_NODE 	VARCHAR(300) NOT NULL,	
	CURRENT_NODE_START_TIME	VARCHAR(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 MongoExtCluAvaTest_DDD;
CREATE TABLE MongoExtCluAvaTest_DDD
(
	SITE_NAME	varchar(64) NOT NULL,
	TRGT_HOST	varchar(32) NOT NULL,
	PORT_NO		varchar(32)NOT NULL,
	TEST_NAME	varchar(64) NOT NULL,
	MEASURE		varchar(64) NOT NULL,
	INFO		varchar(128) NOT NULL,
	STATE		varchar(32) NOT NULL,
	MSMT_HOST	varchar(32) NOT NULL,
	MSMT_TIME	datetime NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	SHARD_ID 	varchar(128) NOT NULL,
	IP 			varchar(128) NOT NULL,
	PORT 		varchar(32) NOT NULL,
	NODE_STATE 	varchar(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 MongoExtCluNetTest_DDD;
CREATE TABLE  MongoExtCluNetTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32) NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	MESSAGE		VARCHAR(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;
CREATE TABLE MongoExtCluNdStTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	PREVIOUS_NODE 	VARCHAR(300) NOT NULL,	
	CURRENT_NODE 	VARCHAR(300) NOT NULL,	
	CURRENT_NODE_START_TIME	VARCHAR(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;
CREATE TABLE  IBMIMMMemoryTest_DDD
(
	SITE_NAME			VARCHAR(64) NOT NULL,
	TRGT_HOST			VARCHAR(32) NOT NULL,
	PORT_NO				VARCHAR(32)NOT NULL,
	TEST_NAME			VARCHAR(64) NOT NULL,
	MEASURE				VARCHAR(64) NOT NULL,
	INFO				VARCHAR(128) NOT NULL,
	STATE				VARCHAR(32) NOT NULL,
	MSMT_HOST			VARCHAR(32) NOT NULL,
	MSMT_TIME			DATETIME NOT NULL,
	SEQ_NO 				DECIMAL(16) NOT NULL,
	PART_NUMBER			VARCHAR(128) NOT NULL,
	SERIAL_NUMBER 		VARCHAR(256) NOT NULL,
	MANUFACTURE_DATE	VARCHAR(128) NOT NULL,
	MEMORY_TYPE 		VARCHAR(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;
CREATE TABLE  IBMIMMPowerTest_DDD
(
	SITE_NAME			VARCHAR(64) NOT NULL,
	TRGT_HOST			VARCHAR(32) NOT NULL,
	PORT_NO				VARCHAR(32)NOT NULL,
	TEST_NAME			VARCHAR(64) NOT NULL,
	MEASURE				VARCHAR(64) NOT NULL,
	INFO				VARCHAR(128) NOT NULL,
	STATE				VARCHAR(32) NOT NULL,
	MSMT_HOST			VARCHAR(32) NOT NULL,
	MSMT_TIME			DATETIME NOT NULL,
	SEQ_NO 				DECIMAL(16) NOT NULL,
	PART_NUMBER			VARCHAR(128) NOT NULL,
	FRU_NUMBER			VARCHAR(128) NOT NULL,
	SERIAL_NUMBER 		VARCHAR(256) 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;
CREATE TABLE AzrApiAccessTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	Error_msg	VARCHAR(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;
CREATE TABLE CtxNsConnectTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	NetScaler_version	VARCHAR(256) NOT NULL,
	NetScaler_ip_address	VARCHAR(256) NOT NULL,
	Netmask			VARCHAR(256) NOT NULL,
	Node			VARCHAR(256) NOT NULL,
	Time_zone		VARCHAR(256) NOT NULL,
	Last_config_change_time	VARCHAR(256) NOT NULL,
	Last_config_saved_time	VARCHAR(256) NOT NULL,
	Platform			VARCHAR(256) NOT NULL,
	Manufactured_on		VARCHAR(256) NOT NULL,
	Cpu					VARCHAR(256) NOT NULL,
	Host_id				VARCHAR(256) NOT NULL,
	Serial_number		VARCHAR(256) NOT NULL,
	End_coded_sn		VARCHAR(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;
CREATE TABLE  AsAbapSyslgTest_DDD
(
    SITE_NAME    VARCHAR(64) NOT NULL,
    TRGT_HOST    VARCHAR(32) NOT NULL,
    PORT_NO        VARCHAR(32) NOT NULL,
    TEST_NAME    VARCHAR(64) NOT NULL,
    MEASURE        VARCHAR(64) NOT NULL,
    INFO        VARCHAR(128) NOT NULL,
    STATE        VARCHAR(32) NOT NULL,
    MSMT_HOST    VARCHAR(32) NOT NULL,
    MSMT_TIME    DATETIME NOT NULL,
    SEQ_NO         DECIMAL(16) NOT NULL,
    Client         VARCHAR(32) NOT NULL,
    Username         VARCHAR(32) NOT NULL,
    Terminal_Name         VARCHAR(32) NOT NULL,
    Severity         VARCHAR(32) NOT NULL,
    Alert_Category         VARCHAR(32) NOT NULL,
    Datecol         VARCHAR(32) NOT NULL,
    Timecol         VARCHAR(32) NOT NULL,
    Program_Name         VARCHAR(32) NOT NULL,
    Text_Message         VARCHAR(2000) NOT NULL,
    dumpType         VARCHAR(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;
CREATE TABLE OraRacLngRunQrTest_DDD
(
	SITE_NAME		VARCHAR(64) NOT NULL,
	TRGT_HOST		VARCHAR(32) NOT NULL,
	PORT_NO			VARCHAR(32) NOT NULL,
	TEST_NAME		VARCHAR(64) NOT NULL,
	MEASURE			VARCHAR(64) NOT NULL,
	INFO			VARCHAR(128)NOT NULL,
	STATE			VARCHAR(32) NOT NULL,
	MSMT_HOST		VARCHAR(32) NOT NULL,
	MSMT_TIME		DATETIME NOT NULL,
	SEQ_NO 			DECIMAL(16) NOT NULL,
	SERIAL_NUMBER							VARCHAR(32) NOT NULL,
	SID										VARCHAR(32) NOT NULL,
	TERMINAL								VARCHAR(32) NOT NULL,
	USER_NAME								VARCHAR(32) NOT NULL,
	OS_USER									VARCHAR(32) NOT NULL,
	MACHINE									VARCHAR(64) NOT NULL,
	PROGRAM									VARCHAR(64) NOT NULL,
	ELAPSED_TIME_PER_EXE_SECONDS			VARCHAR(32) NOT NULL,
	EXECUTION_COUNT							VARCHAR(32) NOT NULL,
	SQL_TEXT								VARCHAR(1024) NOT NULL,
	ELAPSED_TIME_SECONDS					VARCHAR(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 VmgICASessionTest_DDD;
CREATE TABLE VmgICASessionTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	Bandwidth	DECIMAL(20,4) NOT NULL,
	Latency		DECIMAL(20,4) NOT NULL,
	Ica_RTT		DECIMAL(20,4) NOT NULL,
	Bandwidth_status VARCHAR(256) NOT NULL,
	Latency_status	VARCHAR(256) NOT NULL,
	Ica_RTT_status	VARCHAR(256) NOT NULL,
	CLIENT_NAME VARCHAR(128) NOT NULL,
	CLIENT_IPADDRESS VARCHAR(256) NOT NULL,
	CLIENT_VERSION VARCHAR(128) NOT NULL,
	CLIENT_ID VARCHAR(128) NOT NULL,
	CLIENT_TYPE VARCHAR(256) NOT NULL,
	CLIENT_CATEGORY VARCHAR(256) NOT NULL,
	SESSION_KEY VARCHAR(256) NOT NULL,
	HDX_DISPLAY_MODE VARCHAR(256) NOT NULL,
	HDX_ACTIVE_ENCODER VARCHAR(256) NOT NULL,
	HDX_PROTOCOL VARCHAR(256) NOT NULL,
	ENCRYPTION_LEVEL VARCHAR(256) NOT NULL,
	ASSIGNMENT_TYPE VARCHAR(128) NOT NULL,
	BROKER_SITE_NAME VARCHAR(128) NOT NULL,
	DELIVERY_GROUP_NAME VARCHAR(128) NOT NULL,
	CATALOG_NAME VARCHAR(128) NOT NULL,
	DELIVERY_CONTROLLER_NAME VARCHAR(128) NOT NULL,
	DELIVERY_CONTROLLER_TIME VARCHAR(128) NOT NULL,
	LICENSE_SERVER_NAME VARCHAR(128) NOT NULL,
	LICENSE_SERVER_PORT VARCHAR(128) NOT NULL,
	LICENSE_SERVER_MODEL VARCHAR(128) NOT NULL,
	LICENSE_PRODUCT_EDT VARCHAR(128) NOT NULL,
	LICENSE_PRODUCT_NAME VARCHAR(128) NOT NULL,
	PROVISIONING_TYPE VARCHAR(128) NOT NULL,
	PERSISTENT_DATA_LOCATION VARCHAR(256) NOT NULL,
	PERSONAL_VDISK_DRIVE VARCHAR(128) NOT NULL,
	RENDEZVOUS_PROTOCOL VARCHAR(64) NOT NULL,
	SESSION_INFO VARCHAR(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 nonclustered index idx1_VmgICASessionTest_DDD ON VmgICASessionTest_DDD ( TRGT_HOST,PORT_NO, INFO , MEASURE) include (MSMT_TIME);


DROP TABLE CtxCdSessionTest_DDD;
CREATE TABLE CtxCdSessionTest_DDD
(
	SITE_NAME	VARCHAR(64) NOT NULL,
	TRGT_HOST	VARCHAR(32) NOT NULL,
	PORT_NO		VARCHAR(32)NOT NULL,
	TEST_NAME	VARCHAR(64) NOT NULL,
	MEASURE		VARCHAR(64) NOT NULL,
	INFO		VARCHAR(128) NOT NULL,
	STATE		VARCHAR(32) NOT NULL,
	MSMT_HOST	VARCHAR(32) NOT NULL,
	MSMT_TIME	DATETIME NOT NULL,
	SEQ_NO 		DECIMAL(16) NOT NULL,
	Session_id		VARCHAR(128) NOT NULL,
	Machine_name		VARCHAR(128) NOT NULL,
	Machine_fqdn		VARCHAR(128) NOT NULL,
	Ip_address		VARCHAR(128) NOT NULL,
	Os_type			VARCHAR(128) NOT NULL,
	Catalog_name		VARCHAR(128) NOT NULL,
	Delivery_group_name	VARCHAR(128) NOT NULL,
	Hosted_machine_name 	VARCHAR(128) NOT NULL,
	Hosting_server_name	VARCHAR(128) NOT NULL,
	Hypervisor_conn_name	VARCHAR(128) NOT NULL,
	User_name		VARCHAR(128) NOT NULL,
	Client_address 		VARCHAR(128) NOT NULL,
	Client_name		VARCHAR(128) NOT NULL,
	Client_version		VARCHAR(128) NOT NULL,
	Connected_via_hostname	VARCHAR(128) NOT NULL,
	Connected_via_ip_address VARCHAR(128) NOT NULL,
	Launched_via_hostname	VARCHAR(128) NOT NULL,
	Launched_via_ip_address VARCHAR(128) NOT NULL,
	Protocol		VARCHAR(128) NOT NULL,
	Session_state		VARCHAR(128) NOT NULL,
	Brokering_duration	VARCHAR(128) NOT NULL,
	Establishment_duration	VARCHAR(128) NOT NULL,
	Establishment_time	VARCHAR(128) NOT NULL,
	Session_state_change_time VARCHAR(128) NOT NULL,
	Start_time		VARCHAR(128) NOT NULL,
	Brokering_time		VARCHAR(128) NOT NULL,
	License_id		VARCHAR(128) NOT NULL,
	Hidden			VARCHAR(128) NOT NULL,
	Autonomously_brokered	VARCHAR(128) NOT NULL,
	Device_id		VARCHAR(128) NOT NULL,
	Hardware_id		VARCHAR(128) NOT NULL,
	Agent_version		VARCHAR(128) NOT NULL,
	Session_support		VARCHAR(128) NOT NULL,
	Controller_name		VARCHAR(128) NOT NULL,
	Applications_in_use	VARCHAR(1024) NOT NULL,
	Zone_Name		VARCHAR(128) NOT NULL,
	Client_platform		VARCHAR(128) NOT NULL,
	Session_type		VARCHAR(128) NOT NULL,
	Session_key		VARCHAR(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 nonclustered index idx1_CtxCdSessionTest_DDD on CtxCdSessionTest_DDD ( Session_key,MEASURE,INFO) include (MSMT_TIME);
