DROP TABLE AirWatchAPICertTest CASCADE CONSTRAINTS;
CREATE TABLE AirWatchAPICertTest(
TRGT_HOST		varchar2(32),
PORT_NO			varchar2(32),
SITE_NAME		varchar2(64),
INFO			varchar2(128),
MSMT_HOST		varchar2(32),
MSMT_TIME		date,
DAYS_TO_EXPIRE		Number(20,4) NOT NULL,
DAYS_TO_EXPIRE_ST		varchar2(32) NOT NULL
);
CREATE INDEX IDX_AirWatchAPICertTest ON AirWatchAPICertTest(MSMT_TIME);
ALTER TABLE AirWatchAPICertTest ADD constraint PK_AirWatchAPICertTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE AirWatchAPICertTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AirWatchAPICertTest_TREND(
TRGT_HOST		varchar2(32),
PORT_NO			varchar2(32),
SITE_NAME		varchar2(64),
INFO			varchar2(128),
MSMT_HOST		varchar2(32),
MSMT_TIME		date,
PERIOD			varchar2(32),
DAYS_TO_EXPIRE_MIN		Number(20,4) NOT NULL,
DAYS_TO_EXPIRE_MAX		Number(20,4) NOT NULL,
DAYS_TO_EXPIRE_STCNT	varchar2(32) NOT NULL
);
ALTER TABLE AirWatchAPICertTest_TREND ADD constraint PK_AirWatchAPICertTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE AirWatchAPICertTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AirWatchAPICertTest_THRESH(
TRGT_HOST		varchar2(32),
PORT_NO			varchar2(32),
SITE_NAME		varchar2(64),
INFO			varchar2(128),
MSMT_HOST		varchar2(32),
MSMT_TIME_START		date,
MSMT_TIME_END		date,
DAYS_TO_EXPIRE_MIN		VARCHAR2(256) NOT NULL,
DAYS_TO_EXPIRE_MAX		VARCHAR2(256) NOT NULL
);
ALTER TABLE AirWatchAPICertTest_THRESH ADD constraint PK_AirWatchAPICertTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AirWatchAPICertTest_THRESH ON AirWatchAPICertTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AirWatchAPICertTest ON AirWatchAPICertTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AirWatchAPICertTest ON AirWatchAPICertTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE CloudLoginTest_REPORT_INSIDE CASCADE CONSTRAINTS;
CREATE TABLE CloudLoginTest_REPORT_INSIDE ( 
	SESSION_KEY VARCHAR2(128), 
	TRGT_HOST VARCHAR2(32),  
	PORT_NO VARCHAR2(32),  
	MSMT_TIME DATE NOT NULL,
	USERNAME VARCHAR2(128) NOT NULL,
	GUESTNAME VARCHAR2(128) NOT NULL,
	LOGIN_TIME DATE NOT NULL,
	DURATION NUMBER (20,4) NOT NULL,
	ACTIVE_TIME NUMBER (20,4) NOT NULL,
	IDLE_TIME NUMBER (20,4) NOT NULL,
	CLIENT_IP_ADDRESS VARCHAR2(128),
	CLIENT_NAME VARCHAR2(128),
	CLIENT_ID VARCHAR2(128),
	CLIENT_CATEGORY VARCHAR2(128),
	CTX_STATE VARCHAR2(128),
	HDX_DISPLAY_MODE VARCHAR2(128),
	HDX_ACTIVE_ENCODER VARCHAR2(128),
	HDX_PROTOCOL VARCHAR2(128),
	ENCRYPTION_LEVEL VARCHAR2(128),
	NETSCALER_RPTNAME VARCHAR2(128),
	NETSCALER_IP_ADDRESS VARCHAR2(128),
	XENAPP_IP_ADDRESS VARCHAR2(128),
	ENDPOINT_IP_ADDRESS VARCHAR2(128),
	COUNTRY_NAME VARCHAR2(128),
	COUNTRY_CODE VARCHAR2(128),
	REGION VARCHAR2(128),
	CITY VARCHAR2(128),
	LATITUDE VARCHAR2(128),
	LONGITUDE VARCHAR2(128),
	LOGON_DURATION NUMBER (20,4) NOT NULL,
	ACTUAL_LOGON_DURATION NUMBER (20,4) NOT NULL,
	CPU_UTIL NUMBER (20,4) NOT NULL,
	PHYSICAL_MEM_UTILZE NUMBER (20,4) NOT NULL,
	READ_RATE NUMBER (20,4) NOT NULL,
	WRITE_RATE NUMBER (20,4) NOT NULL,
	SESSION_AVG_LATENCY NUMBER (20,4) NOT NULL,
	ICA_NWLATENCY NUMBER (20,4) NOT NULL,
	INPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
	OUTPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
	INPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL,
	OUTPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL,
	LAST_RECD_LATENCY NUMBER (20,4) NOT NULL,
	MAX_INPUT_DELAY NUMBER (20,4) NOT NULL,
	AVG_INPUT_DELAY NUMBER (20,4) NOT NULL
);
CREATE INDEX IDX_CloudLoginTest_RPT_INSIDE ON CloudLoginTest_REPORT_INSIDE(MSMT_TIME); 

DROP TABLE EsxLoginTest_REPORT_INSIDE CASCADE CONSTRAINTS;
CREATE TABLE EsxLoginTest_REPORT_INSIDE ( 
SESSION_KEY VARCHAR2(128), 
TRGT_HOST VARCHAR2(32),  
PORT_NO VARCHAR2(32),  
MSMT_TIME DATE NOT NULL,
USERNAME VARCHAR2(128) NOT NULL,
GUESTNAME VARCHAR2(128) NOT NULL,
LOGIN_TIME DATE NOT NULL,
DURATION NUMBER (20,4) NOT NULL,
ACTIVE_TIME NUMBER (20,4) NOT NULL,
IDLE_TIME NUMBER (20,4) NOT NULL,
CLIENT_IP_ADDRESS VARCHAR2(128),
CLIENT_NAME VARCHAR2(128),
CLIENT_ID VARCHAR2(128),
CLIENT_CATEGORY VARCHAR2(128),
CTX_STATE VARCHAR2(128),
HDX_DISPLAY_MODE VARCHAR2(128),
HDX_ACTIVE_ENCODER VARCHAR2(128),
HDX_PROTOCOL VARCHAR2(128),
ENCRYPTION_LEVEL VARCHAR2(128),
NETSCALER_RPTNAME VARCHAR2(128),
NETSCALER_IP_ADDRESS VARCHAR2(128),
XENAPP_IP_ADDRESS VARCHAR2(128),
ENDPOINT_IP_ADDRESS VARCHAR2(128),
COUNTRY_NAME VARCHAR2(128),
COUNTRY_CODE VARCHAR2(128),
REGION VARCHAR2(128),
CITY VARCHAR2(128),
LATITUDE VARCHAR2(128),
LONGITUDE VARCHAR2(128),
LOGON_DURATION NUMBER (20,4) NOT NULL,
ACTUAL_LOGON_DURATION NUMBER (20,4) NOT NULL,
CPU_UTIL NUMBER (20,4) NOT NULL,
TOTAL_PHY_MEM NUMBER (20,4) NOT NULL,
PHYSICAL_MEM_UTILZE NUMBER (20,4) NOT NULL,
PERCENT_BUSY NUMBER (20,4) NOT NULL,
PERCENT_DISK_READS NUMBER (20,4) NOT NULL,
PERCENT_DISK_WRITES NUMBER (20,4) NOT NULL,
INCOMING_TRAFFIC NUMBER (20,4) NOT NULL,
OUTGOING_TRAFFIC NUMBER (20,4) NOT NULL,
SESSION_AVG_LATENCY NUMBER (20,4) NOT NULL,
LAST_RECD_LATENCY NUMBER (20,4) NOT NULL,
ICA_NWLATENCY NUMBER (20,4) NOT NULL,
INPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
OUTPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
BROWSER_COUNT NUMBER (20,4) NOT NULL,
AVG_CPU_UTIL NUMBER (20,4) NOT NULL,
MEM_USED NUMBER (20,4) NOT NULL,
CLIENT_IPADDRESS VARCHAR2(32) NOT NULL,
CLIENT_VERSION VARCHAR2(32) NOT NULL,
USED_PHY_MEM NUMBER (20,4) NOT NULL,
MAX_INPUT_DELAY NUMBER (20,4) NOT NULL,
AVG_INPUT_DELAY  NUMBER (20,4) NOT NULL,
INC_BANDWIDTH NUMBER (20,4) NOT NULL,
OUT_BANDWIDTH NUMBER (20,4) NOT NULL,
REC_PACKETS NUMBER (20,4) NOT NULL,
TRANS_PACKETS NUMBER (20,4) NOT NULL,
SESSN_JITTR NUMBER (20,4) NOT NULL,
SESSN_PCKT_LOSS NUMBER (20,4) NOT NULL,
BANDHWIDTH NUMBER (20,4) NOT NULL,
SESSN_RCVD_BYTS NUMBER (20,4) NOT NULL,
SESSN_TRNSMTD_BYTS NUMBER (20,4) NOT NULL,
INPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL,
OUTPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL
);
CREATE INDEX IDX_EsxLoginTest_RPT_INSIDE ON EsxLoginTest_REPORT_INSIDE(MSMT_TIME);

DROP TABLE AMHCrySvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHCrySvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);  

CREATE INDEX IDX_AMHCrySvcTest ON AMHCrySvcTest(MSMT_TIME);
ALTER TABLE AMHCrySvcTest ADD constraint PK_AMHCrySvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHCrySvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHCrySvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHCrySvcTest_TREND ADD constraint PK_AMHCrySvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHCrySvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHCrySvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHCrySvcTest_THRESH ADD constraint PK_AMHCrySvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHCrySvcTest_THRESH ON AMHCrySvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHCrySvcTest ON AMHCrySvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHCrySvcTest ON AMHCrySvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHFileSvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHFileSvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHFileSvcTest ON AMHFileSvcTest(MSMT_TIME);
ALTER TABLE AMHFileSvcTest ADD constraint PK_AMHFileSvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHFileSvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHFileSvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHFileSvcTest_TREND ADD constraint PK_AMHFileSvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHFileSvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHFileSvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHFileSvcTest_THRESH ADD constraint PK_AMHFileSvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHFileSvcTest_THRESH ON AMHFileSvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHFileSvcTest ON AMHFileSvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHFileSvcTest ON AMHFileSvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHInpChnsTest CASCADE CONSTRAINTS;
CREATE TABLE AMHInpChnsTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHInpChnsTest ON AMHInpChnsTest(MSMT_TIME);
ALTER TABLE AMHInpChnsTest ADD constraint PK_AMHInpChnsTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHInpChnsTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHInpChnsTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHInpChnsTest_TREND ADD constraint PK_AMHInpChnsTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHInpChnsTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHInpChnsTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHInpChnsTest_THRESH ADD constraint PK_AMHInpChnsTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHInpChnsTest_THRESH ON AMHInpChnsTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHInpChnsTest ON AMHInpChnsTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHInpChnsTest ON AMHInpChnsTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHJMSConnTest CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSConnTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	TOTAL_CONNECTIONS		NUMBER(20,4) NOT NULL,
	TOTAL_CONNECTIONS_ST		VARCHAR2(32) NOT NULL,  
	ACTIVE_CONNECTIONS      		NUMBER(20,4) NOT NULL,
	ACTIVE_CONNECTIONS_ST		VARCHAR2(32) NOT NULL,  
	INACTIVE_CONNECTIONS			NUMBER(20,4) NOT NULL,
	INACTIVE_CONNECTIONS_ST		VARCHAR2(32) NOT NULL,
	TOTAL_TIMEDOUT		NUMBER(20,4) NOT NULL,
	TOTAL_TIMEDOUT_ST		VARCHAR2(32) NOT NULL,
	SESSIONS_PER_CONNECTION		NUMBER(20,4) NOT NULL,
	SESSIONS_PER_CONNECTION_ST		VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHJMSConnTest ON AMHJMSConnTest(MSMT_TIME);
ALTER TABLE AMHJMSConnTest ADD constraint PK_AMHJMSConnTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHJMSConnTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHJMSConnTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	TOTAL_CONNECTIONS_MIN		NUMBER(20,4) NOT NULL,
	TOTAL_CONNECTIONS_MAX		NUMBER(20,4) NOT NULL,
	TOTAL_CONNECTIONS_STCNT		VARCHAR2(32) NOT NULL,  
	ACTIVE_CONNECTIONS_MIN		NUMBER(20,4) NOT NULL,
	ACTIVE_CONNECTIONS_MAX		NUMBER(20,4) NOT NULL,
	ACTIVE_CONNECTIONS_STCNT		VARCHAR2(32) NOT NULL,  
	INACTIVE_CONNECTIONS_MIN		NUMBER(20,4) NOT NULL,
	INACTIVE_CONNECTIONS_MAX		NUMBER(20,4) NOT NULL,
	INACTIVE_CONNECTIONS_STCNT	VARCHAR2(32) NOT NULL,
	TOTAL_TIMEDOUT_MIN		NUMBER(20,4) NOT NULL,
	TOTAL_TIMEDOUT_MAX		NUMBER(20,4) NOT NULL,
	TOTAL_TIMEDOUT_STCNT	VARCHAR2(32) NOT NULL,
	SESSIONS_PER_CONNECTION_MIN		NUMBER(20,4) NOT NULL,
	SESSIONS_PER_CONNECTION_MAX		NUMBER(20,4) NOT NULL,
	SESSIONS_PER_CONNECTION_STCNT	VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHJMSConnTest_TREND ADD constraint PK_AMHJMSConnTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHJMSConnTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSConnTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START			date NOT NULL,
	MSMT_TIME_END			date NOT NULL,
	TOTAL_CONNECTIONS_MIN		VARCHAR2(256) NOT NULL,
	TOTAL_CONNECTIONS_MAX		VARCHAR2(256) NOT NULL,
	ACTIVE_CONNECTIONS_MIN		VARCHAR2(256) NOT NULL,
	ACTIVE_CONNECTIONS_MAX		VARCHAR2(256) NOT NULL,
	INACTIVE_CONNECTIONS_MIN		VARCHAR2(256) NOT NULL,
	INACTIVE_CONNECTIONS_MAX		VARCHAR2(256) NOT NULL,
	TOTAL_TIMEDOUT_MIN	NUMBER(20,4) NOT NULL,
	TOTAL_TIMEDOUT_MAX		VARCHAR2(32) NOT NULL,
	SESSIONS_PER_CONNECTION_MIN		NUMBER(20,4) NOT NULL,
	SESSIONS_PER_CONNECTION_MAX		VARCHAR2(32) NOT NULL
); 
ALTER TABLE AMHJMSConnTest_THRESH ADD constraint PK_AMHJMSConnTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHJMSConnTest_THRESH ON AMHJMSConnTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHJMSConnTest ON AMHJMSConnTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHJMSConnTest ON AMHJMSConnTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHJMSQTest CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSQTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
); 

CREATE INDEX IDX_AMHJMSQTest ON AMHJMSQTest(MSMT_TIME);
ALTER TABLE AMHJMSQTest ADD constraint PK_AMHJMSQTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHJMSQTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHJMSQTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHJMSQTest_TREND ADD constraint PK_AMHJMSQTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHJMSQTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSQTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHJMSQTest_THRESH ADD constraint PK_AMHJMSQTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHJMSQTest_THRESH ON AMHJMSQTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHJMSQTest ON AMHJMSQTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHJMSQTest ON AMHJMSQTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHJMSSvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSSvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHJMSSvcTest ON AMHJMSSvcTest(MSMT_TIME);
ALTER TABLE AMHJMSSvcTest ADD constraint PK_AMHJMSSvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHJMSSvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHJMSSvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHJMSSvcTest_TREND ADD constraint PK_AMHJMSSvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHJMSSvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHJMSSvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHJMSSvcTest_THRESH ADD constraint PK_AMHJMSSvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHJMSSvcTest_THRESH ON AMHJMSSvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHJMSSvcTest ON AMHJMSSvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHJMSSvcTest ON AMHJMSSvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHPQSvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHPQSvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHPQSvcTest ON AMHPQSvcTest(MSMT_TIME);
ALTER TABLE AMHPQSvcTest ADD constraint PK_AMHPQSvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHPQSvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHPQSvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHPQSvcTest_TREND ADD constraint PK_AMHPQSvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHPQSvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHPQSvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHPQSvcTest_THRESH ADD constraint PK_AMHPQSvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHPQSvcTest_THRESH ON AMHPQSvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHPQSvcTest ON AMHPQSvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHPQSvcTest ON AMHPQSvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSAGCltSvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSAGCltSvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHSAGCltSvcTest ON AMHSAGCltSvcTest(MSMT_TIME);
ALTER TABLE AMHSAGCltSvcTest ADD constraint PK_AMHSAGCltSvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHSAGCltSvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSAGCltSvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSAGCltSvcTest_TREND ADD constraint PK_AMHSAGCltSvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSAGCltSvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSAGCltSvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSAGCltSvcTest_THRESH ADD constraint PK_AMHSAGCltSvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSAGCltSvcTest_THRESH ON AMHSAGCltSvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSAGCltSvcTest ON AMHSAGCltSvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSAGCltSvcTest ON AMHSAGCltSvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSealBlkTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSealBlkTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);

CREATE INDEX IDX_AMHSealBlkTest ON AMHSealBlkTest(MSMT_TIME);
ALTER TABLE AMHSealBlkTest ADD constraint PK_AMHSealBlkTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE AMHSealBlkTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSealBlkTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSealBlkTest_TREND ADD constraint PK_AMHSealBlkTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSealBlkTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSealBlkTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSealBlkTest_THRESH ADD constraint PK_AMHSealBlkTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSealBlkTest_THRESH ON AMHSealBlkTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSealBlkTest ON AMHSealBlkTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSealBlkTest ON AMHSealBlkTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSNFInpChnTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFInpChnTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);  

CREATE INDEX IDX_AMHSNFInpChnTest ON AMHSNFInpChnTest(MSMT_TIME);
ALTER TABLE AMHSNFInpChnTest ADD constraint PK_AMHSNFInpChnTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE AMHSNFInpChnTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSNFInpChnTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSNFInpChnTest_TREND ADD constraint PK_AMHSNFInpChnTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSNFInpChnTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFInpChnTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSNFInpChnTest_THRESH ADD constraint PK_AMHSNFInpChnTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSNFInpChnTest_THRESH ON AMHSNFInpChnTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSNFInpChnTest ON AMHSNFInpChnTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSNFInpChnTest ON AMHSNFInpChnTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSNFQMsgTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFQMsgTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
); 

CREATE INDEX IDX_AMHSNFQMsgTest ON AMHSNFQMsgTest(MSMT_TIME);
ALTER TABLE AMHSNFQMsgTest ADD constraint PK_AMHSNFQMsgTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE AMHSNFQMsgTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSNFQMsgTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSNFQMsgTest_TREND ADD constraint PK_AMHSNFQMsgTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSNFQMsgTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFQMsgTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSNFQMsgTest_THRESH ADD constraint PK_AMHSNFQMsgTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSNFQMsgTest_THRESH ON AMHSNFQMsgTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSNFQMsgTest ON AMHSNFQMsgTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSNFQMsgTest ON AMHSNFQMsgTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSNFQSvcTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFQSvcTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);  

CREATE INDEX IDX_AMHSNFQSvcTest ON AMHSNFQSvcTest(MSMT_TIME);
ALTER TABLE AMHSNFQSvcTest ADD constraint PK_AMHSNFQSvcTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHSNFQSvcTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSNFQSvcTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSNFQSvcTest_TREND ADD constraint PK_AMHSNFQSvcTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSNFQSvcTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSNFQSvcTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSNFQSvcTest_THRESH ADD constraint PK_AMHSNFQSvcTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSNFQSvcTest_THRESH ON AMHSNFQSvcTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSNFQSvcTest ON AMHSNFQSvcTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSNFQSvcTest ON AMHSNFQSvcTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AMHSwiftConnTest CASCADE CONSTRAINTS;
CREATE TABLE AMHSwiftConnTest
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	STATUS				NUMBER(20,4) NOT NULL,
	STATUS_ST			VARCHAR2(32) NOT NULL
);					  

CREATE INDEX IDX_AMHSwiftConnTest ON AMHSwiftConnTest(MSMT_TIME);
ALTER TABLE AMHSwiftConnTest ADD constraint PK_AMHSwiftConnTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AMHSwiftConnTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE AMHSwiftConnTest_TREND
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME			date NOT NULL,
	PERIOD				VARCHAR2(32) NOT NULL,
	STATUS_MIN			NUMBER(20,4) NOT NULL,
	STATUS_MAX			NUMBER(20,4) NOT NULL,
	STATUS_STCNT		VARCHAR2(32) NOT NULL
);

ALTER TABLE AMHSwiftConnTest_TREND ADD constraint PK_AMHSwiftConnTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AMHSwiftConnTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AMHSwiftConnTest_THRESH
(
	TRGT_HOST			VARCHAR2(32) NOT NULL,
	PORT_NO				VARCHAR2(32) NOT NULL,
	SITE_NAME			VARCHAR2(64) NOT NULL,
	INFO				VARCHAR2(128) NOT NULL,
	MSMT_HOST			VARCHAR2(32) NOT NULL,
	MSMT_TIME_START		date NOT NULL,
	MSMT_TIME_END		date NOT NULL,
	STATUS_MIN			VARCHAR2(256) NOT NULL,
	STATUS_MAX			VARCHAR2(256) NOT NULL
); 
ALTER TABLE AMHSwiftConnTest_THRESH ADD constraint PK_AMHSwiftConnTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AMHSwiftConnTest_THRESH ON AMHSwiftConnTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AMHSwiftConnTest ON AMHSwiftConnTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AMHSwiftConnTest ON AMHSwiftConnTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolQueueStatTest CASCADE CONSTRAINTS;
CREATE TABLE SolQueueStatTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
ENGR_CONFIG_STATUS Number(20,4) NOT NULL,
ENGR_CONFIG_STATUS_ST varchar2(32) NOT NULL,
INGR_CONFIG_STATUS Number(20,4) NOT NULL,
INGR_CONFIG_STATUS_ST varchar2(32) NOT NULL,
HIGH_WATERMARK Number(20,4) NOT NULL,
HIGH_WATERMARK_ST varchar2(32) NOT NULL,
TOTAL_MSG_SPOOLED Number(20,4) NOT NULL,
TOTAL_MSG_SPOOLED_ST varchar2(32) NOT NULL,
TOTAL_SUBSCRIPTIONS Number(20,4) NOT NULL,
TOTAL_SUBSCRIPTIONS_ST varchar2(32) NOT NULL,
SPOOL_USAGE Number(20,4) NOT NULL,
SPOOL_USAGE_ST varchar2(32) NOT NULL,
CURRENT_CONSUMERS Number(20,4) NOT NULL,
CURRENT_CONSUMERS_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_SolQueueStatTest ON SolQueueStatTest(MSMT_TIME);
ALTER TABLE SolQueueStatTest ADD constraint PK_SolQueueStatTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE SolQueueStatTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolQueueStatTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
ENGR_CONFIG_STATUS_MIN Number(20,4) NOT NULL,
ENGR_CONFIG_STATUS_MAX Number(20,4) NOT NULL,
ENGR_CONFIG_STATUS_STCNT varchar2(32) NOT NULL,
INGR_CONFIG_STATUS_MIN Number(20,4) NOT NULL,
INGR_CONFIG_STATUS_MAX Number(20,4) NOT NULL,
INGR_CONFIG_STATUS_STCNT varchar2(32) NOT NULL,
HIGH_WATERMARK_MIN Number(20,4) NOT NULL,
HIGH_WATERMARK_MAX Number(20,4) NOT NULL,
HIGH_WATERMARK_STCNT varchar2(32) NOT NULL,
TOTAL_MSG_SPOOLED_MIN Number(20,4) NOT NULL,
TOTAL_MSG_SPOOLED_MAX Number(20,4) NOT NULL,
TOTAL_MSG_SPOOLED_STCNT varchar2(32) NOT NULL,
TOTAL_SUBSCRIPTIONS_MIN Number(20,4) NOT NULL,
TOTAL_SUBSCRIPTIONS_MAX Number(20,4) NOT NULL,
TOTAL_SUBSCRIPTIONS_STCNT varchar2(32) NOT NULL,
SPOOL_USAGE_MIN Number(20,4) NOT NULL,
SPOOL_USAGE_MAX Number(20,4) NOT NULL,
SPOOL_USAGE_STCNT varchar2(32) NOT NULL,
CURRENT_CONSUMERS_MIN Number(20,4) NOT NULL,
CURRENT_CONSUMERS_MAX Number(20,4) NOT NULL,
CURRENT_CONSUMERS_STCNT varchar2(32) NOT NULL);

ALTER TABLE SolQueueStatTest_TREND ADD constraint PK_SolQueueStatTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE SolQueueStatTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolQueueStatTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
ENGR_CONFIG_STATUS_MIN VARCHAR2(256) NOT NULL,
ENGR_CONFIG_STATUS_MAX VARCHAR2(256) NOT NULL,
INGR_CONFIG_STATUS_MIN VARCHAR2(256) NOT NULL,
INGR_CONFIG_STATUS_MAX VARCHAR2(256) NOT NULL,
HIGH_WATERMARK_MIN VARCHAR2(256) NOT NULL,
HIGH_WATERMARK_MAX VARCHAR2(256) NOT NULL,
TOTAL_MSG_SPOOLED_MIN VARCHAR2(256) NOT NULL,
TOTAL_MSG_SPOOLED_MAX VARCHAR2(256) NOT NULL,
TOTAL_SUBSCRIPTIONS_MIN VARCHAR2(256) NOT NULL,
TOTAL_SUBSCRIPTIONS_MAX VARCHAR2(256) NOT NULL,
SPOOL_USAGE_MIN VARCHAR2(256) NOT NULL,
SPOOL_USAGE_MAX VARCHAR2(256) NOT NULL,
CURRENT_CONSUMERS_MIN VARCHAR2(256) NOT NULL,
CURRENT_CONSUMERS_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE SolQueueStatTest_THRESH ADD constraint PK_SolQueueStatTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolQueueStatTest_THRESH ON SolQueueStatTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolQueueStatTest ON SolQueueStatTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolQueueStatTest ON SolQueueStatTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE WVDLoginTest_REPORT;
CREATE TABLE WVDLoginTest_REPORT( 
	SESSION_KEY varchar2(128), 
	TRGT_HOST varchar2(32),  
	PORT_NO varchar2(32),  
	MSMT_TIME date NOT NULL,
	USERNAME varchar2(128) NOT NULL,
	GUESTNAME varchar2(128) NOT NULL,
	LOGIN_TIME date NOT NULL,
	DURATION Number (20,4) NOT NULL,
	ACTIVE_TIME Number (20,4) NOT NULL,
	IDLE_TIME Number (20,4) NOT NULL,
	CLIENT_IP_ADDRESS varchar2(128),
	CLIENT_NAME varchar2(128),
	CLIENT_ID varchar2(128),
	CLIENT_CATEGORY varchar2(128),
	CTX_STATE varchar2(128),
	HDX_DISPLAY_MODE varchar2(128),
	HDX_ACTIVE_ENCODER varchar2(128),
	HDX_PROTOCOL varchar2(128),
	ENCRYPTION_LEVEL varchar2(128),
	NETSCALER_RPTNAME varchar2(128),
	NETSCALER_IP_ADDRESS varchar2(128),
	XENAPP_IP_ADDRESS varchar2(128),
	ENDPOINT_IP_ADDRESS varchar2(128),
	COUNTRY_NAME varchar2(128),
	COUNTRY_CODE varchar2(128),
	REGION varchar2(128),
	CITY varchar2(128),
	LATITUDE varchar2(128),
	LONGITUDE varchar2(128),
	LOGON_DURATION Number (20,4) NOT NULL,
	ACTUAL_LOGON_DURATION Number (20,4) NOT NULL,
	CPU_UTIL Number (20,4) NOT NULL,
	MEM_UTIL Number (20,4) NOT NULL,
	IO_READS Number (20,4) NOT NULL,
	IO_WRITES Number (20,4) NOT NULL,
	AVG_USER_INPUT_DELAY Number (20,4) NOT NULL,
	MAX_USER_INPUT_DELAY Number (20,4) NOT NULL,
	CURRENT_TCP Number (20,4) NOT NULL,
	CURRENT_UDP Number (20,4) NOT NULL,
	FRAME_QUALITY Number (20,4) NOT NULL,
	CURRENT_TCP_BW Number (20,4) NOT NULL,
	CURRENT_UDP_BW Number (20,4) NOT NULL
);	
CREATE INDEX IDX_WVDLoginTest_REPORT ON WVDLoginTest_REPORT(MSMT_TIME);
CREATE INDEX IDX1_WVDLoginTest_REPORT ON WVDLoginTest_REPORT(SESSION_KEY, TRGT_HOST);

DROP TABLE SolaceUptimeTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceUptimeTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
REBOOTED                                          NUMBER(20,4) NOT NULL, 
REBOOTED_ST                                       VARCHAR2(32) NOT NULL, 
UPTIME                                            NUMBER(20,4) NOT NULL, 
UPTIME_ST                                         VARCHAR2(32) NOT NULL, 
TOTAL_UPTIME                                      NUMBER(20,4) NOT NULL, 
TOTAL_UPTIME_ST                                   VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceUptimeTest ON SolaceUptimeTest(MSMT_TIME);
ALTER TABLE SolaceUptimeTest ADD constraint PK_SolaceUptimeTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceUptimeTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceUptimeTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
REBOOTED_MIN                                      NUMBER(20,4) NOT NULL, 
REBOOTED_MAX                                      NUMBER(20,4) NOT NULL, 
REBOOTED_STCNT                                    VARCHAR2(32) NOT NULL, 
UPTIME_MIN                                        NUMBER(20,4) NOT NULL, 
UPTIME_MAX                                        NUMBER(20,4) NOT NULL, 
UPTIME_STCNT                                      VARCHAR2(32) NOT NULL, 
TOTAL_UPTIME_MIN                                  NUMBER(20,4) NOT NULL, 
TOTAL_UPTIME_MAX                                  NUMBER(20,4) NOT NULL, 
TOTAL_UPTIME_STCNT                                VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceUptimeTest_TREND ADD constraint PK_SolaceUptimeTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceUptimeTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceUptimeTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
REBOOTED_MIN                                      VARCHAR2(256) NOT NULL, 
REBOOTED_MAX                                      VARCHAR2(256) NOT NULL, 
UPTIME_MIN                                        VARCHAR2(256) NOT NULL, 
UPTIME_MAX                                        VARCHAR2(256) NOT NULL, 
TOTAL_UPTIME_MIN                                  VARCHAR2(256) NOT NULL, 
TOTAL_UPTIME_MAX                                  VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceUptimeTest_THRESH ADD constraint PK_SolaceUptimeTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceUptimeTest_THRESH ON SolaceUptimeTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceUptimeTest ON SolaceUptimeTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceUptimeTest ON SolaceUptimeTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceAvailTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceAvailTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
AVAILABILITY                                      NUMBER(20,4) NOT NULL, 
AVAILABILITY_ST                                   VARCHAR2(32) NOT NULL, 
RESPONSE_TIME                                     NUMBER(20,4) NOT NULL, 
RESPONSE_TIME_ST                                  VARCHAR2(32) NOT NULL, 
RESPONSE_CODE                                     NUMBER(20,4) NOT NULL, 
RESPONSE_CODE_ST                                  VARCHAR2(32) NOT NULL, 
CONTENT_LENGTH                                    NUMBER(20,4) NOT NULL, 
CONTENT_LENGTH_ST                                 VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceAvailTest ON SolaceAvailTest(MSMT_TIME);
ALTER TABLE SolaceAvailTest ADD constraint PK_SolaceAvailTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceAvailTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceAvailTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
AVAILABILITY_MIN                                  NUMBER(20,4) NOT NULL, 
AVAILABILITY_MAX                                  NUMBER(20,4) NOT NULL, 
AVAILABILITY_STCNT                                VARCHAR2(32) NOT NULL, 
RESPONSE_TIME_MIN                                 NUMBER(20,4) NOT NULL, 
RESPONSE_TIME_MAX                                 NUMBER(20,4) NOT NULL, 
RESPONSE_TIME_STCNT                               VARCHAR2(32) NOT NULL, 
RESPONSE_CODE_MIN                                 NUMBER(20,4) NOT NULL, 
RESPONSE_CODE_MAX                                 NUMBER(20,4) NOT NULL, 
RESPONSE_CODE_STCNT                               VARCHAR2(32) NOT NULL, 
CONTENT_LENGTH_MIN                                NUMBER(20,4) NOT NULL, 
CONTENT_LENGTH_MAX                                NUMBER(20,4) NOT NULL, 
CONTENT_LENGTH_STCNT                              VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceAvailTest_TREND ADD constraint PK_SolaceAvailTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceAvailTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceAvailTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
AVAILABILITY_MIN                                  VARCHAR2(256) NOT NULL, 
AVAILABILITY_MAX                                  VARCHAR2(256) NOT NULL, 
RESPONSE_TIME_MIN                                 VARCHAR2(256) NOT NULL, 
RESPONSE_TIME_MAX                                 VARCHAR2(256) NOT NULL, 
RESPONSE_CODE_MIN                                 VARCHAR2(256) NOT NULL, 
RESPONSE_CODE_MAX                                 VARCHAR2(256) NOT NULL, 
CONTENT_LENGTH_MIN                                VARCHAR2(256) NOT NULL, 
CONTENT_LENGTH_MAX                                VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceAvailTest_THRESH ADD constraint PK_SolaceAvailTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceAvailTest_THRESH ON SolaceAvailTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceAvailTest ON SolaceAvailTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceAvailTest ON SolaceAvailTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceInterfaceTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceInterfaceTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
OPER_STATUS                                       NUMBER(20,4) NOT NULL, 
OPER_STATUS_ST                                    VARCHAR2(32) NOT NULL, 
PACKET_RCVD                                       NUMBER(20,4) NOT NULL, 
PACKET_RCVD_ST                                    VARCHAR2(32) NOT NULL, 
PACKET_TXMTD                                      NUMBER(20,4) NOT NULL, 
PACKET_TXMTD_ST                                   VARCHAR2(32) NOT NULL, 
DATA_RCVD                                         NUMBER(20,4) NOT NULL, 
DATA_RCVD_ST                                      VARCHAR2(32) NOT NULL, 
DATA_TXMTD                                        NUMBER(20,4) NOT NULL, 
DATA_TXMTD_ST                                     VARCHAR2(32) NOT NULL, 
OPER_MODE                                              NUMBER(20,4) NOT NULL, 
OPER_MODE_ST                                           VARCHAR2(32) NOT NULL, 
OPERATIONA_MEMBER                                 NUMBER(20,4) NOT NULL, 
OPERATIONA_MEMBER_ST                              VARCHAR2(32) NOT NULL, 
CONFIGURED_MEMBER                                 NUMBER(20,4) NOT NULL, 
CONFIGURED_MEMBER_ST                              VARCHAR2(32) NOT NULL, 
AVAILABLE_MEMBER                                  NUMBER(20,4) NOT NULL, 
AVAILABLE_MEMBER_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_MEMBER                                    NUMBER(20,4) NOT NULL, 
PRIMARY_MEMBER_ST                                 VARCHAR2(32) NOT NULL, 
FRAG_IP_PKT_DROP                                  NUMBER(20,4) NOT NULL, 
FRAG_IP_PKT_DROP_ST                               VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceInterfaceTest ON SolaceInterfaceTest(MSMT_TIME);
ALTER TABLE SolaceInterfaceTest ADD constraint PK_SolaceInterfaceTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceInterfaceTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceInterfaceTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
OPER_STATUS_MIN                                   NUMBER(20,4) NOT NULL, 
OPER_STATUS_MAX                                   NUMBER(20,4) NOT NULL, 
OPER_STATUS_STCNT                                 VARCHAR2(32) NOT NULL, 
PACKET_RCVD_MIN                                   NUMBER(20,4) NOT NULL, 
PACKET_RCVD_MAX                                   NUMBER(20,4) NOT NULL, 
PACKET_RCVD_STCNT                                 VARCHAR2(32) NOT NULL, 
PACKET_TXMTD_MIN                                  NUMBER(20,4) NOT NULL, 
PACKET_TXMTD_MAX                                  NUMBER(20,4) NOT NULL, 
PACKET_TXMTD_STCNT                                VARCHAR2(32) NOT NULL, 
DATA_RCVD_MIN                                     NUMBER(20,4) NOT NULL, 
DATA_RCVD_MAX                                     NUMBER(20,4) NOT NULL, 
DATA_RCVD_STCNT                                   VARCHAR2(32) NOT NULL, 
DATA_TXMTD_MIN                                    NUMBER(20,4) NOT NULL, 
DATA_TXMTD_MAX                                    NUMBER(20,4) NOT NULL, 
DATA_TXMTD_STCNT                                  VARCHAR2(32) NOT NULL, 
OPER_MODE_MIN                                          NUMBER(20,4) NOT NULL, 
OPER_MODE_MAX                                          NUMBER(20,4) NOT NULL, 
OPER_MODE_STCNT                                        VARCHAR2(32) NOT NULL, 
OPERATIONA_MEMBER_MIN                             NUMBER(20,4) NOT NULL, 
OPERATIONA_MEMBER_MAX                             NUMBER(20,4) NOT NULL, 
OPERATIONA_MEMBER_STCNT                           VARCHAR2(32) NOT NULL, 
CONFIGURED_MEMBER_MIN                             NUMBER(20,4) NOT NULL, 
CONFIGURED_MEMBER_MAX                             NUMBER(20,4) NOT NULL, 
CONFIGURED_MEMBER_STCNT                           VARCHAR2(32) NOT NULL, 
AVAILABLE_MEMBER_MIN                              NUMBER(20,4) NOT NULL, 
AVAILABLE_MEMBER_MAX                              NUMBER(20,4) NOT NULL, 
AVAILABLE_MEMBER_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_MEMBER_MIN                                NUMBER(20,4) NOT NULL, 
PRIMARY_MEMBER_MAX                                NUMBER(20,4) NOT NULL, 
PRIMARY_MEMBER_STCNT                              VARCHAR2(32) NOT NULL, 
FRAG_IP_PKT_DROP_MIN                              NUMBER(20,4) NOT NULL, 
FRAG_IP_PKT_DROP_MAX                              NUMBER(20,4) NOT NULL, 
FRAG_IP_PKT_DROP_STCNT                            VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceInterfaceTest_TREND ADD constraint PK_SolaceInterfaceTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceInterfaceTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceInterfaceTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
OPER_STATUS_MIN                                   VARCHAR2(256) NOT NULL, 
OPER_STATUS_MAX                                   VARCHAR2(256) NOT NULL, 
PACKET_RCVD_MIN                                   VARCHAR2(256) NOT NULL, 
PACKET_RCVD_MAX                                   VARCHAR2(256) NOT NULL, 
PACKET_TXMTD_MIN                                  VARCHAR2(256) NOT NULL, 
PACKET_TXMTD_MAX                                  VARCHAR2(256) NOT NULL, 
DATA_RCVD_MIN                                     VARCHAR2(256) NOT NULL, 
DATA_RCVD_MAX                                     VARCHAR2(256) NOT NULL, 
DATA_TXMTD_MIN                                    VARCHAR2(256) NOT NULL, 
DATA_TXMTD_MAX                                    VARCHAR2(256) NOT NULL, 
OPER_MODE_MIN                                          VARCHAR2(256) NOT NULL, 
OPER_MODE_MAX                                          VARCHAR2(256) NOT NULL, 
OPERATIONA_MEMBER_MIN                             VARCHAR2(256) NOT NULL, 
OPERATIONA_MEMBER_MAX                             VARCHAR2(256) NOT NULL, 
CONFIGURED_MEMBER_MIN                             VARCHAR2(256) NOT NULL, 
CONFIGURED_MEMBER_MAX                             VARCHAR2(256) NOT NULL, 
AVAILABLE_MEMBER_MIN                              VARCHAR2(256) NOT NULL, 
AVAILABLE_MEMBER_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_MEMBER_MIN                                VARCHAR2(256) NOT NULL, 
PRIMARY_MEMBER_MAX                                VARCHAR2(256) NOT NULL, 
FRAG_IP_PKT_DROP_MIN                              VARCHAR2(256) NOT NULL, 
FRAG_IP_PKT_DROP_MAX                              VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceInterfaceTest_THRESH ADD constraint PK_SolaceInterfaceTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceInterfaceTest_THRESH ON SolaceInterfaceTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceInterfaceTest ON SolaceInterfaceTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceInterfaceTest ON SolaceInterfaceTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMemoryTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMemoryTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
TOTAL_PHYSICAL_MEMORY                             NUMBER(20,4) NOT NULL, 
TOTAL_PHYSICAL_MEMORY_ST                          VARCHAR2(32) NOT NULL, 
USED_PHYSICAL_MEMORY                              NUMBER(20,4) NOT NULL, 
USED_PHYSICAL_MEMORY_ST                           VARCHAR2(32) NOT NULL, 
FREE_PHYSICAL_MEMORY                              NUMBER(20,4) NOT NULL, 
FREE_PHYSICAL_MEMORY_ST                           VARCHAR2(32) NOT NULL, 
BUFFER_MEMORY                                     NUMBER(20,4) NOT NULL, 
BUFFER_MEMORY_ST                                  VARCHAR2(32) NOT NULL, 
CACHE_MEMORY                                      NUMBER(20,4) NOT NULL, 
CACHE_MEMORY_ST                                   VARCHAR2(32) NOT NULL, 
PHYSICAL_MEM_USAGE                                NUMBER(20,4) NOT NULL, 
PHYSICAL_MEM_USAGE_ST                             VARCHAR2(32) NOT NULL, 
TOTAL_SWAP_MEMORY                                 NUMBER(20,4) NOT NULL, 
TOTAL_SWAP_MEMORY_ST                              VARCHAR2(32) NOT NULL, 
USED_SWAP_MEMORY                                  NUMBER(20,4) NOT NULL, 
USED_SWAP_MEMORY_ST                               VARCHAR2(32) NOT NULL, 
FREE_SWAP_MEMORY                                  NUMBER(20,4) NOT NULL, 
FREE_SWAP_MEMORY_ST                               VARCHAR2(32) NOT NULL, 
SWAP_MEM_USAGE                                    NUMBER(20,4) NOT NULL, 
SWAP_MEM_USAGE_ST                                 VARCHAR2(32) NOT NULL, 
TOTAL_SUB_MEMORY                                  NUMBER(20,4) NOT NULL, 
TOTAL_SUB_MEMORY_ST                               VARCHAR2(32) NOT NULL, 
USED_SUB_MEMORY                                   NUMBER(20,4) NOT NULL, 
USED_SUB_MEMORY_ST                                VARCHAR2(32) NOT NULL, 
FREE_SUB_MEMORY                                   NUMBER(20,4) NOT NULL, 
FREE_SUB_MEMORY_ST                                VARCHAR2(32) NOT NULL, 
SUB_MEM_USAGE                                     NUMBER(20,4) NOT NULL, 
SUB_MEM_USAGE_ST                                  VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMemoryTest ON SolaceMemoryTest(MSMT_TIME);
ALTER TABLE SolaceMemoryTest ADD constraint PK_SolaceMemoryTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMemoryTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMemoryTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
TOTAL_PHYSICAL_MEMORY_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_PHYSICAL_MEMORY_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_PHYSICAL_MEMORY_STCNT                       VARCHAR2(32) NOT NULL, 
USED_PHYSICAL_MEMORY_MIN                          NUMBER(20,4) NOT NULL, 
USED_PHYSICAL_MEMORY_MAX                          NUMBER(20,4) NOT NULL, 
USED_PHYSICAL_MEMORY_STCNT                        VARCHAR2(32) NOT NULL, 
FREE_PHYSICAL_MEMORY_MIN                          NUMBER(20,4) NOT NULL, 
FREE_PHYSICAL_MEMORY_MAX                          NUMBER(20,4) NOT NULL, 
FREE_PHYSICAL_MEMORY_STCNT                        VARCHAR2(32) NOT NULL, 
BUFFER_MEMORY_MIN                                 NUMBER(20,4) NOT NULL, 
BUFFER_MEMORY_MAX                                 NUMBER(20,4) NOT NULL, 
BUFFER_MEMORY_STCNT                               VARCHAR2(32) NOT NULL, 
CACHE_MEMORY_MIN                                  NUMBER(20,4) NOT NULL, 
CACHE_MEMORY_MAX                                  NUMBER(20,4) NOT NULL, 
CACHE_MEMORY_STCNT                                VARCHAR2(32) NOT NULL, 
PHYSICAL_MEM_USAGE_MIN                            NUMBER(20,4) NOT NULL, 
PHYSICAL_MEM_USAGE_MAX                            NUMBER(20,4) NOT NULL, 
PHYSICAL_MEM_USAGE_STCNT                          VARCHAR2(32) NOT NULL, 
TOTAL_SWAP_MEMORY_MIN                             NUMBER(20,4) NOT NULL, 
TOTAL_SWAP_MEMORY_MAX                             NUMBER(20,4) NOT NULL, 
TOTAL_SWAP_MEMORY_STCNT                           VARCHAR2(32) NOT NULL, 
USED_SWAP_MEMORY_MIN                              NUMBER(20,4) NOT NULL, 
USED_SWAP_MEMORY_MAX                              NUMBER(20,4) NOT NULL, 
USED_SWAP_MEMORY_STCNT                            VARCHAR2(32) NOT NULL, 
FREE_SWAP_MEMORY_MIN                              NUMBER(20,4) NOT NULL, 
FREE_SWAP_MEMORY_MAX                              NUMBER(20,4) NOT NULL, 
FREE_SWAP_MEMORY_STCNT                            VARCHAR2(32) NOT NULL, 
SWAP_MEM_USAGE_MIN                                NUMBER(20,4) NOT NULL, 
SWAP_MEM_USAGE_MAX                                NUMBER(20,4) NOT NULL, 
SWAP_MEM_USAGE_STCNT                              VARCHAR2(32) NOT NULL, 
TOTAL_SUB_MEMORY_MIN                              NUMBER(20,4) NOT NULL, 
TOTAL_SUB_MEMORY_MAX                              NUMBER(20,4) NOT NULL, 
TOTAL_SUB_MEMORY_STCNT                            VARCHAR2(32) NOT NULL, 
USED_SUB_MEMORY_MIN                               NUMBER(20,4) NOT NULL, 
USED_SUB_MEMORY_MAX                               NUMBER(20,4) NOT NULL, 
USED_SUB_MEMORY_STCNT                             VARCHAR2(32) NOT NULL, 
FREE_SUB_MEMORY_MIN                               NUMBER(20,4) NOT NULL, 
FREE_SUB_MEMORY_MAX                               NUMBER(20,4) NOT NULL, 
FREE_SUB_MEMORY_STCNT                             VARCHAR2(32) NOT NULL, 
SUB_MEM_USAGE_MIN                                 NUMBER(20,4) NOT NULL, 
SUB_MEM_USAGE_MAX                                 NUMBER(20,4) NOT NULL, 
SUB_MEM_USAGE_STCNT                               VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMemoryTest_TREND ADD constraint PK_SolaceMemoryTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMemoryTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMemoryTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
TOTAL_PHYSICAL_MEMORY_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_PHYSICAL_MEMORY_MAX                         VARCHAR2(256) NOT NULL, 
USED_PHYSICAL_MEMORY_MIN                          VARCHAR2(256) NOT NULL, 
USED_PHYSICAL_MEMORY_MAX                          VARCHAR2(256) NOT NULL, 
FREE_PHYSICAL_MEMORY_MIN                          VARCHAR2(256) NOT NULL, 
FREE_PHYSICAL_MEMORY_MAX                          VARCHAR2(256) NOT NULL, 
BUFFER_MEMORY_MIN                                 VARCHAR2(256) NOT NULL, 
BUFFER_MEMORY_MAX                                 VARCHAR2(256) NOT NULL, 
CACHE_MEMORY_MIN                                  VARCHAR2(256) NOT NULL, 
CACHE_MEMORY_MAX                                  VARCHAR2(256) NOT NULL, 
PHYSICAL_MEM_USAGE_MIN                            VARCHAR2(256) NOT NULL, 
PHYSICAL_MEM_USAGE_MAX                            VARCHAR2(256) NOT NULL, 
TOTAL_SWAP_MEMORY_MIN                             VARCHAR2(256) NOT NULL, 
TOTAL_SWAP_MEMORY_MAX                             VARCHAR2(256) NOT NULL, 
USED_SWAP_MEMORY_MIN                              VARCHAR2(256) NOT NULL, 
USED_SWAP_MEMORY_MAX                              VARCHAR2(256) NOT NULL, 
FREE_SWAP_MEMORY_MIN                              VARCHAR2(256) NOT NULL, 
FREE_SWAP_MEMORY_MAX                              VARCHAR2(256) NOT NULL, 
SWAP_MEM_USAGE_MIN                                VARCHAR2(256) NOT NULL, 
SWAP_MEM_USAGE_MAX                                VARCHAR2(256) NOT NULL, 
TOTAL_SUB_MEMORY_MIN                              VARCHAR2(256) NOT NULL, 
TOTAL_SUB_MEMORY_MAX                              VARCHAR2(256) NOT NULL, 
USED_SUB_MEMORY_MIN                               VARCHAR2(256) NOT NULL, 
USED_SUB_MEMORY_MAX                               VARCHAR2(256) NOT NULL, 
FREE_SUB_MEMORY_MIN                               VARCHAR2(256) NOT NULL, 
FREE_SUB_MEMORY_MAX                               VARCHAR2(256) NOT NULL, 
SUB_MEM_USAGE_MIN                                 VARCHAR2(256) NOT NULL, 
SUB_MEM_USAGE_MAX                                 VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMemoryTest_THRESH ADD constraint PK_SolaceMemoryTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMemoryTest_THRESH ON SolaceMemoryTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMemoryTest ON SolaceMemoryTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMemoryTest ON SolaceMemoryTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgSpoolTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgSpoolTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
CONFIG_STATUS                                     NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_ST                                  VARCHAR2(32) NOT NULL, 
OPER_STATUS                                       NUMBER(20,4) NOT NULL, 
OPER_STATUS_ST                                    VARCHAR2(32) NOT NULL,
GURANTEED_MSG_SUPT                                NUMBER(20,4) NOT NULL, 
GURANTEED_MSG_SUPT_ST                             VARCHAR2(32) NOT NULL, 
DATAPATH_STATUS                                   NUMBER(20,4) NOT NULL, 
DATAPATH_STATUS_ST                                VARCHAR2(32) NOT NULL, 
SYNC_STATUS                                       NUMBER(20,4) NOT NULL, 
SYNC_STATUS_ST                                    VARCHAR2(32) NOT NULL, 
DFRAG_STATUS                                      NUMBER(20,4) NOT NULL, 
DFRAG_STATUS_ST                                   VARCHAR2(32) NOT NULL, 
DEL_IN_PROGRESS                                   NUMBER(20,4) NOT NULL, 
DEL_IN_PROGRESS_ST                                VARCHAR2(32) NOT NULL, 
RFAD_MSG_SPOOLED                                  NUMBER(20,4) NOT NULL, 
RFAD_MSG_SPOOLED_ST                               VARCHAR2(32) NOT NULL, 
DISK_MSG_SPOOLED                                  NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOLED_ST                               VARCHAR2(32) NOT NULL, 
TOTAL_MSG_SPOOLED                                 NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_ST                              VARCHAR2(32) NOT NULL, 
SPOOL_FILE_UTIL                                   NUMBER(20,4) NOT NULL, 
SPOOL_FILE_UTIL_ST                                VARCHAR2(32) NOT NULL, 
ACTIVE_DSKPART_UTIL                               NUMBER(20,4) NOT NULL, 
ACTIVE_DSKPART_UTIL_ST                            VARCHAR2(32) NOT NULL, 
TRANS_SESS_COUNT_UTIL                             NUMBER(20,4) NOT NULL, 
TRANS_SESS_COUNT_UTIL_ST                          VARCHAR2(32) NOT NULL, 
TRANS_SESS_RESRC_UTIL                             NUMBER(20,4) NOT NULL, 
TRANS_SESS_RESRC_UTIL_ST                          VARCHAR2(32) NOT NULL, 
RFAD_UTIL                                         NUMBER(20,4) NOT NULL, 
RFAD_UTIL_ST                                      VARCHAR2(32) NOT NULL, 
DISK_MSG_SPOOL_UTIL                               NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOL_UTIL_ST                            VARCHAR2(32) NOT NULL, 
PERSIST_UTIL                                      NUMBER(20,4) NOT NULL, 
PERSIST_UTIL_ST                                   VARCHAR2(32) NOT NULL, 
MSG_CNT_UTIL                                      NUMBER(20,4) NOT NULL, 
MSG_CNT_UTIL_ST                                   VARCHAR2(32) NOT NULL, 
TRANS_RSRC_UTIL                                   NUMBER(20,4) NOT NULL, 
TRANS_RSRC_UTIL_ST                                VARCHAR2(32) NOT NULL, 
DLVRD_UNACK_MSG_UTIL                              NUMBER(20,4) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_ST                           VARCHAR2(32) NOT NULL, 
DEFRAG_EST_FRAG                                   NUMBER(20,4) NOT NULL, 
DEFRAG_EST_FRAG_ST                                VARCHAR2(32) NOT NULL, 
DEFRAG_EST_RECOVER                                NUMBER(20,4) NOT NULL, 
DEFRAG_EST_RECOVER_ST                             VARCHAR2(32) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE                          NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_ST                       VARCHAR2(32) NOT NULL, 
MSGSPL_ENTITY_USED_DTE                            NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_ST                         VARCHAR2(32) NOT NULL, 
TRANS_SESS_USED                                   NUMBER(20,4) NOT NULL, 
TRANS_SESS_USED_ST                                VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgSpoolTest ON SolaceMsgSpoolTest(MSMT_TIME);
ALTER TABLE SolaceMsgSpoolTest ADD constraint PK_SolaceMsgSpoolTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgSpoolTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgSpoolTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
CONFIG_STATUS_MIN                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_MAX                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_STCNT                               VARCHAR2(32) NOT NULL, 
OPER_STATUS_MIN                                   NUMBER(20,4) NOT NULL, 
OPER_STATUS_MAX                                   NUMBER(20,4) NOT NULL, 
OPER_STATUS_STCNT                                 VARCHAR2(32) NOT NULL,
GURANTEED_MSG_SUPT_MIN                            NUMBER(20,4) NOT NULL, 
GURANTEED_MSG_SUPT_MAX                            NUMBER(20,4) NOT NULL, 
GURANTEED_MSG_SUPT_STCNT                          VARCHAR2(32) NOT NULL, 
DATAPATH_STATUS_MIN                               NUMBER(20,4) NOT NULL, 
DATAPATH_STATUS_MAX                               NUMBER(20,4) NOT NULL, 
DATAPATH_STATUS_STCNT                             VARCHAR2(32) NOT NULL, 
SYNC_STATUS_MIN                                   NUMBER(20,4) NOT NULL, 
SYNC_STATUS_MAX                                   NUMBER(20,4) NOT NULL, 
SYNC_STATUS_STCNT                                 VARCHAR2(32) NOT NULL, 
DFRAG_STATUS_MIN                                  NUMBER(20,4) NOT NULL, 
DFRAG_STATUS_MAX                                  NUMBER(20,4) NOT NULL, 
DFRAG_STATUS_STCNT                                VARCHAR2(32) NOT NULL, 
DEL_IN_PROGRESS_MIN                               NUMBER(20,4) NOT NULL, 
DEL_IN_PROGRESS_MAX                               NUMBER(20,4) NOT NULL, 
DEL_IN_PROGRESS_STCNT                             VARCHAR2(32) NOT NULL, 
RFAD_MSG_SPOOLED_MIN                              NUMBER(20,4) NOT NULL, 
RFAD_MSG_SPOOLED_MAX                              NUMBER(20,4) NOT NULL, 
RFAD_MSG_SPOOLED_STCNT                            VARCHAR2(32) NOT NULL, 
DISK_MSG_SPOOLED_MIN                              NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOLED_MAX                              NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOLED_STCNT                            VARCHAR2(32) NOT NULL, 
TOTAL_MSG_SPOOLED_MIN                             NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_MAX                             NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_STCNT                           VARCHAR2(32) NOT NULL,  
SPOOL_FILE_UTIL_MIN                               NUMBER(20,4) NOT NULL, 
SPOOL_FILE_UTIL_MAX                               NUMBER(20,4) NOT NULL, 
SPOOL_FILE_UTIL_STCNT                             VARCHAR2(32) NOT NULL, 
ACTIVE_DSKPART_UTIL_MIN                           NUMBER(20,4) NOT NULL, 
ACTIVE_DSKPART_UTIL_MAX                           NUMBER(20,4) NOT NULL, 
ACTIVE_DSKPART_UTIL_STCNT                         VARCHAR2(32) NOT NULL, 
TRANS_SESS_COUNT_UTIL_MIN                         NUMBER(20,4) NOT NULL, 
TRANS_SESS_COUNT_UTIL_MAX                         NUMBER(20,4) NOT NULL, 
TRANS_SESS_COUNT_UTIL_STCNT                       VARCHAR2(32) NOT NULL, 
TRANS_SESS_RESRC_UTIL_MIN                         NUMBER(20,4) NOT NULL, 
TRANS_SESS_RESRC_UTIL_MAX                         NUMBER(20,4) NOT NULL, 
TRANS_SESS_RESRC_UTIL_STCNT                       VARCHAR2(32) NOT NULL, 
RFAD_UTIL_MIN                                     NUMBER(20,4) NOT NULL, 
RFAD_UTIL_MAX                                     NUMBER(20,4) NOT NULL, 
RFAD_UTIL_STCNT                                   VARCHAR2(32) NOT NULL, 
DISK_MSG_SPOOL_UTIL_MIN                           NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOL_UTIL_MAX                           NUMBER(20,4) NOT NULL, 
DISK_MSG_SPOOL_UTIL_STCNT                         VARCHAR2(32) NOT NULL, 
PERSIST_UTIL_MIN                                  NUMBER(20,4) NOT NULL, 
PERSIST_UTIL_MAX                                  NUMBER(20,4) NOT NULL, 
PERSIST_UTIL_STCNT                                VARCHAR2(32) NOT NULL, 
MSG_CNT_UTIL_MIN                                  NUMBER(20,4) NOT NULL, 
MSG_CNT_UTIL_MAX                                  NUMBER(20,4) NOT NULL, 
MSG_CNT_UTIL_STCNT                                VARCHAR2(32) NOT NULL, 
TRANS_RSRC_UTIL_MIN                               NUMBER(20,4) NOT NULL, 
TRANS_RSRC_UTIL_MAX                               NUMBER(20,4) NOT NULL, 
TRANS_RSRC_UTIL_STCNT                             VARCHAR2(32) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_MIN                          NUMBER(20,4) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_MAX                          NUMBER(20,4) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_STCNT                        VARCHAR2(32) NOT NULL, 
DEFRAG_EST_FRAG_MIN                               NUMBER(20,4) NOT NULL, 
DEFRAG_EST_FRAG_MAX                               NUMBER(20,4) NOT NULL, 
DEFRAG_EST_FRAG_STCNT                             VARCHAR2(32) NOT NULL, 
DEFRAG_EST_RECOVER_MIN                            NUMBER(20,4) NOT NULL, 
DEFRAG_EST_RECOVER_MAX                            NUMBER(20,4) NOT NULL, 
DEFRAG_EST_RECOVER_STCNT                          VARCHAR2(32) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_MIN                      NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_MAX                      NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_STCNT                    VARCHAR2(32) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_MIN                        NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_MAX                        NUMBER(20,4) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_STCNT                      VARCHAR2(32) NOT NULL, 
TRANS_SESS_USED_MIN                               NUMBER(20,4) NOT NULL, 
TRANS_SESS_USED_MAX                               NUMBER(20,4) NOT NULL, 
TRANS_SESS_USED_STCNT                             VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgSpoolTest_TREND ADD constraint PK_SolaceMsgSpoolTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgSpoolTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgSpoolTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
CONFIG_STATUS_MIN                                 VARCHAR2(256) NOT NULL, 
CONFIG_STATUS_MAX                                 VARCHAR2(256) NOT NULL, 
OPER_STATUS_MIN                                   VARCHAR2(256) NOT NULL, 
OPER_STATUS_MAX                                   VARCHAR2(256) NOT NULL,
GURANTEED_MSG_SUPT_MIN                            VARCHAR2(256) NOT NULL, 
GURANTEED_MSG_SUPT_MAX                            VARCHAR2(256) NOT NULL, 
DATAPATH_STATUS_MIN                               VARCHAR2(256) NOT NULL, 
DATAPATH_STATUS_MAX                               VARCHAR2(256) NOT NULL, 
SYNC_STATUS_MIN                                   VARCHAR2(256) NOT NULL, 
SYNC_STATUS_MAX                                   VARCHAR2(256) NOT NULL, 
DFRAG_STATUS_MIN                                  VARCHAR2(256) NOT NULL, 
DFRAG_STATUS_MAX                                  VARCHAR2(256) NOT NULL, 
DEL_IN_PROGRESS_MIN                               VARCHAR2(256) NOT NULL, 
DEL_IN_PROGRESS_MAX                               VARCHAR2(256) NOT NULL, 
RFAD_MSG_SPOOLED_MIN                              VARCHAR2(256) NOT NULL, 
RFAD_MSG_SPOOLED_MAX                              VARCHAR2(256) NOT NULL, 
DISK_MSG_SPOOLED_MIN                              VARCHAR2(256) NOT NULL, 
DISK_MSG_SPOOLED_MAX                              VARCHAR2(256) NOT NULL, 
TOTAL_MSG_SPOOLED_MIN                             VARCHAR2(256) NOT NULL, 
TOTAL_MSG_SPOOLED_MAX                             VARCHAR2(256) NOT NULL,  
SPOOL_FILE_UTIL_MIN                               VARCHAR2(256) NOT NULL, 
SPOOL_FILE_UTIL_MAX                               VARCHAR2(256) NOT NULL, 
ACTIVE_DSKPART_UTIL_MIN                           VARCHAR2(256) NOT NULL, 
ACTIVE_DSKPART_UTIL_MAX                           VARCHAR2(256) NOT NULL, 
TRANS_SESS_COUNT_UTIL_MIN                         VARCHAR2(256) NOT NULL, 
TRANS_SESS_COUNT_UTIL_MAX                         VARCHAR2(256) NOT NULL, 
TRANS_SESS_RESRC_UTIL_MIN                         VARCHAR2(256) NOT NULL, 
TRANS_SESS_RESRC_UTIL_MAX                         VARCHAR2(256) NOT NULL, 
RFAD_UTIL_MIN                                     VARCHAR2(256) NOT NULL, 
RFAD_UTIL_MAX                                     VARCHAR2(256) NOT NULL, 
DISK_MSG_SPOOL_UTIL_MIN                           VARCHAR2(256) NOT NULL, 
DISK_MSG_SPOOL_UTIL_MAX                           VARCHAR2(256) NOT NULL, 
PERSIST_UTIL_MIN                                  VARCHAR2(256) NOT NULL, 
PERSIST_UTIL_MAX                                  VARCHAR2(256) NOT NULL, 
MSG_CNT_UTIL_MIN                                  VARCHAR2(256) NOT NULL, 
MSG_CNT_UTIL_MAX                                  VARCHAR2(256) NOT NULL, 
TRANS_RSRC_UTIL_MIN                               VARCHAR2(256) NOT NULL, 
TRANS_RSRC_UTIL_MAX                               VARCHAR2(256) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_MIN                          VARCHAR2(256) NOT NULL, 
DLVRD_UNACK_MSG_UTIL_MAX                          VARCHAR2(256) NOT NULL, 
DEFRAG_EST_FRAG_MIN                               VARCHAR2(256) NOT NULL, 
DEFRAG_EST_FRAG_MAX                               VARCHAR2(256) NOT NULL, 
DEFRAG_EST_RECOVER_MIN                            VARCHAR2(256) NOT NULL, 
DEFRAG_EST_RECOVER_MAX                            VARCHAR2(256) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_MIN                      VARCHAR2(256) NOT NULL, 
MSGSPL_ENTITY_USED_QUEUE_MAX                      VARCHAR2(256) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_MIN                        VARCHAR2(256) NOT NULL, 
MSGSPL_ENTITY_USED_DTE_MAX                        VARCHAR2(256) NOT NULL, 
TRANS_SESS_USED_MIN                               VARCHAR2(256) NOT NULL, 
TRANS_SESS_USED_MAX                               VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgSpoolTest_THRESH ADD constraint PK_SolaceMsgSpoolTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgSpoolTest_THRESH ON SolaceMsgSpoolTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgSpoolTest ON SolaceMsgSpoolTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgSpoolTest ON SolaceMsgSpoolTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE SolaceSysClientTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysClientTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
TOTAL_CLIENTS                                     NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_ST                                  VARCHAR2(32) NOT NULL, 
CONNECTED_CLIENTS                                 NUMBER(20,4) NOT NULL, 
CONNECTED_CLIENTS_ST                              VARCHAR2(32) NOT NULL, 
MQTT_CLIENTS_CONNECTED                            NUMBER(20,4) NOT NULL, 
MQTT_CLIENTS_CONNECTED_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED                      NUMBER(20,4) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_ST                   VARCHAR2(32) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED                       NUMBER(20,4) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_ST                    VARCHAR2(32) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED               NUMBER(20,4) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_ST            VARCHAR2(32) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION          NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_ST       VARCHAR2(32) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED                       NUMBER(20,4) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_ST                    VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED                       NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_ST                    VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED                    NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_ST                 VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED                    NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_ST                 VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED                 NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_ST              VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED                      NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_ST                   VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED                   NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_ST                VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED                   NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_ST                VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED                NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_ST             VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED                  NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_ST               VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED               NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_ST            VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED               NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_ST            VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED            NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_ST         VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED              NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_ST           VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED           NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_ST        VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED           NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_ST        VARCHAR2(32) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS                          NUMBER(20,4) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_ST                       VARCHAR2(32) NOT NULL, 
INGRESS_BYTE_RATE                                 NUMBER(20,4) NOT NULL, 
INGRESS_BYTE_RATE_ST                              VARCHAR2(32) NOT NULL, 
INGRESS_RATE                                      NUMBER(20,4) NOT NULL, 
INGRESS_RATE_ST                                   VARCHAR2(32) NOT NULL, 
TOTAL_INGRESS_DISCARDS                            NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_ST                         VARCHAR2(32) NOT NULL, 
NO_SUBSCRIPTION_MATCH                             NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_ST                          VARCHAR2(32) NOT NULL, 
TOPIC_PARSE_ERROR                                 NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_ST                              VARCHAR2(32) NOT NULL, 
PARSE_ERROR                                       NUMBER(20,4) NOT NULL, 
PARSE_ERROR_ST                                    VARCHAR2(32) NOT NULL, 
TOO_BIG_MESSAGES                                  NUMBER(20,4) NOT NULL, 
TOO_BIG_MESSAGES_ST                               VARCHAR2(32) NOT NULL, 
TTL_EXCEEDED                                      NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_ST                                   VARCHAR2(32) NOT NULL, 
WEB_PARSE_ERROR                                   NUMBER(20,4) NOT NULL, 
WEB_PARSE_ERROR_ST                                VARCHAR2(32) NOT NULL, 
PUBLISH_TOPIC_ACL                                 NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_ST                              VARCHAR2(32) NOT NULL, 
MESSAGESPOOL_DISCARDS                             NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_DISCARDS_ST                          VARCHAR2(32) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION                      NUMBER(20,4) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_ST                   VARCHAR2(32) NOT NULL, 
MESSAGESPOOL_CONGESTION                           NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_CONGESTION_ST                        VARCHAR2(32) NOT NULL, 
EGRESS_BYTE_RATE                                  NUMBER(20,4) NOT NULL, 
EGRESS_BYTE_RATE_ST                               VARCHAR2(32) NOT NULL, 
EGRESS_RATE                                       NUMBER(20,4) NOT NULL, 
EGRESS_RATE_ST                                    VARCHAR2(32) NOT NULL, 
TOTAL_EGRESS_DISCARDS                             NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_ST                          VARCHAR2(32) NOT NULL, 
TRANSMIT_CONGESTION                               NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_ST                            VARCHAR2(32) NOT NULL, 
COMPRESSION_CONGESTION                            NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_ST                         VARCHAR2(32) NOT NULL, 
MESSAGES_ELIDED                                   NUMBER(20,4) NOT NULL, 
MESSAGES_ELIDED_ST                                VARCHAR2(32) NOT NULL, 
EGRESS_TTL_EXCEEDED                               NUMBER(20,4) NOT NULL, 
EGRESS_TTL_EXCEEDED_ST                            VARCHAR2(32) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED                    NUMBER(20,4) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_ST                 VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION               NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_ST            VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION                    NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_ST                 VARCHAR2(32) NOT NULL, 
CLIENTS_NOT_CONNECTED                             NUMBER(20,4) NOT NULL, 
CLIENTS_NOT_CONNECTED_ST                          VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS                      NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_ST                   VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceSysClientTest ON SolaceSysClientTest(MSMT_TIME);
ALTER TABLE SolaceSysClientTest ADD constraint PK_SolaceSysClientTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceSysClientTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysClientTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
TOTAL_CLIENTS_MIN                                 NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_MAX                                 NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_STCNT                               VARCHAR2(32) NOT NULL, 
CONNECTED_CLIENTS_MIN                             NUMBER(20,4) NOT NULL, 
CONNECTED_CLIENTS_MAX                             NUMBER(20,4) NOT NULL, 
CONNECTED_CLIENTS_STCNT                           VARCHAR2(32) NOT NULL, 
MQTT_CLIENTS_CONNECTED_MIN                        NUMBER(20,4) NOT NULL, 
MQTT_CLIENTS_CONNECTED_MAX                        NUMBER(20,4) NOT NULL, 
MQTT_CLIENTS_CONNECTED_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_MIN                  NUMBER(20,4) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_MAX                  NUMBER(20,4) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_STCNT                VARCHAR2(32) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_MIN                   NUMBER(20,4) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_MAX                   NUMBER(20,4) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_STCNT                 VARCHAR2(32) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_MIN           NUMBER(20,4) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_MAX           NUMBER(20,4) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_STCNT         VARCHAR2(32) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_MIN      NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_MAX      NUMBER(20,4) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_STCNT    VARCHAR2(32) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_MIN                   NUMBER(20,4) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_MAX                   NUMBER(20,4) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_STCNT                 VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_MIN                   NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_MAX                   NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_STCNT                 VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_MIN                NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_MAX                NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_STCNT              VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_MIN                NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_MAX                NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_STCNT              VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_MIN             NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_MAX             NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_STCNT           VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_MIN                  NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_MAX                  NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_STCNT                VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_MIN               NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_MAX               NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_STCNT             VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_MIN               NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_MAX               NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_STCNT             VARCHAR2(32) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_MIN            NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_MAX            NUMBER(20,4) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_STCNT          VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_MIN              NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_MAX              NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_STCNT            VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_MIN           NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_MAX           NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_STCNT         VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_MIN           NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_MAX           NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_STCNT         VARCHAR2(32) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_MIN        NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_MAX        NUMBER(20,4) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_STCNT      VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_MIN          NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_MAX          NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_STCNT        VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_MIN       NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_MAX       NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_STCNT     VARCHAR2(32) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_MIN       NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_MAX       NUMBER(20,4) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_STCNT     VARCHAR2(32) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_MIN                      NUMBER(20,4) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_MAX                      NUMBER(20,4) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_STCNT                    VARCHAR2(32) NOT NULL, 
INGRESS_BYTE_RATE_MIN                             NUMBER(20,4) NOT NULL, 
INGRESS_BYTE_RATE_MAX                             NUMBER(20,4) NOT NULL, 
INGRESS_BYTE_RATE_STCNT                           VARCHAR2(32) NOT NULL, 
INGRESS_RATE_MIN                                  NUMBER(20,4) NOT NULL, 
INGRESS_RATE_MAX                                  NUMBER(20,4) NOT NULL, 
INGRESS_RATE_STCNT                                VARCHAR2(32) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_STCNT                      VARCHAR2(32) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MIN                         NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MAX                         NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_STCNT                       VARCHAR2(32) NOT NULL, 
TOPIC_PARSE_ERROR_MIN                             NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_MAX                             NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_STCNT                           VARCHAR2(32) NOT NULL, 
PARSE_ERROR_MIN                                   NUMBER(20,4) NOT NULL, 
PARSE_ERROR_MAX                                   NUMBER(20,4) NOT NULL, 
PARSE_ERROR_STCNT                                 VARCHAR2(32) NOT NULL, 
TOO_BIG_MESSAGES_MIN                              NUMBER(20,4) NOT NULL, 
TOO_BIG_MESSAGES_MAX                              NUMBER(20,4) NOT NULL, 
TOO_BIG_MESSAGES_STCNT                            VARCHAR2(32) NOT NULL, 
TTL_EXCEEDED_MIN                                  NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_MAX                                  NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_STCNT                                VARCHAR2(32) NOT NULL, 
WEB_PARSE_ERROR_MIN                               NUMBER(20,4) NOT NULL, 
WEB_PARSE_ERROR_MAX                               NUMBER(20,4) NOT NULL, 
WEB_PARSE_ERROR_STCNT                             VARCHAR2(32) NOT NULL, 
PUBLISH_TOPIC_ACL_MIN                             NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_MAX                             NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_STCNT                           VARCHAR2(32) NOT NULL, 
MESSAGESPOOL_DISCARDS_MIN                         NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_DISCARDS_MAX                         NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_DISCARDS_STCNT                       VARCHAR2(32) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_MIN                  NUMBER(20,4) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_MAX                  NUMBER(20,4) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_STCNT                VARCHAR2(32) NOT NULL, 
MESSAGESPOOL_CONGESTION_MIN                       NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_CONGESTION_MAX                       NUMBER(20,4) NOT NULL, 
MESSAGESPOOL_CONGESTION_STCNT                     VARCHAR2(32) NOT NULL, 
EGRESS_BYTE_RATE_MIN                              NUMBER(20,4) NOT NULL, 
EGRESS_BYTE_RATE_MAX                              NUMBER(20,4) NOT NULL, 
EGRESS_BYTE_RATE_STCNT                            VARCHAR2(32) NOT NULL, 
EGRESS_RATE_MIN                                   NUMBER(20,4) NOT NULL, 
EGRESS_RATE_MAX                                   NUMBER(20,4) NOT NULL, 
EGRESS_RATE_STCNT                                 VARCHAR2(32) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_STCNT                       VARCHAR2(32) NOT NULL, 
TRANSMIT_CONGESTION_MIN                           NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_MAX                           NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_STCNT                         VARCHAR2(32) NOT NULL, 
COMPRESSION_CONGESTION_MIN                        NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_MAX                        NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_STCNT                      VARCHAR2(32) NOT NULL, 
MESSAGES_ELIDED_MIN                               NUMBER(20,4) NOT NULL, 
MESSAGES_ELIDED_MAX                               NUMBER(20,4) NOT NULL, 
MESSAGES_ELIDED_STCNT                             VARCHAR2(32) NOT NULL, 
EGRESS_TTL_EXCEEDED_MIN                           NUMBER(20,4) NOT NULL, 
EGRESS_TTL_EXCEEDED_MAX                           NUMBER(20,4) NOT NULL, 
EGRESS_TTL_EXCEEDED_STCNT                         VARCHAR2(32) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_MIN                NUMBER(20,4) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_MAX                NUMBER(20,4) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_STCNT              VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_MIN           NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_MAX           NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_STCNT         VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_MIN                NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_MAX                NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_STCNT              VARCHAR2(32) NOT NULL, 
CLIENTS_NOT_CONNECTED_MIN                         NUMBER(20,4) NOT NULL, 
CLIENTS_NOT_CONNECTED_MAX                         NUMBER(20,4) NOT NULL, 
CLIENTS_NOT_CONNECTED_STCNT                       VARCHAR2(32) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_MIN                  NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_MAX                  NUMBER(20,4) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_STCNT                VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceSysClientTest_TREND ADD constraint PK_SolaceSysClientTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceSysClientTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysClientTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
TOTAL_CLIENTS_MIN                                 VARCHAR2(256) NOT NULL, 
TOTAL_CLIENTS_MAX                                 VARCHAR2(256) NOT NULL, 
CONNECTED_CLIENTS_MIN                             VARCHAR2(256) NOT NULL, 
CONNECTED_CLIENTS_MAX                             VARCHAR2(256) NOT NULL, 
MQTT_CLIENTS_CONNECTED_MIN                        VARCHAR2(256) NOT NULL, 
MQTT_CLIENTS_CONNECTED_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_MIN                  VARCHAR2(256) NOT NULL, 
TOTAL_REST_CLIENTS_CONNECTED_MAX                  VARCHAR2(256) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_MIN                   VARCHAR2(256) NOT NULL, 
TOTAL_SMF_CLIENTS_CONNECTED_MAX                   VARCHAR2(256) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_MIN           VARCHAR2(256) NOT NULL, 
TOTAL_WEB_SERVICE_CLIENTS_CONNECTED_MAX           VARCHAR2(256) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_MIN      VARCHAR2(256) NOT NULL, 
TOTAL_CLIENTS_CONNECTED_WITH_COMPRESSION_MAX      VARCHAR2(256) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_MIN                   VARCHAR2(256) NOT NULL, 
TOTAL_SSL_CLIENTS_CONNECTED_MAX                   VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_MIN                   VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_BYTES_RECEIVED_MAX                   VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_MIN                VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_BYTES_TRANSMITTED_MAX                VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_MIN                VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MESSAGES_RECEIVED_MAX                VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_MIN             VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MESSAGES_TRANSMITTED_MAX             VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_MIN                  VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_BYTES_RECEIVED_MAX                  VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_MIN               VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_BYTES_TRANSMITTED_MAX               VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_MIN               VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_MESSAGES_RECEIVED_MAX               VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_MIN            VARCHAR2(256) NOT NULL, 
CLIENT_DIRECT_MESSAGES_TRANSMITTED_MAX            VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_MIN              VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_BYTES_RECEIVED_MAX              VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_MIN           VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_BYTES_TRANSMITTED_MAX           VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_MIN           VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_RECEIVED_MAX           VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_MIN        VARCHAR2(256) NOT NULL, 
CLIENT_PERSISTENT_MESSAGES_TRANSMITTED_MAX        VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_MIN          VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_RECEIVED_MAX          VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_MIN       VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_BYTES_TRANSMITTED_MAX       VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_MIN       VARCHAR2(256) NOT NULL, 
CLIENT_NON_PERSISTENT_MESSAGES_RECEIVED_MAX       VARCHAR2(256) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_MIN                      VARCHAR2(256) NOT NULL, 
CLIENT_NONPERS_MSG_TRANS_MAX                      VARCHAR2(256) NOT NULL, 
INGRESS_BYTE_RATE_MIN                             VARCHAR2(256) NOT NULL, 
INGRESS_BYTE_RATE_MAX                             VARCHAR2(256) NOT NULL, 
INGRESS_RATE_MIN                                  VARCHAR2(256) NOT NULL, 
INGRESS_RATE_MAX                                  VARCHAR2(256) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MAX                        VARCHAR2(256) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MIN                         VARCHAR2(256) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MAX                         VARCHAR2(256) NOT NULL, 
TOPIC_PARSE_ERROR_MIN                             VARCHAR2(256) NOT NULL, 
TOPIC_PARSE_ERROR_MAX                             VARCHAR2(256) NOT NULL, 
PARSE_ERROR_MIN                                   VARCHAR2(256) NOT NULL, 
PARSE_ERROR_MAX                                   VARCHAR2(256) NOT NULL, 
TOO_BIG_MESSAGES_MIN                              VARCHAR2(256) NOT NULL, 
TOO_BIG_MESSAGES_MAX                              VARCHAR2(256) NOT NULL, 
TTL_EXCEEDED_MIN                                  VARCHAR2(256) NOT NULL, 
TTL_EXCEEDED_MAX                                  VARCHAR2(256) NOT NULL, 
WEB_PARSE_ERROR_MIN                               VARCHAR2(256) NOT NULL, 
WEB_PARSE_ERROR_MAX                               VARCHAR2(256) NOT NULL, 
PUBLISH_TOPIC_ACL_MIN                             VARCHAR2(256) NOT NULL, 
PUBLISH_TOPIC_ACL_MAX                             VARCHAR2(256) NOT NULL, 
MESSAGESPOOL_DISCARDS_MIN                         VARCHAR2(256) NOT NULL, 
MESSAGESPOOL_DISCARDS_MAX                         VARCHAR2(256) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_MIN                  VARCHAR2(256) NOT NULL, 
MESSAGE_PROMOTION_CONGESTION_MAX                  VARCHAR2(256) NOT NULL, 
MESSAGESPOOL_CONGESTION_MIN                       VARCHAR2(256) NOT NULL, 
MESSAGESPOOL_CONGESTION_MAX                       VARCHAR2(256) NOT NULL, 
EGRESS_BYTE_RATE_MIN                              VARCHAR2(256) NOT NULL, 
EGRESS_BYTE_RATE_MAX                              VARCHAR2(256) NOT NULL, 
EGRESS_RATE_MIN                                   VARCHAR2(256) NOT NULL, 
EGRESS_RATE_MAX                                   VARCHAR2(256) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MAX                         VARCHAR2(256) NOT NULL, 
TRANSMIT_CONGESTION_MIN                           VARCHAR2(256) NOT NULL, 
TRANSMIT_CONGESTION_MAX                           VARCHAR2(256) NOT NULL, 
COMPRESSION_CONGESTION_MIN                        VARCHAR2(256) NOT NULL, 
COMPRESSION_CONGESTION_MAX                        VARCHAR2(256) NOT NULL, 
MESSAGES_ELIDED_MIN                               VARCHAR2(256) NOT NULL, 
MESSAGES_ELIDED_MAX                               VARCHAR2(256) NOT NULL, 
EGRESS_TTL_EXCEEDED_MIN                           VARCHAR2(256) NOT NULL, 
EGRESS_TTL_EXCEEDED_MAX                           VARCHAR2(256) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_MIN                VARCHAR2(256) NOT NULL, 
PAYLOAD_COULD_NOT_BE_FORMATTED_MAX                VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_MIN           VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGE_PROMOTION_CONGESTION_MAX           VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_MIN                VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGESPOOL_CONGESTION_MAX                VARCHAR2(256) NOT NULL, 
CLIENTS_NOT_CONNECTED_MIN                         VARCHAR2(256) NOT NULL, 
CLIENTS_NOT_CONNECTED_MAX                         VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_MIN                  VARCHAR2(256) NOT NULL, 
EGRESS_MESSAGESPOOL_DISCARDS_MAX                  VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceSysClientTest_THRESH ADD constraint PK_SolaceSysClientTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceSysClientTest_THRESH ON SolaceSysClientTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceSysClientTest ON SolaceSysClientTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceSysClientTest ON SolaceSysClientTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceSysHelthTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysHelthTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
DISK_LATENCY                                      NUMBER(20,4) NOT NULL, 
DISK_LATENCY_ST                                   VARCHAR2(32) NOT NULL, 
MATE_LINK_LATENCY                                 NUMBER(20,4) NOT NULL, 
MATE_LINK_LATENCY_ST                              VARCHAR2(32) NOT NULL, 
COMPUTE_LATENCY                                   NUMBER(20,4) NOT NULL, 
COMPUTE_LATENCY_ST                                VARCHAR2(32) NOT NULL, 
NETWORK_LATENCY                                   NUMBER(20,4) NOT NULL, 
NETWORK_LATENCY_ST                                VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceSysHelthTest ON SolaceSysHelthTest(MSMT_TIME);
ALTER TABLE SolaceSysHelthTest ADD constraint PK_SolaceSysHelthTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceSysHelthTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysHelthTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
DISK_LATENCY_MIN                                  NUMBER(20,4) NOT NULL, 
DISK_LATENCY_MAX                                  NUMBER(20,4) NOT NULL, 
DISK_LATENCY_STCNT                                VARCHAR2(32) NOT NULL, 
MATE_LINK_LATENCY_MIN                             NUMBER(20,4) NOT NULL, 
MATE_LINK_LATENCY_MAX                             NUMBER(20,4) NOT NULL, 
MATE_LINK_LATENCY_STCNT                           VARCHAR2(32) NOT NULL, 
COMPUTE_LATENCY_MIN                               NUMBER(20,4) NOT NULL, 
COMPUTE_LATENCY_MAX                               NUMBER(20,4) NOT NULL, 
COMPUTE_LATENCY_STCNT                             VARCHAR2(32) NOT NULL, 
NETWORK_LATENCY_MIN                               NUMBER(20,4) NOT NULL, 
NETWORK_LATENCY_MAX                               NUMBER(20,4) NOT NULL, 
NETWORK_LATENCY_STCNT                             VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceSysHelthTest_TREND ADD constraint PK_SolaceSysHelthTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceSysHelthTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysHelthTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
DISK_LATENCY_MIN                                  VARCHAR2(256) NOT NULL, 
DISK_LATENCY_MAX                                  VARCHAR2(256) NOT NULL, 
MATE_LINK_LATENCY_MIN                             VARCHAR2(256) NOT NULL, 
MATE_LINK_LATENCY_MAX                             VARCHAR2(256) NOT NULL, 
COMPUTE_LATENCY_MIN                               VARCHAR2(256) NOT NULL, 
COMPUTE_LATENCY_MAX                               VARCHAR2(256) NOT NULL, 
NETWORK_LATENCY_MIN                               VARCHAR2(256) NOT NULL, 
NETWORK_LATENCY_MAX                               VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceSysHelthTest_THRESH ADD constraint PK_SolaceSysHelthTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceSysHelthTest_THRESH ON SolaceSysHelthTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceSysHelthTest ON SolaceSysHelthTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceSysHelthTest ON SolaceSysHelthTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceVltSensorTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceVltSensorTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
STATUS                                            NUMBER(20,4) NOT NULL, 
STATUS_ST                                         VARCHAR2(32) NOT NULL, 
VALUE                                             NUMBER(20,4) NOT NULL, 
VALUE_ST                                          VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceVltSensorTest ON SolaceVltSensorTest(MSMT_TIME);
ALTER TABLE SolaceVltSensorTest ADD constraint PK_SolaceVltSensorTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceVltSensorTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceVltSensorTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
STATUS_MIN                                        NUMBER(20,4) NOT NULL, 
STATUS_MAX                                        NUMBER(20,4) NOT NULL, 
STATUS_STCNT                                      VARCHAR2(32) NOT NULL, 
VALUE_MIN                                         NUMBER(20,4) NOT NULL, 
VALUE_MAX                                         NUMBER(20,4) NOT NULL, 
VALUE_STCNT                                       VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceVltSensorTest_TREND ADD constraint PK_SolaceVltSensorTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceVltSensorTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceVltSensorTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
STATUS_MIN                                        VARCHAR2(256) NOT NULL, 
STATUS_MAX                                        VARCHAR2(256) NOT NULL, 
VALUE_MIN                                         VARCHAR2(256) NOT NULL, 
VALUE_MAX                                         VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceVltSensorTest_THRESH ADD constraint PK_SolaceVltSensorTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceVltSensorTest_THRESH ON SolaceVltSensorTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceVltSensorTest ON SolaceVltSensorTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceVltSensorTest ON SolaceVltSensorTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE SolaceTmpSensorTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceTmpSensorTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
STATUS                                            NUMBER(20,4) NOT NULL, 
STATUS_ST                                         VARCHAR2(32) NOT NULL, 
VALUE                                             NUMBER(20,4) NOT NULL, 
VALUE_ST                                          VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceTmpSensorTest ON SolaceTmpSensorTest(MSMT_TIME);
ALTER TABLE SolaceTmpSensorTest ADD constraint PK_SolaceTmpSensorTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceTmpSensorTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceTmpSensorTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
STATUS_MIN                                        NUMBER(20,4) NOT NULL, 
STATUS_MAX                                        NUMBER(20,4) NOT NULL, 
STATUS_STCNT                                      VARCHAR2(32) NOT NULL, 
VALUE_MIN                                         NUMBER(20,4) NOT NULL, 
VALUE_MAX                                         NUMBER(20,4) NOT NULL, 
VALUE_STCNT                                       VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceTmpSensorTest_TREND ADD constraint PK_SolaceTmpSensorTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceTmpSensorTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceTmpSensorTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
STATUS_MIN                                        VARCHAR2(256) NOT NULL, 
STATUS_MAX                                        VARCHAR2(256) NOT NULL, 
VALUE_MIN                                         VARCHAR2(256) NOT NULL, 
VALUE_MAX                                         VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceTmpSensorTest_THRESH ADD constraint PK_SolaceTmpSensorTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceTmpSensorTest_THRESH ON SolaceTmpSensorTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceTmpSensorTest ON SolaceTmpSensorTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceTmpSensorTest ON SolaceTmpSensorTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE SolaceFanSensorTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceFanSensorTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
STATUS                                            NUMBER(20,4) NOT NULL, 
STATUS_ST                                         VARCHAR2(32) NOT NULL, 
VALUE                                             NUMBER(20,4) NOT NULL, 
VALUE_ST                                          VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceFanSensorTest ON SolaceFanSensorTest(MSMT_TIME);
ALTER TABLE SolaceFanSensorTest ADD constraint PK_SolaceFanSensorTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceFanSensorTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceFanSensorTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
STATUS_MIN                                        NUMBER(20,4) NOT NULL, 
STATUS_MAX                                        NUMBER(20,4) NOT NULL, 
STATUS_STCNT                                      VARCHAR2(32) NOT NULL, 
VALUE_MIN                                         NUMBER(20,4) NOT NULL, 
VALUE_MAX                                         NUMBER(20,4) NOT NULL, 
VALUE_STCNT                                       VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceFanSensorTest_TREND ADD constraint PK_SolaceFanSensorTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceFanSensorTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceFanSensorTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
STATUS_MIN                                        VARCHAR2(256) NOT NULL, 
STATUS_MAX                                        VARCHAR2(256) NOT NULL, 
VALUE_MIN                                         VARCHAR2(256) NOT NULL, 
VALUE_MAX                                         VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceFanSensorTest_THRESH ADD constraint PK_SolaceFanSensorTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceFanSensorTest_THRESH ON SolaceFanSensorTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceFanSensorTest ON SolaceFanSensorTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceFanSensorTest ON SolaceFanSensorTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNQueTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQueTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
INGRESS_CONFIG_STATE                              NUMBER(20,4) NOT NULL, 
INGRESS_CONFIG_STATE_ST                           VARCHAR2(32) NOT NULL, 
EGRESS_CONFIG_STATE                               NUMBER(20,4) NOT NULL, 
EGRESS_CONFIG_STATE_ST                            VARCHAR2(32) NOT NULL, 
ACCESS_TYPE                                       NUMBER(20,4) NOT NULL, 
ACCESS_TYPE_ST                                    VARCHAR2(32) NOT NULL, 
SELECTOR                                          NUMBER(20,4) NOT NULL, 
SELECTOR_ST                                       VARCHAR2(32) NOT NULL, 
REDUNDANCY                                        NUMBER(20,4) NOT NULL, 
REDUNDANCY_ST                                     VARCHAR2(32) NOT NULL, 
DURABILITY                                        NUMBER(20,4) NOT NULL, 
DURABILITY_ST                                     VARCHAR2(32) NOT NULL, 
PRIORITY                                          NUMBER(20,4) NOT NULL, 
PRIORITY_ST                                       VARCHAR2(32) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION                          NUMBER(20,4) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_ST                       VARCHAR2(32) NOT NULL, 
HIGH_WATERMARK_DATA                               NUMBER(20,4) NOT NULL, 
HIGH_WATERMARK_DATA_ST                            VARCHAR2(32) NOT NULL, 
TOTAL_MSG_SPOOLED                                 NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_ST                              VARCHAR2(32) NOT NULL, 
MSGSPOOL_USAGE                                    NUMBER(20,4) NOT NULL, 
MSGSPOOL_USAGE_ST                                 VARCHAR2(32) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG                             NUMBER(20,4) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_ST                          VARCHAR2(32) NOT NULL, 
QUEUE_PCT_USED                                    NUMBER(20,4) NOT NULL, 
QUEUE_PCT_USED_ST                                 VARCHAR2(32) NOT NULL, 
CURR_CONSUMER_COUNT                               NUMBER(20,4) NOT NULL, 
CURR_CONSUMER_COUNT_ST                            VARCHAR2(32) NOT NULL, 
NEW_CONSUMER_COUNT                                NUMBER(20,4) NOT NULL, 
NEW_CONSUMER_COUNT_ST                             VARCHAR2(32) NOT NULL, 
DISCONN_CONSUMER_COUNT                            NUMBER(20,4) NOT NULL, 
DISCONN_CONSUMER_COUNT_ST                         VARCHAR2(32) NOT NULL, 
MAX_CONSUMER_CONFIG                               NUMBER(20,4) NOT NULL, 
MAX_CONSUMER_CONFIG_ST                            VARCHAR2(32) NOT NULL, 
CONSUMER_PCT_USED                                 NUMBER(20,4) NOT NULL, 
CONSUMER_PCT_USED_ST                              VARCHAR2(32) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG                         NUMBER(20,4) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_ST                      VARCHAR2(32) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED                          NUMBER(20,4) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_ST                       VARCHAR2(32) NOT NULL, 
MSG_AGING                                         NUMBER(20,4) NOT NULL, 
MSG_AGING_ST                                      VARCHAR2(32) NOT NULL, 
CURR_INGR_BYTE_RATE                               NUMBER(20,4) NOT NULL, 
CURR_INGR_BYTE_RATE_ST                            VARCHAR2(32) NOT NULL, 
CURR_INGR_RATE                                    NUMBER(20,4) NOT NULL, 
CURR_INGR_RATE_ST                                 VARCHAR2(32) NOT NULL, 
CURR_EGR_BYTE_RATE                                NUMBER(20,4) NOT NULL, 
CURR_EGR_BYTE_RATE_ST                             VARCHAR2(32) NOT NULL, 
CURR_EGR_RATE                                     NUMBER(20,4) NOT NULL, 
CURR_EGR_RATE_ST                                  VARCHAR2(32) NOT NULL, 
AVG_INGR_BYTE_RATE                                NUMBER(20,4) NOT NULL, 
AVG_INGR_BYTE_RATE_ST                             VARCHAR2(32) NOT NULL, 
AVG_INGR_RATE                                     NUMBER(20,4) NOT NULL, 
AVG_INGR_RATE_ST                                  VARCHAR2(32) NOT NULL, 
AVG_EGR_BYTE_RATE                                 NUMBER(20,4) NOT NULL, 
AVG_EGR_BYTE_RATE_ST                              VARCHAR2(32) NOT NULL, 
AVG_EGR_RATE                                      NUMBER(20,4) NOT NULL, 
AVG_EGR_RATE_ST                                   VARCHAR2(32) NOT NULL, 
ACK_PROP_MSG_SENT                                 NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_SENT_ST                              VARCHAR2(32) NOT NULL, 
ACK_PROP_MSG_RCVD                                 NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_RCVD_ST                              VARCHAR2(32) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP                             NUMBER(20,4) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_ST                          VARCHAR2(32) NOT NULL, 
MSG_RCVD_FRM_ACTIVE                               NUMBER(20,4) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_ST                            VARCHAR2(32) NOT NULL, 
REPLY_START                                       NUMBER(20,4) NOT NULL, 
REPLY_START_ST                                    VARCHAR2(32) NOT NULL, 
REPLY_SUCC                                        NUMBER(20,4) NOT NULL, 
REPLY_SUCC_ST                                     VARCHAR2(32) NOT NULL, 
REPLY_FAIL                                        NUMBER(20,4) NOT NULL, 
REPLY_FAIL_ST                                     VARCHAR2(32) NOT NULL, 
REPLY_MSG_SENT                                    NUMBER(20,4) NOT NULL, 
REPLY_MSG_SENT_ST                                 VARCHAR2(32) NOT NULL, 
REPLY_MSG_ACKD                                    NUMBER(20,4) NOT NULL, 
REPLY_MSG_ACKD_ST                                 VARCHAR2(32) NOT NULL, 
CONN_BIND_ATTEMPT                                 NUMBER(20,4) NOT NULL, 
CONN_BIND_ATTEMPT_ST                              VARCHAR2(32) NOT NULL, 
CONN_BIND_SUCC                                    NUMBER(20,4) NOT NULL, 
CONN_BIND_SUCC_ST                                 VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND                         NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_ST                      VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED                     NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_ST                  VARCHAR2(32) NOT NULL, 
CONN_BIND_INVLD_SELCTR                            NUMBER(20,4) NOT NULL, 
CONN_BIND_INVLD_SELCTR_ST                         VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD                  NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_ST               VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_OTHER                              NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_OTHER_ST                           VARCHAR2(32) NOT NULL, 
IMNQ_QUOTA_EXCEED                                 NUMBER(20,4) NOT NULL, 
IMNQ_QUOTA_EXCEED_ST                              VARCHAR2(32) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED                          NUMBER(20,4) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_ST                       VARCHAR2(32) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE                           NUMBER(20,4) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_ST                        VARCHAR2(32) NOT NULL, 
IMNQ_DND_CLIENT_PROF                              NUMBER(20,4) NOT NULL, 
IMNQ_DND_CLIENT_PROF_ST                           VARCHAR2(32) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD                            NUMBER(20,4) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_ST                         VARCHAR2(32) NOT NULL, 
IMNQ_DST_GRP_ERR                                  NUMBER(20,4) NOT NULL, 
IMNQ_DST_GRP_ERR_ST                               VARCHAR2(32) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST                             NUMBER(20,4) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_ST                          VARCHAR2(32) NOT NULL, 
MRFQ_DEL_MSG                                      NUMBER(20,4) NOT NULL, 
MRFQ_DEL_MSG_ST                                   VARCHAR2(32) NOT NULL, 
MRFQ_DISCD_EXPIRY                                 NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_EXPIRY_ST                              VARCHAR2(32) NOT NULL, 
MRFQ_MVD_TO_DMQ                                   NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_ST                                VARCHAR2(32) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL                              NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_ST                           VARCHAR2(32) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR                             NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_ST                          VARCHAR2(32) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV                            NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_ST                         VARCHAR2(32) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV                       NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_ST                    VARCHAR2(32) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED                              NUMBER(20,4) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_ST                           VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgVPNQueTest ON SolaceMsgVPNQueTest(MSMT_TIME);
ALTER TABLE SolaceMsgVPNQueTest ADD constraint PK_SolaceMsgVPNQueTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgVPNQueTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQueTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
INGRESS_CONFIG_STATE_MIN                          NUMBER(20,4) NOT NULL, 
INGRESS_CONFIG_STATE_MAX                          NUMBER(20,4) NOT NULL, 
INGRESS_CONFIG_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
EGRESS_CONFIG_STATE_MIN                           NUMBER(20,4) NOT NULL, 
EGRESS_CONFIG_STATE_MAX                           NUMBER(20,4) NOT NULL, 
EGRESS_CONFIG_STATE_STCNT                         VARCHAR2(32) NOT NULL, 
ACCESS_TYPE_MIN                                   NUMBER(20,4) NOT NULL, 
ACCESS_TYPE_MAX                                   NUMBER(20,4) NOT NULL, 
ACCESS_TYPE_STCNT                                 VARCHAR2(32) NOT NULL, 
SELECTOR_MIN                                      NUMBER(20,4) NOT NULL, 
SELECTOR_MAX                                      NUMBER(20,4) NOT NULL, 
SELECTOR_STCNT                                    VARCHAR2(32) NOT NULL, 
REDUNDANCY_MIN                                    NUMBER(20,4) NOT NULL, 
REDUNDANCY_MAX                                    NUMBER(20,4) NOT NULL, 
REDUNDANCY_STCNT                                  VARCHAR2(32) NOT NULL, 
DURABILITY_MIN                                    NUMBER(20,4) NOT NULL, 
DURABILITY_MAX                                    NUMBER(20,4) NOT NULL, 
DURABILITY_STCNT                                  VARCHAR2(32) NOT NULL, 
PRIORITY_MIN                                      NUMBER(20,4) NOT NULL, 
PRIORITY_MAX                                      NUMBER(20,4) NOT NULL, 
PRIORITY_STCNT                                    VARCHAR2(32) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_MIN                      NUMBER(20,4) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_MAX                      NUMBER(20,4) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_STCNT                    VARCHAR2(32) NOT NULL, 
HIGH_WATERMARK_DATA_MIN                           NUMBER(20,4) NOT NULL, 
HIGH_WATERMARK_DATA_MAX                           NUMBER(20,4) NOT NULL, 
HIGH_WATERMARK_DATA_STCNT                         VARCHAR2(32) NOT NULL, 
TOTAL_MSG_SPOOLED_MIN                             NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_MAX                             NUMBER(20,4) NOT NULL, 
TOTAL_MSG_SPOOLED_STCNT                           VARCHAR2(32) NOT NULL, 
MSGSPOOL_USAGE_MIN                                NUMBER(20,4) NOT NULL, 
MSGSPOOL_USAGE_MAX                                NUMBER(20,4) NOT NULL, 
MSGSPOOL_USAGE_STCNT                              VARCHAR2(32) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_MIN                         NUMBER(20,4) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_MAX                         NUMBER(20,4) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_STCNT                       VARCHAR2(32) NOT NULL, 
QUEUE_PCT_USED_MIN                                NUMBER(20,4) NOT NULL, 
QUEUE_PCT_USED_MAX                                NUMBER(20,4) NOT NULL, 
QUEUE_PCT_USED_STCNT                              VARCHAR2(32) NOT NULL, 
CURR_CONSUMER_COUNT_MIN                           NUMBER(20,4) NOT NULL, 
CURR_CONSUMER_COUNT_MAX                           NUMBER(20,4) NOT NULL, 
CURR_CONSUMER_COUNT_STCNT                         VARCHAR2(32) NOT NULL, 
NEW_CONSUMER_COUNT_MIN                            NUMBER(20,4) NOT NULL, 
NEW_CONSUMER_COUNT_MAX                            NUMBER(20,4) NOT NULL, 
NEW_CONSUMER_COUNT_STCNT                          VARCHAR2(32) NOT NULL, 
DISCONN_CONSUMER_COUNT_MIN                        NUMBER(20,4) NOT NULL, 
DISCONN_CONSUMER_COUNT_MAX                        NUMBER(20,4) NOT NULL, 
DISCONN_CONSUMER_COUNT_STCNT                      VARCHAR2(32) NOT NULL, 
MAX_CONSUMER_CONFIG_MIN                           NUMBER(20,4) NOT NULL, 
MAX_CONSUMER_CONFIG_MAX                           NUMBER(20,4) NOT NULL, 
MAX_CONSUMER_CONFIG_STCNT                         VARCHAR2(32) NOT NULL, 
CONSUMER_PCT_USED_MIN                             NUMBER(20,4) NOT NULL, 
CONSUMER_PCT_USED_MAX                             NUMBER(20,4) NOT NULL, 
CONSUMER_PCT_USED_STCNT                           VARCHAR2(32) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_MIN                     NUMBER(20,4) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_MAX                     NUMBER(20,4) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_STCNT                   VARCHAR2(32) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_MIN                      NUMBER(20,4) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_MAX                      NUMBER(20,4) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_STCNT                    VARCHAR2(32) NOT NULL, 
MSG_AGING_MIN                                     NUMBER(20,4) NOT NULL, 
MSG_AGING_MAX                                     NUMBER(20,4) NOT NULL, 
MSG_AGING_STCNT                                   VARCHAR2(32) NOT NULL, 
CURR_INGR_BYTE_RATE_MIN                           NUMBER(20,4) NOT NULL, 
CURR_INGR_BYTE_RATE_MAX                           NUMBER(20,4) NOT NULL, 
CURR_INGR_BYTE_RATE_STCNT                         VARCHAR2(32) NOT NULL, 
CURR_INGR_RATE_MIN                                NUMBER(20,4) NOT NULL, 
CURR_INGR_RATE_MAX                                NUMBER(20,4) NOT NULL, 
CURR_INGR_RATE_STCNT                              VARCHAR2(32) NOT NULL, 
CURR_EGR_BYTE_RATE_MIN                            NUMBER(20,4) NOT NULL, 
CURR_EGR_BYTE_RATE_MAX                            NUMBER(20,4) NOT NULL, 
CURR_EGR_BYTE_RATE_STCNT                          VARCHAR2(32) NOT NULL, 
CURR_EGR_RATE_MIN                                 NUMBER(20,4) NOT NULL, 
CURR_EGR_RATE_MAX                                 NUMBER(20,4) NOT NULL, 
CURR_EGR_RATE_STCNT                               VARCHAR2(32) NOT NULL, 
AVG_INGR_BYTE_RATE_MIN                            NUMBER(20,4) NOT NULL, 
AVG_INGR_BYTE_RATE_MAX                            NUMBER(20,4) NOT NULL, 
AVG_INGR_BYTE_RATE_STCNT                          VARCHAR2(32) NOT NULL, 
AVG_INGR_RATE_MIN                                 NUMBER(20,4) NOT NULL, 
AVG_INGR_RATE_MAX                                 NUMBER(20,4) NOT NULL, 
AVG_INGR_RATE_STCNT                               VARCHAR2(32) NOT NULL, 
AVG_EGR_BYTE_RATE_MIN                             NUMBER(20,4) NOT NULL, 
AVG_EGR_BYTE_RATE_MAX                             NUMBER(20,4) NOT NULL, 
AVG_EGR_BYTE_RATE_STCNT                           VARCHAR2(32) NOT NULL, 
AVG_EGR_RATE_MIN                                  NUMBER(20,4) NOT NULL, 
AVG_EGR_RATE_MAX                                  NUMBER(20,4) NOT NULL, 
AVG_EGR_RATE_STCNT                                VARCHAR2(32) NOT NULL, 
ACK_PROP_MSG_SENT_MIN                             NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_SENT_MAX                             NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_SENT_STCNT                           VARCHAR2(32) NOT NULL, 
ACK_PROP_MSG_RCVD_MIN                             NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_RCVD_MAX                             NUMBER(20,4) NOT NULL, 
ACK_PROP_MSG_RCVD_STCNT                           VARCHAR2(32) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_MIN                         NUMBER(20,4) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_MAX                         NUMBER(20,4) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_STCNT                       VARCHAR2(32) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_MIN                           NUMBER(20,4) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_MAX                           NUMBER(20,4) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_STCNT                         VARCHAR2(32) NOT NULL, 
REPLY_START_MIN                                   NUMBER(20,4) NOT NULL, 
REPLY_START_MAX                                   NUMBER(20,4) NOT NULL, 
REPLY_START_STCNT                                 VARCHAR2(32) NOT NULL, 
REPLY_SUCC_MIN                                    NUMBER(20,4) NOT NULL, 
REPLY_SUCC_MAX                                    NUMBER(20,4) NOT NULL, 
REPLY_SUCC_STCNT                                  VARCHAR2(32) NOT NULL, 
REPLY_FAIL_MIN                                    NUMBER(20,4) NOT NULL, 
REPLY_FAIL_MAX                                    NUMBER(20,4) NOT NULL, 
REPLY_FAIL_STCNT                                  VARCHAR2(32) NOT NULL, 
REPLY_MSG_SENT_MIN                                NUMBER(20,4) NOT NULL, 
REPLY_MSG_SENT_MAX                                NUMBER(20,4) NOT NULL, 
REPLY_MSG_SENT_STCNT                              VARCHAR2(32) NOT NULL, 
REPLY_MSG_ACKD_MIN                                NUMBER(20,4) NOT NULL, 
REPLY_MSG_ACKD_MAX                                NUMBER(20,4) NOT NULL, 
REPLY_MSG_ACKD_STCNT                              VARCHAR2(32) NOT NULL, 
CONN_BIND_ATTEMPT_MIN                             NUMBER(20,4) NOT NULL, 
CONN_BIND_ATTEMPT_MAX                             NUMBER(20,4) NOT NULL, 
CONN_BIND_ATTEMPT_STCNT                           VARCHAR2(32) NOT NULL, 
CONN_BIND_SUCC_MIN                                NUMBER(20,4) NOT NULL, 
CONN_BIND_SUCC_MAX                                NUMBER(20,4) NOT NULL, 
CONN_BIND_SUCC_STCNT                              VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_MIN                     NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_MAX                     NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_STCNT                   VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_MIN                 NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_MAX                 NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_STCNT               VARCHAR2(32) NOT NULL, 
CONN_BIND_INVLD_SELCTR_MIN                        NUMBER(20,4) NOT NULL, 
CONN_BIND_INVLD_SELCTR_MAX                        NUMBER(20,4) NOT NULL, 
CONN_BIND_INVLD_SELCTR_STCNT                      VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_MIN              NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_MAX              NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_STCNT            VARCHAR2(32) NOT NULL, 
CONN_BIND_FAIL_OTHER_MIN                          NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_OTHER_MAX                          NUMBER(20,4) NOT NULL, 
CONN_BIND_FAIL_OTHER_STCNT                        VARCHAR2(32) NOT NULL, 
IMNQ_QUOTA_EXCEED_MIN                             NUMBER(20,4) NOT NULL, 
IMNQ_QUOTA_EXCEED_MAX                             NUMBER(20,4) NOT NULL, 
IMNQ_QUOTA_EXCEED_STCNT                           VARCHAR2(32) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_MIN                      NUMBER(20,4) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_MAX                      NUMBER(20,4) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_STCNT                    VARCHAR2(32) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_MIN                       NUMBER(20,4) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_MAX                       NUMBER(20,4) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_STCNT                     VARCHAR2(32) NOT NULL, 
IMNQ_DND_CLIENT_PROF_MIN                          NUMBER(20,4) NOT NULL, 
IMNQ_DND_CLIENT_PROF_MAX                          NUMBER(20,4) NOT NULL, 
IMNQ_DND_CLIENT_PROF_STCNT                        VARCHAR2(32) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_MIN                        NUMBER(20,4) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_MAX                        NUMBER(20,4) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_STCNT                      VARCHAR2(32) NOT NULL, 
IMNQ_DST_GRP_ERR_MIN                              NUMBER(20,4) NOT NULL, 
IMNQ_DST_GRP_ERR_MAX                              NUMBER(20,4) NOT NULL, 
IMNQ_DST_GRP_ERR_STCNT                            VARCHAR2(32) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_MIN                         NUMBER(20,4) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_MAX                         NUMBER(20,4) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_STCNT                       VARCHAR2(32) NOT NULL, 
MRFQ_DEL_MSG_MIN                                  NUMBER(20,4) NOT NULL, 
MRFQ_DEL_MSG_MAX                                  NUMBER(20,4) NOT NULL, 
MRFQ_DEL_MSG_STCNT                                VARCHAR2(32) NOT NULL, 
MRFQ_DISCD_EXPIRY_MIN                             NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_EXPIRY_MAX                             NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_EXPIRY_STCNT                           VARCHAR2(32) NOT NULL, 
MRFQ_MVD_TO_DMQ_MIN                               NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_MAX                               NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_STCNT                             VARCHAR2(32) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_MIN                          NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_MAX                          NUMBER(20,4) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_STCNT                        VARCHAR2(32) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_MIN                         NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_MAX                         NUMBER(20,4) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_STCNT                       VARCHAR2(32) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_MIN                        NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_MAX                        NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_STCNT                      VARCHAR2(32) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_MIN                   NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_MAX                   NUMBER(20,4) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_STCNT                 VARCHAR2(32) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_MIN                          NUMBER(20,4) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_MAX                          NUMBER(20,4) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_STCNT                        VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgVPNQueTest_TREND ADD constraint PK_SolaceMsgVPNQueTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNQueTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQueTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
INGRESS_CONFIG_STATE_MIN                          VARCHAR2(256) NOT NULL, 
INGRESS_CONFIG_STATE_MAX                          VARCHAR2(256) NOT NULL, 
EGRESS_CONFIG_STATE_MIN                           VARCHAR2(256) NOT NULL, 
EGRESS_CONFIG_STATE_MAX                           VARCHAR2(256) NOT NULL, 
ACCESS_TYPE_MIN                                   VARCHAR2(256) NOT NULL, 
ACCESS_TYPE_MAX                                   VARCHAR2(256) NOT NULL, 
SELECTOR_MIN                                      VARCHAR2(256) NOT NULL, 
SELECTOR_MAX                                      VARCHAR2(256) NOT NULL, 
REDUNDANCY_MIN                                    VARCHAR2(256) NOT NULL, 
REDUNDANCY_MAX                                    VARCHAR2(256) NOT NULL, 
DURABILITY_MIN                                    VARCHAR2(256) NOT NULL, 
DURABILITY_MAX                                    VARCHAR2(256) NOT NULL, 
PRIORITY_MIN                                      VARCHAR2(256) NOT NULL, 
PRIORITY_MAX                                      VARCHAR2(256) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_MIN                      VARCHAR2(256) NOT NULL, 
TOTAL_TOPIC_SUBSCRIPTION_MAX                      VARCHAR2(256) NOT NULL, 
HIGH_WATERMARK_DATA_MIN                           VARCHAR2(256) NOT NULL, 
HIGH_WATERMARK_DATA_MAX                           VARCHAR2(256) NOT NULL, 
TOTAL_MSG_SPOOLED_MIN                             VARCHAR2(256) NOT NULL, 
TOTAL_MSG_SPOOLED_MAX                             VARCHAR2(256) NOT NULL, 
MSGSPOOL_USAGE_MIN                                VARCHAR2(256) NOT NULL, 
MSGSPOOL_USAGE_MAX                                VARCHAR2(256) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_MIN                         VARCHAR2(256) NOT NULL, 
MSGSPOOL_QUOTA_CONFIG_MAX                         VARCHAR2(256) NOT NULL, 
QUEUE_PCT_USED_MIN                                VARCHAR2(256) NOT NULL, 
QUEUE_PCT_USED_MAX                                VARCHAR2(256) NOT NULL, 
CURR_CONSUMER_COUNT_MIN                           VARCHAR2(256) NOT NULL, 
CURR_CONSUMER_COUNT_MAX                           VARCHAR2(256) NOT NULL, 
NEW_CONSUMER_COUNT_MIN                            VARCHAR2(256) NOT NULL, 
NEW_CONSUMER_COUNT_MAX                            VARCHAR2(256) NOT NULL, 
DISCONN_CONSUMER_COUNT_MIN                        VARCHAR2(256) NOT NULL, 
DISCONN_CONSUMER_COUNT_MAX                        VARCHAR2(256) NOT NULL, 
MAX_CONSUMER_CONFIG_MIN                           VARCHAR2(256) NOT NULL, 
MAX_CONSUMER_CONFIG_MAX                           VARCHAR2(256) NOT NULL, 
CONSUMER_PCT_USED_MIN                             VARCHAR2(256) NOT NULL, 
CONSUMER_PCT_USED_MAX                             VARCHAR2(256) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_MIN                     VARCHAR2(256) NOT NULL, 
TOTAL_DELIVERED_UNACK_MSG_MAX                     VARCHAR2(256) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_MIN                      VARCHAR2(256) NOT NULL, 
CURR_TOTAL_ACK_PROCESSED_MAX                      VARCHAR2(256) NOT NULL, 
MSG_AGING_MIN                                     VARCHAR2(256) NOT NULL, 
MSG_AGING_MAX                                     VARCHAR2(256) NOT NULL, 
CURR_INGR_BYTE_RATE_MIN                           VARCHAR2(256) NOT NULL, 
CURR_INGR_BYTE_RATE_MAX                           VARCHAR2(256) NOT NULL, 
CURR_INGR_RATE_MIN                                VARCHAR2(256) NOT NULL, 
CURR_INGR_RATE_MAX                                VARCHAR2(256) NOT NULL, 
CURR_EGR_BYTE_RATE_MIN                            VARCHAR2(256) NOT NULL, 
CURR_EGR_BYTE_RATE_MAX                            VARCHAR2(256) NOT NULL, 
CURR_EGR_RATE_MIN                                 VARCHAR2(256) NOT NULL, 
CURR_EGR_RATE_MAX                                 VARCHAR2(256) NOT NULL, 
AVG_INGR_BYTE_RATE_MIN                            VARCHAR2(256) NOT NULL, 
AVG_INGR_BYTE_RATE_MAX                            VARCHAR2(256) NOT NULL, 
AVG_INGR_RATE_MIN                                 VARCHAR2(256) NOT NULL, 
AVG_INGR_RATE_MAX                                 VARCHAR2(256) NOT NULL, 
AVG_EGR_BYTE_RATE_MIN                             VARCHAR2(256) NOT NULL, 
AVG_EGR_BYTE_RATE_MAX                             VARCHAR2(256) NOT NULL, 
AVG_EGR_RATE_MIN                                  VARCHAR2(256) NOT NULL, 
AVG_EGR_RATE_MAX                                  VARCHAR2(256) NOT NULL, 
ACK_PROP_MSG_SENT_MIN                             VARCHAR2(256) NOT NULL, 
ACK_PROP_MSG_SENT_MAX                             VARCHAR2(256) NOT NULL, 
ACK_PROP_MSG_RCVD_MIN                             VARCHAR2(256) NOT NULL, 
ACK_PROP_MSG_RCVD_MAX                             VARCHAR2(256) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_MIN                         VARCHAR2(256) NOT NULL, 
MSG_ACKD_VIA_ACK_PROP_MAX                         VARCHAR2(256) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_MIN                           VARCHAR2(256) NOT NULL, 
MSG_RCVD_FRM_ACTIVE_MAX                           VARCHAR2(256) NOT NULL, 
REPLY_START_MIN                                   VARCHAR2(256) NOT NULL, 
REPLY_START_MAX                                   VARCHAR2(256) NOT NULL, 
REPLY_SUCC_MIN                                    VARCHAR2(256) NOT NULL, 
REPLY_SUCC_MAX                                    VARCHAR2(256) NOT NULL, 
REPLY_FAIL_MIN                                    VARCHAR2(256) NOT NULL, 
REPLY_FAIL_MAX                                    VARCHAR2(256) NOT NULL, 
REPLY_MSG_SENT_MIN                                VARCHAR2(256) NOT NULL, 
REPLY_MSG_SENT_MAX                                VARCHAR2(256) NOT NULL, 
REPLY_MSG_ACKD_MIN                                VARCHAR2(256) NOT NULL, 
REPLY_MSG_ACKD_MAX                                VARCHAR2(256) NOT NULL, 
CONN_BIND_ATTEMPT_MIN                             VARCHAR2(256) NOT NULL, 
CONN_BIND_ATTEMPT_MAX                             VARCHAR2(256) NOT NULL, 
CONN_BIND_SUCC_MIN                                VARCHAR2(256) NOT NULL, 
CONN_BIND_SUCC_MAX                                VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_MIN                     VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_ALRDY_BIND_MAX                     VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_MIN                 VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_QUEUE_DISABLED_MAX                 VARCHAR2(256) NOT NULL, 
CONN_BIND_INVLD_SELCTR_MIN                        VARCHAR2(256) NOT NULL, 
CONN_BIND_INVLD_SELCTR_MAX                        VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_MIN              VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_MAX_BIND_CNT_EXCD_MAX              VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_OTHER_MIN                          VARCHAR2(256) NOT NULL, 
CONN_BIND_FAIL_OTHER_MAX                          VARCHAR2(256) NOT NULL, 
IMNQ_QUOTA_EXCEED_MIN                             VARCHAR2(256) NOT NULL, 
IMNQ_QUOTA_EXCEED_MAX                             VARCHAR2(256) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_MIN                      VARCHAR2(256) NOT NULL, 
IMNQ_MAX_MSG_SIZE_EXCEED_MAX                      VARCHAR2(256) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_MIN                       VARCHAR2(256) NOT NULL, 
IMNQ_FAIL_QUEUE_DISABLE_MAX                       VARCHAR2(256) NOT NULL, 
IMNQ_DND_CLIENT_PROF_MIN                          VARCHAR2(256) NOT NULL, 
IMNQ_DND_CLIENT_PROF_MAX                          VARCHAR2(256) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_MIN                        VARCHAR2(256) NOT NULL, 
IMNQ_NOLCL_DLVRY_DISCD_MAX                        VARCHAR2(256) NOT NULL, 
IMNQ_DST_GRP_ERR_MIN                              VARCHAR2(256) NOT NULL, 
IMNQ_DST_GRP_ERR_MAX                              VARCHAR2(256) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_MIN                         VARCHAR2(256) NOT NULL, 
IMNQ_LOW_PRTY_CONGEST_MAX                         VARCHAR2(256) NOT NULL, 
MRFQ_DEL_MSG_MIN                                  VARCHAR2(256) NOT NULL, 
MRFQ_DEL_MSG_MAX                                  VARCHAR2(256) NOT NULL, 
MRFQ_DISCD_EXPIRY_MIN                             VARCHAR2(256) NOT NULL, 
MRFQ_DISCD_EXPIRY_MAX                             VARCHAR2(256) NOT NULL, 
MRFQ_MVD_TO_DMQ_MIN                               VARCHAR2(256) NOT NULL, 
MRFQ_MVD_TO_DMQ_MAX                               VARCHAR2(256) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_MIN                          VARCHAR2(256) NOT NULL, 
MRFQ_MVD_TO_DMQ_FAIL_MAX                          VARCHAR2(256) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_MIN                         VARCHAR2(256) NOT NULL, 
MRFQ_DISCD_MAX_REDLVR_MAX                         VARCHAR2(256) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_MIN                        VARCHAR2(256) NOT NULL, 
MRFQ_MVD_DMQ_MAX_REDLV_MAX                        VARCHAR2(256) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_MIN                   VARCHAR2(256) NOT NULL, 
MRFQ_MVD_DMQ_FAIL_MAX_REDLV_MAX                   VARCHAR2(256) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_MIN                          VARCHAR2(256) NOT NULL, 
MRFQ_DSCD_TTL_EXCEED_MAX                          VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgVPNQueTest_THRESH ADD constraint PK_SolaceMsgVPNQueTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgVPNQueTest_THRESH ON SolaceMsgVPNQueTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgVPNQueTest ON SolaceMsgVPNQueTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgVPNQueTest ON SolaceMsgVPNQueTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceDiskUsageTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceDiskUsageTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
TOTAL_SPACE                                       NUMBER(20,4) NOT NULL, 
TOTAL_SPACE_ST                                    VARCHAR2(32) NOT NULL, 
USED_SPACE                                        NUMBER(20,4) NOT NULL, 
USED_SPACE_ST                                     VARCHAR2(32) NOT NULL, 
FREE_SPACE                                        NUMBER(20,4) NOT NULL, 
FREE_SPACE_ST                                     VARCHAR2(32) NOT NULL, 
DISK_USAGE                                        NUMBER(20,4) NOT NULL, 
DISK_USAGE_ST                                     VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceDiskUsageTest ON SolaceDiskUsageTest(MSMT_TIME);
ALTER TABLE SolaceDiskUsageTest ADD constraint PK_SolaceDiskUsageTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceDiskUsageTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceDiskUsageTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
TOTAL_SPACE_MIN                                   NUMBER(20,4) NOT NULL, 
TOTAL_SPACE_MAX                                   NUMBER(20,4) NOT NULL, 
TOTAL_SPACE_STCNT                                 VARCHAR2(32) NOT NULL, 
USED_SPACE_MIN                                    NUMBER(20,4) NOT NULL, 
USED_SPACE_MAX                                    NUMBER(20,4) NOT NULL, 
USED_SPACE_STCNT                                  VARCHAR2(32) NOT NULL, 
FREE_SPACE_MIN                                    NUMBER(20,4) NOT NULL, 
FREE_SPACE_MAX                                    NUMBER(20,4) NOT NULL, 
FREE_SPACE_STCNT                                  VARCHAR2(32) NOT NULL, 
DISK_USAGE_MIN                                    NUMBER(20,4) NOT NULL, 
DISK_USAGE_MAX                                    NUMBER(20,4) NOT NULL, 
DISK_USAGE_STCNT                                  VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceDiskUsageTest_TREND ADD constraint PK_SolaceDiskUsageTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceDiskUsageTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceDiskUsageTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
TOTAL_SPACE_MIN                                   VARCHAR2(256) NOT NULL, 
TOTAL_SPACE_MAX                                   VARCHAR2(256) NOT NULL, 
USED_SPACE_MIN                                    VARCHAR2(256) NOT NULL, 
USED_SPACE_MAX                                    VARCHAR2(256) NOT NULL, 
FREE_SPACE_MIN                                    VARCHAR2(256) NOT NULL, 
FREE_SPACE_MAX                                    VARCHAR2(256) NOT NULL, 
DISK_USAGE_MIN                                    VARCHAR2(256) NOT NULL, 
DISK_USAGE_MAX                                    VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceDiskUsageTest_THRESH ADD constraint PK_SolaceDiskUsageTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceDiskUsageTest_THRESH ON SolaceDiskUsageTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceDiskUsageTest ON SolaceDiskUsageTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceDiskUsageTest ON SolaceDiskUsageTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
ENABLED_STATUS                                    NUMBER(20,4) NOT NULL, 
ENABLED_STATUS_ST                                 VARCHAR2(32) NOT NULL, 
LOCAL_STATUS                                      NUMBER(20,4) NOT NULL, 
LOCAL_STATUS_ST                                   VARCHAR2(32) NOT NULL, 
OPERATIONAL_STATUS                                NUMBER(20,4) NOT NULL, 
OPERATIONAL_STATUS_ST                             VARCHAR2(32) NOT NULL, 
IS_MGMT_VPN                                       NUMBER(20,4) NOT NULL, 
IS_MGMT_VPN_ST                                    VARCHAR2(32) NOT NULL, 
DIST_CACHE_MGMT_STATUS                            NUMBER(20,4) NOT NULL, 
DIST_CACHE_MGMT_STATUS_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB                            NUMBER(20,4) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB                             NUMBER(20,4) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_ST                          VARCHAR2(32) NOT NULL, 
TOTAL_UNIQUE_SUB                                  NUMBER(20,4) NOT NULL, 
TOTAL_UNIQUE_SUB_ST                               VARCHAR2(32) NOT NULL, 
MAX_SUBSCRIPTION                                  NUMBER(20,4) NOT NULL, 
MAX_SUBSCRIPTION_ST                               VARCHAR2(32) NOT NULL, 
SUBSCRIPTION_USAGE                                NUMBER(20,4) NOT NULL, 
SUBSCRIPTION_USAGE_ST                             VARCHAR2(32) NOT NULL, 
ADD_SUB_MSG_RCVD                                  NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_RCVD_ST                               VARCHAR2(32) NOT NULL, 
ADD_SUB_MSG_SENT                                  NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_SENT_ST                               VARCHAR2(32) NOT NULL, 
DENINED_SUB_TOPIC_ACL                             NUMBER(20,4) NOT NULL, 
DENINED_SUB_TOPIC_ACL_ST                          VARCHAR2(32) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD                            NUMBER(20,4) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_ST                         VARCHAR2(32) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL                            NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_ST                         VARCHAR2(32) NOT NULL, 
DENIED_SUB_PERMISSION                             NUMBER(20,4) NOT NULL, 
DENIED_SUB_PERMISSION_ST                          VARCHAR2(32) NOT NULL, 
DENIED_UNSUB_PERMISSION                           NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_PERMISSION_ST                        VARCHAR2(32) NOT NULL, 
AMQP_CONNS                                        NUMBER(20,4) NOT NULL, 
AMQP_CONNS_ST                                     VARCHAR2(32) NOT NULL, 
MAX_AMQP_CONNS                                    NUMBER(20,4) NOT NULL, 
MAX_AMQP_CONNS_ST                                 VARCHAR2(32) NOT NULL, 
AMQP_USAGE                                        NUMBER(20,4) NOT NULL, 
AMQP_USAGE_ST                                     VARCHAR2(32) NOT NULL, 
MQTT_CONNS                                        NUMBER(20,4) NOT NULL, 
MQTT_CONNS_ST                                     VARCHAR2(32) NOT NULL, 
MAX_MQTT_CONNS                                    NUMBER(20,4) NOT NULL, 
MAX_MQTT_CONNS_ST                                 VARCHAR2(32) NOT NULL, 
MQTT_USAGE                                        NUMBER(20,4) NOT NULL, 
MQTT_USAGE_ST                                     VARCHAR2(32) NOT NULL, 
IN_REST_CONNS                                     NUMBER(20,4) NOT NULL, 
IN_REST_CONNS_ST                                  VARCHAR2(32) NOT NULL, 
MAX_IN_REST_CONNS                                 NUMBER(20,4) NOT NULL, 
MAX_IN_REST_CONNS_ST                              VARCHAR2(32) NOT NULL, 
IN_REST_USAGE                                     NUMBER(20,4) NOT NULL, 
IN_REST_USAGE_ST                                  VARCHAR2(32) NOT NULL, 
OUT_REST_CONNS                                    NUMBER(20,4) NOT NULL, 
OUT_REST_CONNS_ST                                 VARCHAR2(32) NOT NULL, 
MAX_OUT_REST_CONNS                                NUMBER(20,4) NOT NULL, 
MAX_OUT_REST_CONNS_ST                             VARCHAR2(32) NOT NULL, 
OUT_REST_USAGE                                    NUMBER(20,4) NOT NULL, 
OUT_REST_USAGE_ST                                 VARCHAR2(32) NOT NULL, 
SMF_CONNS                                         NUMBER(20,4) NOT NULL, 
SMF_CONNS_ST                                      VARCHAR2(32) NOT NULL, 
MAX_SMF_CONNS                                     NUMBER(20,4) NOT NULL, 
MAX_SMF_CONNS_ST                                  VARCHAR2(32) NOT NULL, 
SMF_USAGE                                         NUMBER(20,4) NOT NULL, 
SMF_USAGE_ST                                      VARCHAR2(32) NOT NULL, 
WEB_CONNS                                         NUMBER(20,4) NOT NULL, 
WEB_CONNS_ST                                      VARCHAR2(32) NOT NULL, 
MAX_WEB_CONNS                                     NUMBER(20,4) NOT NULL, 
MAX_WEB_CONNS_ST                                  VARCHAR2(32) NOT NULL, 
WEB_CONNS_USAGE                                   NUMBER(20,4) NOT NULL, 
WEB_CONNS_USAGE_ST                                VARCHAR2(32) NOT NULL, 
TOTAL_CURR_CONNS                                  NUMBER(20,4) NOT NULL, 
TOTAL_CURR_CONNS_ST                               VARCHAR2(32) NOT NULL, 
MAX_CONNS_ALLOWED                                 NUMBER(20,4) NOT NULL, 
MAX_CONNS_ALLOWED_ST                              VARCHAR2(32) NOT NULL, 
CONN_USAGE                                        NUMBER(20,4) NOT NULL, 
CONN_USAGE_ST                                     VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD                            NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_ST                         VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_DATA_SNT                             NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_ST                          VARCHAR2(32) NOT NULL, 
CLIENT_DATA_RCVD                                  NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RCVD_ST                               VARCHAR2(32) NOT NULL, 
CLIENT_DATA_SENT                                  NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_ST                               VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_SENT                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_ST                         VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_RCVD                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_ST                           VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_SNT                               NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SNT_ST                            VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD                             NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_ST                          VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_MSG_SNT                              NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_ST                           VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD                             NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_ST                          VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSG_SNT                              NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_ST                           VARCHAR2(32) NOT NULL, 
LOGIN_MSG_RCVD                                    NUMBER(20,4) NOT NULL, 
LOGIN_MSG_RCVD_ST                                 VARCHAR2(32) NOT NULL, 
LOGIN_MSG_SENT                                    NUMBER(20,4) NOT NULL, 
LOGIN_MSG_SENT_ST                                 VARCHAR2(32) NOT NULL, 
INGR_DATA_RATE                                    NUMBER(20,4) NOT NULL, 
INGR_DATA_RATE_ST                                 VARCHAR2(32) NOT NULL, 
INGR_RATE                                         NUMBER(20,4) NOT NULL, 
INGR_RATE_ST                                      VARCHAR2(32) NOT NULL, 
TOTAL_INGR_DISCARD                                NUMBER(20,4) NOT NULL, 
TOTAL_INGR_DISCARD_ST                             VARCHAR2(32) NOT NULL, 
INGR_MSGSPOOL_CONGEST                             NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_CONGEST_ST                          VARCHAR2(32) NOT NULL, 
INGR_MSG_PROMO_CONGEST                            NUMBER(20,4) NOT NULL, 
INGR_MSG_PROMO_CONGEST_ST                         VARCHAR2(32) NOT NULL, 
INGR_MSGSPOOL_DISCD                               NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_DISCD_ST                            VARCHAR2(32) NOT NULL, 
INGR_TOOBIG_MSG                                   NUMBER(20,4) NOT NULL, 
INGR_TOOBIG_MSG_ST                                VARCHAR2(32) NOT NULL, 
INGR_NO_SUB_MATCH                                 NUMBER(20,4) NOT NULL, 
INGR_NO_SUB_MATCH_ST                              VARCHAR2(32) NOT NULL, 
INGR_PARSE_ERR                                    NUMBER(20,4) NOT NULL, 
INGR_PARSE_ERR_ST                                 VARCHAR2(32) NOT NULL, 
INGR_PUB_TOPIC_ACL                                NUMBER(20,4) NOT NULL, 
INGR_PUB_TOPIC_ACL_ST                             VARCHAR2(32) NOT NULL, 
INGR_TOPIC_PARSE_ERR                              NUMBER(20,4) NOT NULL, 
INGR_TOPIC_PARSE_ERR_ST                           VARCHAR2(32) NOT NULL, 
INGR_TTL_EXCEED                                   NUMBER(20,4) NOT NULL, 
INGR_TTL_EXCEED_ST                                VARCHAR2(32) NOT NULL, 
EGR_DATA_RATE                                     NUMBER(20,4) NOT NULL, 
EGR_DATA_RATE_ST                                  VARCHAR2(32) NOT NULL, 
EGR_RATE                                          NUMBER(20,4) NOT NULL, 
EGR_RATE_ST                                       VARCHAR2(32) NOT NULL, 
TOTAL_EGR_DISCARD                                 NUMBER(20,4) NOT NULL, 
TOTAL_EGR_DISCARD_ST                              VARCHAR2(32) NOT NULL, 
EGR_MSGSPOOL_DISCD                                NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_DISCD_ST                             VARCHAR2(32) NOT NULL, 
EGR_CLIENT_NOT_CONTD                              NUMBER(20,4) NOT NULL, 
EGR_CLIENT_NOT_CONTD_ST                           VARCHAR2(32) NOT NULL, 
EGR_COMPRESS_CONGEST                              NUMBER(20,4) NOT NULL, 
EGR_COMPRESS_CONGEST_ST                           VARCHAR2(32) NOT NULL, 
EGR_MSG_ELIDED                                    NUMBER(20,4) NOT NULL, 
EGR_MSG_ELIDED_ST                                 VARCHAR2(32) NOT NULL, 
EGR_MSG_PROMO_CONGEST                             NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMO_CONGEST_ST                          VARCHAR2(32) NOT NULL, 
EGR_MSGSPOOL_CONGEST                              NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_CONGEST_ST                           VARCHAR2(32) NOT NULL, 
EGR_TRANSMIT_CONGEST                              NUMBER(20,4) NOT NULL, 
EGR_TRANSMIT_CONGEST_ST                           VARCHAR2(32) NOT NULL, 
EGR_TTL_EXCEED                                    NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEED_ST                                 VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgVPNTest ON SolaceMsgVPNTest(MSMT_TIME);
ALTER TABLE SolaceMsgVPNTest ADD constraint PK_SolaceMsgVPNTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgVPNTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
ENABLED_STATUS_MIN                                NUMBER(20,4) NOT NULL, 
ENABLED_STATUS_MAX                                NUMBER(20,4) NOT NULL, 
ENABLED_STATUS_STCNT                              VARCHAR2(32) NOT NULL, 
LOCAL_STATUS_MIN                                  NUMBER(20,4) NOT NULL, 
LOCAL_STATUS_MAX                                  NUMBER(20,4) NOT NULL, 
LOCAL_STATUS_STCNT                                VARCHAR2(32) NOT NULL, 
OPERATIONAL_STATUS_MIN                            NUMBER(20,4) NOT NULL, 
OPERATIONAL_STATUS_MAX                            NUMBER(20,4) NOT NULL, 
OPERATIONAL_STATUS_STCNT                          VARCHAR2(32) NOT NULL, 
IS_MGMT_VPN_MIN                                   NUMBER(20,4) NOT NULL, 
IS_MGMT_VPN_MAX                                   NUMBER(20,4) NOT NULL, 
IS_MGMT_VPN_STCNT                                 VARCHAR2(32) NOT NULL, 
DIST_CACHE_MGMT_STATUS_MIN                        NUMBER(20,4) NOT NULL, 
DIST_CACHE_MGMT_STATUS_MAX                        NUMBER(20,4) NOT NULL, 
DIST_CACHE_MGMT_STATUS_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_STCNT                       VARCHAR2(32) NOT NULL, 
TOTAL_UNIQUE_SUB_MIN                              NUMBER(20,4) NOT NULL, 
TOTAL_UNIQUE_SUB_MAX                              NUMBER(20,4) NOT NULL, 
TOTAL_UNIQUE_SUB_STCNT                            VARCHAR2(32) NOT NULL, 
MAX_SUBSCRIPTION_MIN                              NUMBER(20,4) NOT NULL, 
MAX_SUBSCRIPTION_MAX                              NUMBER(20,4) NOT NULL, 
MAX_SUBSCRIPTION_STCNT                            VARCHAR2(32) NOT NULL, 
SUBSCRIPTION_USAGE_MIN                            NUMBER(20,4) NOT NULL, 
SUBSCRIPTION_USAGE_MAX                            NUMBER(20,4) NOT NULL, 
SUBSCRIPTION_USAGE_STCNT                          VARCHAR2(32) NOT NULL, 
ADD_SUB_MSG_RCVD_MIN                              NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_RCVD_MAX                              NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_RCVD_STCNT                            VARCHAR2(32) NOT NULL, 
ADD_SUB_MSG_SENT_MIN                              NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_SENT_MAX                              NUMBER(20,4) NOT NULL, 
ADD_SUB_MSG_SENT_STCNT                            VARCHAR2(32) NOT NULL, 
DENINED_SUB_TOPIC_ACL_MIN                         NUMBER(20,4) NOT NULL, 
DENINED_SUB_TOPIC_ACL_MAX                         NUMBER(20,4) NOT NULL, 
DENINED_SUB_TOPIC_ACL_STCNT                       VARCHAR2(32) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_MIN                        NUMBER(20,4) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_MAX                        NUMBER(20,4) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_STCNT                      VARCHAR2(32) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_MIN                        NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_MAX                        NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_STCNT                      VARCHAR2(32) NOT NULL, 
DENIED_SUB_PERMISSION_MIN                         NUMBER(20,4) NOT NULL, 
DENIED_SUB_PERMISSION_MAX                         NUMBER(20,4) NOT NULL, 
DENIED_SUB_PERMISSION_STCNT                       VARCHAR2(32) NOT NULL, 
DENIED_UNSUB_PERMISSION_MIN                       NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_PERMISSION_MAX                       NUMBER(20,4) NOT NULL, 
DENIED_UNSUB_PERMISSION_STCNT                     VARCHAR2(32) NOT NULL, 
AMQP_CONNS_MIN                                    NUMBER(20,4) NOT NULL, 
AMQP_CONNS_MAX                                    NUMBER(20,4) NOT NULL, 
AMQP_CONNS_STCNT                                  VARCHAR2(32) NOT NULL, 
MAX_AMQP_CONNS_MIN                                NUMBER(20,4) NOT NULL, 
MAX_AMQP_CONNS_MAX                                NUMBER(20,4) NOT NULL, 
MAX_AMQP_CONNS_STCNT                              VARCHAR2(32) NOT NULL, 
AMQP_USAGE_MIN                                    NUMBER(20,4) NOT NULL, 
AMQP_USAGE_MAX                                    NUMBER(20,4) NOT NULL, 
AMQP_USAGE_STCNT                                  VARCHAR2(32) NOT NULL, 
MQTT_CONNS_MIN                                    NUMBER(20,4) NOT NULL, 
MQTT_CONNS_MAX                                    NUMBER(20,4) NOT NULL, 
MQTT_CONNS_STCNT                                  VARCHAR2(32) NOT NULL, 
MAX_MQTT_CONNS_MIN                                NUMBER(20,4) NOT NULL, 
MAX_MQTT_CONNS_MAX                                NUMBER(20,4) NOT NULL, 
MAX_MQTT_CONNS_STCNT                              VARCHAR2(32) NOT NULL, 
MQTT_USAGE_MIN                                    NUMBER(20,4) NOT NULL, 
MQTT_USAGE_MAX                                    NUMBER(20,4) NOT NULL, 
MQTT_USAGE_STCNT                                  VARCHAR2(32) NOT NULL, 
IN_REST_CONNS_MIN                                 NUMBER(20,4) NOT NULL, 
IN_REST_CONNS_MAX                                 NUMBER(20,4) NOT NULL, 
IN_REST_CONNS_STCNT                               VARCHAR2(32) NOT NULL, 
MAX_IN_REST_CONNS_MIN                             NUMBER(20,4) NOT NULL, 
MAX_IN_REST_CONNS_MAX                             NUMBER(20,4) NOT NULL, 
MAX_IN_REST_CONNS_STCNT                           VARCHAR2(32) NOT NULL, 
IN_REST_USAGE_MIN                                 NUMBER(20,4) NOT NULL, 
IN_REST_USAGE_MAX                                 NUMBER(20,4) NOT NULL, 
IN_REST_USAGE_STCNT                               VARCHAR2(32) NOT NULL, 
OUT_REST_CONNS_MIN                                NUMBER(20,4) NOT NULL, 
OUT_REST_CONNS_MAX                                NUMBER(20,4) NOT NULL, 
OUT_REST_CONNS_STCNT                              VARCHAR2(32) NOT NULL, 
MAX_OUT_REST_CONNS_MIN                            NUMBER(20,4) NOT NULL, 
MAX_OUT_REST_CONNS_MAX                            NUMBER(20,4) NOT NULL, 
MAX_OUT_REST_CONNS_STCNT                          VARCHAR2(32) NOT NULL, 
OUT_REST_USAGE_MIN                                NUMBER(20,4) NOT NULL, 
OUT_REST_USAGE_MAX                                NUMBER(20,4) NOT NULL, 
OUT_REST_USAGE_STCNT                              VARCHAR2(32) NOT NULL, 
SMF_CONNS_MIN                                     NUMBER(20,4) NOT NULL, 
SMF_CONNS_MAX                                     NUMBER(20,4) NOT NULL, 
SMF_CONNS_STCNT                                   VARCHAR2(32) NOT NULL, 
MAX_SMF_CONNS_MIN                                 NUMBER(20,4) NOT NULL, 
MAX_SMF_CONNS_MAX                                 NUMBER(20,4) NOT NULL, 
MAX_SMF_CONNS_STCNT                               VARCHAR2(32) NOT NULL, 
SMF_USAGE_MIN                                     NUMBER(20,4) NOT NULL, 
SMF_USAGE_MAX                                     NUMBER(20,4) NOT NULL, 
SMF_USAGE_STCNT                                   VARCHAR2(32) NOT NULL, 
WEB_CONNS_MIN                                     NUMBER(20,4) NOT NULL, 
WEB_CONNS_MAX                                     NUMBER(20,4) NOT NULL, 
WEB_CONNS_STCNT                                   VARCHAR2(32) NOT NULL, 
MAX_WEB_CONNS_MIN                                 NUMBER(20,4) NOT NULL, 
MAX_WEB_CONNS_MAX                                 NUMBER(20,4) NOT NULL, 
MAX_WEB_CONNS_STCNT                               VARCHAR2(32) NOT NULL, 
WEB_CONNS_USAGE_MIN                               NUMBER(20,4) NOT NULL, 
WEB_CONNS_USAGE_MAX                               NUMBER(20,4) NOT NULL, 
WEB_CONNS_USAGE_STCNT                             VARCHAR2(32) NOT NULL, 
TOTAL_CURR_CONNS_MIN                              NUMBER(20,4) NOT NULL, 
TOTAL_CURR_CONNS_MAX                              NUMBER(20,4) NOT NULL, 
TOTAL_CURR_CONNS_STCNT                            VARCHAR2(32) NOT NULL, 
MAX_CONNS_ALLOWED_MIN                             NUMBER(20,4) NOT NULL, 
MAX_CONNS_ALLOWED_MAX                             NUMBER(20,4) NOT NULL, 
MAX_CONNS_ALLOWED_STCNT                           VARCHAR2(32) NOT NULL, 
CONN_USAGE_MIN                                    NUMBER(20,4) NOT NULL, 
CONN_USAGE_MAX                                    NUMBER(20,4) NOT NULL, 
CONN_USAGE_STCNT                                  VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_MIN                         NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_MAX                         NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_STCNT                       VARCHAR2(32) NOT NULL, 
CLIENT_DATA_RCVD_MIN                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RCVD_MAX                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RCVD_STCNT                            VARCHAR2(32) NOT NULL, 
CLIENT_DATA_SENT_MIN                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_MAX                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_STCNT                            VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MIN                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MAX                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_STCNT                        VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_SNT_MIN                           NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SNT_MAX                           NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SNT_STCNT                         VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_MIN                         NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_MAX                         NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_STCNT                       VARCHAR2(32) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_MIN                          NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_MAX                          NUMBER(20,4) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_STCNT                        VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_STCNT                       VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_MIN                          NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_MAX                          NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_STCNT                        VARCHAR2(32) NOT NULL, 
LOGIN_MSG_RCVD_MIN                                NUMBER(20,4) NOT NULL, 
LOGIN_MSG_RCVD_MAX                                NUMBER(20,4) NOT NULL, 
LOGIN_MSG_RCVD_STCNT                              VARCHAR2(32) NOT NULL, 
LOGIN_MSG_SENT_MIN                                NUMBER(20,4) NOT NULL, 
LOGIN_MSG_SENT_MAX                                NUMBER(20,4) NOT NULL, 
LOGIN_MSG_SENT_STCNT                              VARCHAR2(32) NOT NULL, 
INGR_DATA_RATE_MIN                                NUMBER(20,4) NOT NULL, 
INGR_DATA_RATE_MAX                                NUMBER(20,4) NOT NULL, 
INGR_DATA_RATE_STCNT                              VARCHAR2(32) NOT NULL, 
INGR_RATE_MIN                                     NUMBER(20,4) NOT NULL, 
INGR_RATE_MAX                                     NUMBER(20,4) NOT NULL, 
INGR_RATE_STCNT                                   VARCHAR2(32) NOT NULL, 
TOTAL_INGR_DISCARD_MIN                            NUMBER(20,4) NOT NULL, 
TOTAL_INGR_DISCARD_MAX                            NUMBER(20,4) NOT NULL, 
TOTAL_INGR_DISCARD_STCNT                          VARCHAR2(32) NOT NULL, 
INGR_MSGSPOOL_CONGEST_MIN                         NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_CONGEST_MAX                         NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_CONGEST_STCNT                       VARCHAR2(32) NOT NULL, 
INGR_MSG_PROMO_CONGEST_MIN                        NUMBER(20,4) NOT NULL, 
INGR_MSG_PROMO_CONGEST_MAX                        NUMBER(20,4) NOT NULL, 
INGR_MSG_PROMO_CONGEST_STCNT                      VARCHAR2(32) NOT NULL, 
INGR_MSGSPOOL_DISCD_MIN                           NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_DISCD_MAX                           NUMBER(20,4) NOT NULL, 
INGR_MSGSPOOL_DISCD_STCNT                         VARCHAR2(32) NOT NULL, 
INGR_TOOBIG_MSG_MIN                               NUMBER(20,4) NOT NULL, 
INGR_TOOBIG_MSG_MAX                               NUMBER(20,4) NOT NULL, 
INGR_TOOBIG_MSG_STCNT                             VARCHAR2(32) NOT NULL, 
INGR_NO_SUB_MATCH_MIN                             NUMBER(20,4) NOT NULL, 
INGR_NO_SUB_MATCH_MAX                             NUMBER(20,4) NOT NULL, 
INGR_NO_SUB_MATCH_STCNT                           VARCHAR2(32) NOT NULL, 
INGR_PARSE_ERR_MIN                                NUMBER(20,4) NOT NULL, 
INGR_PARSE_ERR_MAX                                NUMBER(20,4) NOT NULL, 
INGR_PARSE_ERR_STCNT                              VARCHAR2(32) NOT NULL, 
INGR_PUB_TOPIC_ACL_MIN                            NUMBER(20,4) NOT NULL, 
INGR_PUB_TOPIC_ACL_MAX                            NUMBER(20,4) NOT NULL, 
INGR_PUB_TOPIC_ACL_STCNT                          VARCHAR2(32) NOT NULL, 
INGR_TOPIC_PARSE_ERR_MIN                          NUMBER(20,4) NOT NULL, 
INGR_TOPIC_PARSE_ERR_MAX                          NUMBER(20,4) NOT NULL, 
INGR_TOPIC_PARSE_ERR_STCNT                        VARCHAR2(32) NOT NULL, 
INGR_TTL_EXCEED_MIN                               NUMBER(20,4) NOT NULL, 
INGR_TTL_EXCEED_MAX                               NUMBER(20,4) NOT NULL, 
INGR_TTL_EXCEED_STCNT                             VARCHAR2(32) NOT NULL, 
EGR_DATA_RATE_MIN                                 NUMBER(20,4) NOT NULL, 
EGR_DATA_RATE_MAX                                 NUMBER(20,4) NOT NULL, 
EGR_DATA_RATE_STCNT                               VARCHAR2(32) NOT NULL, 
EGR_RATE_MIN                                      NUMBER(20,4) NOT NULL, 
EGR_RATE_MAX                                      NUMBER(20,4) NOT NULL, 
EGR_RATE_STCNT                                    VARCHAR2(32) NOT NULL, 
TOTAL_EGR_DISCARD_MIN                             NUMBER(20,4) NOT NULL, 
TOTAL_EGR_DISCARD_MAX                             NUMBER(20,4) NOT NULL, 
TOTAL_EGR_DISCARD_STCNT                           VARCHAR2(32) NOT NULL, 
EGR_MSGSPOOL_DISCD_MIN                            NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_DISCD_MAX                            NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_DISCD_STCNT                          VARCHAR2(32) NOT NULL, 
EGR_CLIENT_NOT_CONTD_MIN                          NUMBER(20,4) NOT NULL, 
EGR_CLIENT_NOT_CONTD_MAX                          NUMBER(20,4) NOT NULL, 
EGR_CLIENT_NOT_CONTD_STCNT                        VARCHAR2(32) NOT NULL, 
EGR_COMPRESS_CONGEST_MIN                          NUMBER(20,4) NOT NULL, 
EGR_COMPRESS_CONGEST_MAX                          NUMBER(20,4) NOT NULL, 
EGR_COMPRESS_CONGEST_STCNT                        VARCHAR2(32) NOT NULL, 
EGR_MSG_ELIDED_MIN                                NUMBER(20,4) NOT NULL, 
EGR_MSG_ELIDED_MAX                                NUMBER(20,4) NOT NULL, 
EGR_MSG_ELIDED_STCNT                              VARCHAR2(32) NOT NULL, 
EGR_MSG_PROMO_CONGEST_MIN                         NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMO_CONGEST_MAX                         NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMO_CONGEST_STCNT                       VARCHAR2(32) NOT NULL, 
EGR_MSGSPOOL_CONGEST_MIN                          NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_CONGEST_MAX                          NUMBER(20,4) NOT NULL, 
EGR_MSGSPOOL_CONGEST_STCNT                        VARCHAR2(32) NOT NULL, 
EGR_TRANSMIT_CONGEST_MIN                          NUMBER(20,4) NOT NULL, 
EGR_TRANSMIT_CONGEST_MAX                          NUMBER(20,4) NOT NULL, 
EGR_TRANSMIT_CONGEST_STCNT                        VARCHAR2(32) NOT NULL, 
EGR_TTL_EXCEED_MIN                                NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEED_MAX                                NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEED_STCNT                              VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgVPNTest_TREND ADD constraint PK_SolaceMsgVPNTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
ENABLED_STATUS_MIN                                VARCHAR2(256) NOT NULL, 
ENABLED_STATUS_MAX                                VARCHAR2(256) NOT NULL, 
LOCAL_STATUS_MIN                                  VARCHAR2(256) NOT NULL, 
LOCAL_STATUS_MAX                                  VARCHAR2(256) NOT NULL, 
OPERATIONAL_STATUS_MIN                            VARCHAR2(256) NOT NULL, 
OPERATIONAL_STATUS_MAX                            VARCHAR2(256) NOT NULL, 
IS_MGMT_VPN_MIN                                   VARCHAR2(256) NOT NULL, 
IS_MGMT_VPN_MAX                                   VARCHAR2(256) NOT NULL, 
DIST_CACHE_MGMT_STATUS_MIN                        VARCHAR2(256) NOT NULL, 
DIST_CACHE_MGMT_STATUS_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_LOCAL_UNIQUE_SUB_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_RMT_UNIQUEU_SUB_MAX                         VARCHAR2(256) NOT NULL, 
TOTAL_UNIQUE_SUB_MIN                              VARCHAR2(256) NOT NULL, 
TOTAL_UNIQUE_SUB_MAX                              VARCHAR2(256) NOT NULL, 
MAX_SUBSCRIPTION_MIN                              VARCHAR2(256) NOT NULL, 
MAX_SUBSCRIPTION_MAX                              VARCHAR2(256) NOT NULL, 
SUBSCRIPTION_USAGE_MIN                            VARCHAR2(256) NOT NULL, 
SUBSCRIPTION_USAGE_MAX                            VARCHAR2(256) NOT NULL, 
ADD_SUB_MSG_RCVD_MIN                              VARCHAR2(256) NOT NULL, 
ADD_SUB_MSG_RCVD_MAX                              VARCHAR2(256) NOT NULL, 
ADD_SUB_MSG_SENT_MIN                              VARCHAR2(256) NOT NULL, 
ADD_SUB_MSG_SENT_MAX                              VARCHAR2(256) NOT NULL, 
DENINED_SUB_TOPIC_ACL_MIN                         VARCHAR2(256) NOT NULL, 
DENINED_SUB_TOPIC_ACL_MAX                         VARCHAR2(256) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_MIN                        VARCHAR2(256) NOT NULL, 
DENIED_SUB_TOPIC_RVSRD_MAX                        VARCHAR2(256) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_MIN                        VARCHAR2(256) NOT NULL, 
DENIED_UNSUB_TOPIC_ACL_MAX                        VARCHAR2(256) NOT NULL, 
DENIED_SUB_PERMISSION_MIN                         VARCHAR2(256) NOT NULL, 
DENIED_SUB_PERMISSION_MAX                         VARCHAR2(256) NOT NULL, 
DENIED_UNSUB_PERMISSION_MIN                       VARCHAR2(256) NOT NULL, 
DENIED_UNSUB_PERMISSION_MAX                       VARCHAR2(256) NOT NULL, 
AMQP_CONNS_MIN                                    VARCHAR2(256) NOT NULL, 
AMQP_CONNS_MAX                                    VARCHAR2(256) NOT NULL, 
MAX_AMQP_CONNS_MIN                                VARCHAR2(256) NOT NULL, 
MAX_AMQP_CONNS_MAX                                VARCHAR2(256) NOT NULL, 
AMQP_USAGE_MIN                                    VARCHAR2(256) NOT NULL, 
AMQP_USAGE_MAX                                    VARCHAR2(256) NOT NULL, 
MQTT_CONNS_MIN                                    VARCHAR2(256) NOT NULL, 
MQTT_CONNS_MAX                                    VARCHAR2(256) NOT NULL, 
MAX_MQTT_CONNS_MIN                                VARCHAR2(256) NOT NULL, 
MAX_MQTT_CONNS_MAX                                VARCHAR2(256) NOT NULL, 
MQTT_USAGE_MIN                                    VARCHAR2(256) NOT NULL, 
MQTT_USAGE_MAX                                    VARCHAR2(256) NOT NULL, 
IN_REST_CONNS_MIN                                 VARCHAR2(256) NOT NULL, 
IN_REST_CONNS_MAX                                 VARCHAR2(256) NOT NULL, 
MAX_IN_REST_CONNS_MIN                             VARCHAR2(256) NOT NULL, 
MAX_IN_REST_CONNS_MAX                             VARCHAR2(256) NOT NULL, 
IN_REST_USAGE_MIN                                 VARCHAR2(256) NOT NULL, 
IN_REST_USAGE_MAX                                 VARCHAR2(256) NOT NULL, 
OUT_REST_CONNS_MIN                                VARCHAR2(256) NOT NULL, 
OUT_REST_CONNS_MAX                                VARCHAR2(256) NOT NULL, 
MAX_OUT_REST_CONNS_MIN                            VARCHAR2(256) NOT NULL, 
MAX_OUT_REST_CONNS_MAX                            VARCHAR2(256) NOT NULL, 
OUT_REST_USAGE_MIN                                VARCHAR2(256) NOT NULL, 
OUT_REST_USAGE_MAX                                VARCHAR2(256) NOT NULL, 
SMF_CONNS_MIN                                     VARCHAR2(256) NOT NULL, 
SMF_CONNS_MAX                                     VARCHAR2(256) NOT NULL, 
MAX_SMF_CONNS_MIN                                 VARCHAR2(256) NOT NULL, 
MAX_SMF_CONNS_MAX                                 VARCHAR2(256) NOT NULL, 
SMF_USAGE_MIN                                     VARCHAR2(256) NOT NULL, 
SMF_USAGE_MAX                                     VARCHAR2(256) NOT NULL, 
WEB_CONNS_MIN                                     VARCHAR2(256) NOT NULL, 
WEB_CONNS_MAX                                     VARCHAR2(256) NOT NULL, 
MAX_WEB_CONNS_MIN                                 VARCHAR2(256) NOT NULL, 
MAX_WEB_CONNS_MAX                                 VARCHAR2(256) NOT NULL, 
WEB_CONNS_USAGE_MIN                               VARCHAR2(256) NOT NULL, 
WEB_CONNS_USAGE_MAX                               VARCHAR2(256) NOT NULL, 
TOTAL_CURR_CONNS_MIN                              VARCHAR2(256) NOT NULL, 
TOTAL_CURR_CONNS_MAX                              VARCHAR2(256) NOT NULL, 
MAX_CONNS_ALLOWED_MIN                             VARCHAR2(256) NOT NULL, 
MAX_CONNS_ALLOWED_MAX                             VARCHAR2(256) NOT NULL, 
CONN_USAGE_MIN                                    VARCHAR2(256) NOT NULL, 
CONN_USAGE_MAX                                    VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_DATA_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_MIN                         VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_DATA_SNT_MAX                         VARCHAR2(256) NOT NULL, 
CLIENT_DATA_RCVD_MIN                              VARCHAR2(256) NOT NULL, 
CLIENT_DATA_RCVD_MAX                              VARCHAR2(256) NOT NULL, 
CLIENT_DATA_SENT_MIN                              VARCHAR2(256) NOT NULL, 
CLIENT_DATA_SENT_MAX                              VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MAX                        VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MIN                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MAX                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_SNT_MIN                           VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_SNT_MAX                           VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_MIN                         VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_MSG_RCVD_MAX                         VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_MIN                          VARCHAR2(256) NOT NULL, 
CLIENT_CNTRL_MSG_SNT_MAX                          VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSG_RCVD_MAX                         VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_MIN                          VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSG_SNT_MAX                          VARCHAR2(256) NOT NULL, 
LOGIN_MSG_RCVD_MIN                                VARCHAR2(256) NOT NULL, 
LOGIN_MSG_RCVD_MAX                                VARCHAR2(256) NOT NULL, 
LOGIN_MSG_SENT_MIN                                VARCHAR2(256) NOT NULL, 
LOGIN_MSG_SENT_MAX                                VARCHAR2(256) NOT NULL, 
INGR_DATA_RATE_MIN                                VARCHAR2(256) NOT NULL, 
INGR_DATA_RATE_MAX                                VARCHAR2(256) NOT NULL, 
INGR_RATE_MIN                                     VARCHAR2(256) NOT NULL, 
INGR_RATE_MAX                                     VARCHAR2(256) NOT NULL, 
TOTAL_INGR_DISCARD_MIN                            VARCHAR2(256) NOT NULL, 
TOTAL_INGR_DISCARD_MAX                            VARCHAR2(256) NOT NULL, 
INGR_MSGSPOOL_CONGEST_MIN                         VARCHAR2(256) NOT NULL, 
INGR_MSGSPOOL_CONGEST_MAX                         VARCHAR2(256) NOT NULL, 
INGR_MSG_PROMO_CONGEST_MIN                        VARCHAR2(256) NOT NULL, 
INGR_MSG_PROMO_CONGEST_MAX                        VARCHAR2(256) NOT NULL, 
INGR_MSGSPOOL_DISCD_MIN                           VARCHAR2(256) NOT NULL, 
INGR_MSGSPOOL_DISCD_MAX                           VARCHAR2(256) NOT NULL, 
INGR_TOOBIG_MSG_MIN                               VARCHAR2(256) NOT NULL, 
INGR_TOOBIG_MSG_MAX                               VARCHAR2(256) NOT NULL, 
INGR_NO_SUB_MATCH_MIN                             VARCHAR2(256) NOT NULL, 
INGR_NO_SUB_MATCH_MAX                             VARCHAR2(256) NOT NULL, 
INGR_PARSE_ERR_MIN                                VARCHAR2(256) NOT NULL, 
INGR_PARSE_ERR_MAX                                VARCHAR2(256) NOT NULL, 
INGR_PUB_TOPIC_ACL_MIN                            VARCHAR2(256) NOT NULL, 
INGR_PUB_TOPIC_ACL_MAX                            VARCHAR2(256) NOT NULL, 
INGR_TOPIC_PARSE_ERR_MIN                          VARCHAR2(256) NOT NULL, 
INGR_TOPIC_PARSE_ERR_MAX                          VARCHAR2(256) NOT NULL, 
INGR_TTL_EXCEED_MIN                               VARCHAR2(256) NOT NULL, 
INGR_TTL_EXCEED_MAX                               VARCHAR2(256) NOT NULL, 
EGR_DATA_RATE_MIN                                 VARCHAR2(256) NOT NULL, 
EGR_DATA_RATE_MAX                                 VARCHAR2(256) NOT NULL, 
EGR_RATE_MIN                                      VARCHAR2(256) NOT NULL, 
EGR_RATE_MAX                                      VARCHAR2(256) NOT NULL, 
TOTAL_EGR_DISCARD_MIN                             VARCHAR2(256) NOT NULL, 
TOTAL_EGR_DISCARD_MAX                             VARCHAR2(256) NOT NULL, 
EGR_MSGSPOOL_DISCD_MIN                            VARCHAR2(256) NOT NULL, 
EGR_MSGSPOOL_DISCD_MAX                            VARCHAR2(256) NOT NULL, 
EGR_CLIENT_NOT_CONTD_MIN                          VARCHAR2(256) NOT NULL, 
EGR_CLIENT_NOT_CONTD_MAX                          VARCHAR2(256) NOT NULL, 
EGR_COMPRESS_CONGEST_MIN                          VARCHAR2(256) NOT NULL, 
EGR_COMPRESS_CONGEST_MAX                          VARCHAR2(256) NOT NULL, 
EGR_MSG_ELIDED_MIN                                VARCHAR2(256) NOT NULL, 
EGR_MSG_ELIDED_MAX                                VARCHAR2(256) NOT NULL, 
EGR_MSG_PROMO_CONGEST_MIN                         VARCHAR2(256) NOT NULL, 
EGR_MSG_PROMO_CONGEST_MAX                         VARCHAR2(256) NOT NULL, 
EGR_MSGSPOOL_CONGEST_MIN                          VARCHAR2(256) NOT NULL, 
EGR_MSGSPOOL_CONGEST_MAX                          VARCHAR2(256) NOT NULL, 
EGR_TRANSMIT_CONGEST_MIN                          VARCHAR2(256) NOT NULL, 
EGR_TRANSMIT_CONGEST_MAX                          VARCHAR2(256) NOT NULL, 
EGR_TTL_EXCEED_MIN                                VARCHAR2(256) NOT NULL, 
EGR_TTL_EXCEED_MAX                                VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgVPNTest_THRESH ADD constraint PK_SolaceMsgVPNTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgVPNTest_THRESH ON SolaceMsgVPNTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgVPNTest ON SolaceMsgVPNTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgVPNTest ON SolaceMsgVPNTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNClTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNClTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
IS_SLOW_SUBSCRIBER                                NUMBER(20,4) NOT NULL, 
IS_SLOW_SUBSCRIBER_ST                             VARCHAR2(32) NOT NULL, 
TOTAL_SUBSCRIPTIONS                               NUMBER(20,4) NOT NULL, 
TOTAL_SUBSCRIPTIONS_ST                            VARCHAR2(32) NOT NULL, 
CLIENT_ID                                         NUMBER(20,4) NOT NULL, 
CLIENT_ID_ST                                      VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD                          NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_ST                       VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_DATA_SENT                          NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_ST                       VARCHAR2(32) NOT NULL, 
CLIENT_DATA_RECEIVED                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RECEIVED_ST                           VARCHAR2(32) NOT NULL, 
CLIENT_DATA_SENT                                  NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_ST                               VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_SENT                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_ST                         VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_RCVD                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_ST                           VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_SEN                               NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SEN_ST                            VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD                           NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_ST                        VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_MSG_SENT                           NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_ST                        VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT                            NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_ST                         VARCHAR2(32) NOT NULL, 
LOGIN_MESSAGES_RCVD                               NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_RCVD_ST                            VARCHAR2(32) NOT NULL, 
LOGIN_MESSAGES_SENT                               NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_SENT_ST                            VARCHAR2(32) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD                            NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_ST                         VARCHAR2(32) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT                            NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_ST                         VARCHAR2(32) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT                          NUMBER(20,4) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_ST                       VARCHAR2(32) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT                           NUMBER(20,4) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_ST                        VARCHAR2(32) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT                            NUMBER(20,4) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_ST                         VARCHAR2(32) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT                          NUMBER(20,4) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_ST                       VARCHAR2(32) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD                            NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_ST                         VARCHAR2(32) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT                            NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_ST                         VARCHAR2(32) NOT NULL, 
NOT_FOUND_MSGS_SENT                               NUMBER(20,4) NOT NULL, 
NOT_FOUND_MSGS_SENT_ST                            VARCHAR2(32) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT                          NUMBER(20,4) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_ST                       VARCHAR2(32) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN                          NUMBER(20,4) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_ST                       VARCHAR2(32) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND                          NUMBER(20,4) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_ST                       VARCHAR2(32) NOT NULL, 
INGRESS_DATA_RATE                                 NUMBER(20,4) NOT NULL, 
INGRESS_DATA_RATE_ST                              VARCHAR2(32) NOT NULL, 
INGRESS_RATE                                      NUMBER(20,4) NOT NULL, 
INGRESS_RATE_ST                                   VARCHAR2(32) NOT NULL, 
INGRESS_COMPRESSED_DATA                           NUMBER(20,4) NOT NULL, 
INGRESS_COMPRESSED_DATA_ST                        VARCHAR2(32) NOT NULL, 
TOTAL_INGRESS_DISCARDS                            NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_ST                         VARCHAR2(32) NOT NULL, 
MESSAGE_SPOOL_CONGESTION                          NUMBER(20,4) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_ST                       VARCHAR2(32) NOT NULL, 
MSG_PROMOTNN_CONGSTN                              NUMBER(20,4) NOT NULL, 
MSG_PROMOTNN_CONGSTN_ST                           VARCHAR2(32) NOT NULL, 
MSG_SPOOL_DISCARDS                                NUMBER(20,4) NOT NULL, 
MSG_SPOOL_DISCARDS_ST                             VARCHAR2(32) NOT NULL, 
MSG_TOO_BIG                                       NUMBER(20,4) NOT NULL, 
MSG_TOO_BIG_ST                                    VARCHAR2(32) NOT NULL, 
NO_SUBSCRIPTION_MATCH                             NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_ST                          VARCHAR2(32) NOT NULL, 
PARSE_ERROR                                       NUMBER(20,4) NOT NULL, 
PARSE_ERROR_ST                                    VARCHAR2(32) NOT NULL, 
PUBLISH_TOPIC_ACL                                 NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_ST                              VARCHAR2(32) NOT NULL, 
TOPIC_PARSE_ERROR                                 NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_ST                              VARCHAR2(32) NOT NULL, 
TTL_EXCEEDED                                      NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_ST                                   VARCHAR2(32) NOT NULL, 
EGRESS_DATA_RATE                                  NUMBER(20,4) NOT NULL, 
EGRESS_DATA_RATE_ST                               VARCHAR2(32) NOT NULL, 
EGRESS_RATE                                       NUMBER(20,4) NOT NULL, 
EGRESS_RATE_ST                                    VARCHAR2(32) NOT NULL, 
EGRESS_COMPRESSED_DATA                            NUMBER(20,4) NOT NULL, 
EGRESS_COMPRESSED_DATA_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_EGRESS_DISCARDS                             NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_ST                          VARCHAR2(32) NOT NULL, 
CLIENT_NOT_CONNECTED                              NUMBER(20,4) NOT NULL, 
CLIENT_NOT_CONNECTED_ST                           VARCHAR2(32) NOT NULL, 
COMPRESSION_CONGESTION                            NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_ST                         VARCHAR2(32) NOT NULL, 
MESSAGE_ELIDED                                    NUMBER(20,4) NOT NULL, 
MESSAGE_ELIDED_ST                                 VARCHAR2(32) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN                          NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_ST                       VARCHAR2(32) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN                             NUMBER(20,4) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_ST                          VARCHAR2(32) NOT NULL, 
TRANSMIT_CONGESTION                               NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_ST                            VARCHAR2(32) NOT NULL, 
EGR_TTL_EXCEEDED                                  NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEEDED_ST                               VARCHAR2(32) NOT NULL, 
CONN_STATE                                        NUMBER(20,4) NOT NULL, 
CONN_STATE_ST                                     VARCHAR2(32) NOT NULL, 
CONN_UPTIME                                       NUMBER(20,4) NOT NULL, 
CONN_UPTIME_ST                                    VARCHAR2(32) NOT NULL, 
CONN_COMPRESSED                                   NUMBER(20,4) NOT NULL, 
CONN_COMPRESSED_ST                                VARCHAR2(32) NOT NULL, 
CONN_TLS_STATE                                    NUMBER(20,4) NOT NULL, 
CONN_TLS_STATE_ST                                 VARCHAR2(32) NOT NULL, 
SEND_QUEUE                                        NUMBER(20,4) NOT NULL, 
SEND_QUEUE_ST                                     VARCHAR2(32) NOT NULL, 
RECEIVE_QUEUE                                     NUMBER(20,4) NOT NULL, 
RECEIVE_QUEUE_ST                                  VARCHAR2(32) NOT NULL, 
ROUND_TRIP                                        NUMBER(20,4) NOT NULL, 
ROUND_TRIP_ST                                     VARCHAR2(32) NOT NULL, 
TIMED_RETRANSMIT                                  NUMBER(20,4) NOT NULL, 
TIMED_RETRANSMIT_ST                               VARCHAR2(32) NOT NULL, 
FAST_RETRANSMIT                                   NUMBER(20,4) NOT NULL, 
FAST_RETRANSMIT_ST                                VARCHAR2(32) NOT NULL, 
REC_OUTOF_ORDER                                   NUMBER(20,4) NOT NULL, 
REC_OUTOF_ORDER_ST                                VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgVPNClTest ON SolaceMsgVPNClTest(MSMT_TIME);
ALTER TABLE SolaceMsgVPNClTest ADD constraint PK_SolaceMsgVPNClTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgVPNClTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNClTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
IS_SLOW_SUBSCRIBER_MIN                            NUMBER(20,4) NOT NULL, 
IS_SLOW_SUBSCRIBER_MAX                            NUMBER(20,4) NOT NULL, 
IS_SLOW_SUBSCRIBER_STCNT                          VARCHAR2(32) NOT NULL, 
TOTAL_SUBSCRIPTIONS_MIN                           NUMBER(20,4) NOT NULL, 
TOTAL_SUBSCRIPTIONS_MAX                           NUMBER(20,4) NOT NULL, 
TOTAL_SUBSCRIPTIONS_STCNT                         VARCHAR2(32) NOT NULL, 
CLIENT_ID_MIN                                     NUMBER(20,4) NOT NULL, 
CLIENT_ID_MAX                                     NUMBER(20,4) NOT NULL, 
CLIENT_ID_STCNT                                   VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_MIN                      NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_MAX                      NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_STCNT                    VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_MIN                      NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_MAX                      NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_STCNT                    VARCHAR2(32) NOT NULL, 
CLIENT_DATA_RECEIVED_MIN                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RECEIVED_MAX                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_RECEIVED_STCNT                        VARCHAR2(32) NOT NULL, 
CLIENT_DATA_SENT_MIN                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_MAX                              NUMBER(20,4) NOT NULL, 
CLIENT_DATA_SENT_STCNT                            VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MIN                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MAX                          NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_RCVD_STCNT                        VARCHAR2(32) NOT NULL, 
CLIENT_DATA_MSG_SEN_MIN                           NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SEN_MAX                           NUMBER(20,4) NOT NULL, 
CLIENT_DATA_MSG_SEN_STCNT                         VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_MIN                       NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_MAX                       NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_STCNT                     VARCHAR2(32) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_MIN                       NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_MAX                       NUMBER(20,4) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_STCNT                     VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
LOGIN_MESSAGES_RCVD_MIN                           NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_RCVD_MAX                           NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_RCVD_STCNT                         VARCHAR2(32) NOT NULL, 
LOGIN_MESSAGES_SENT_MIN                           NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_SENT_MAX                           NUMBER(20,4) NOT NULL, 
LOGIN_MESSAGES_SENT_STCNT                         VARCHAR2(32) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_MIN                        NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_MAX                        NUMBER(20,4) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_MIN                      NUMBER(20,4) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_MAX                      NUMBER(20,4) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_STCNT                    VARCHAR2(32) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_MIN                       NUMBER(20,4) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_MAX                       NUMBER(20,4) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_STCNT                     VARCHAR2(32) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_MIN                        NUMBER(20,4) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_MAX                        NUMBER(20,4) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_MIN                      NUMBER(20,4) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_MAX                      NUMBER(20,4) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_STCNT                    VARCHAR2(32) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_MIN                        NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_MAX                        NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_STCNT                      VARCHAR2(32) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_MIN                        NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_MAX                        NUMBER(20,4) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_STCNT                      VARCHAR2(32) NOT NULL, 
NOT_FOUND_MSGS_SENT_MIN                           NUMBER(20,4) NOT NULL, 
NOT_FOUND_MSGS_SENT_MAX                           NUMBER(20,4) NOT NULL, 
NOT_FOUND_MSGS_SENT_STCNT                         VARCHAR2(32) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_MIN                      NUMBER(20,4) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_MAX                      NUMBER(20,4) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_STCNT                    VARCHAR2(32) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_MIN                      NUMBER(20,4) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_MAX                      NUMBER(20,4) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_STCNT                    VARCHAR2(32) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_MIN                      NUMBER(20,4) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_MAX                      NUMBER(20,4) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_STCNT                    VARCHAR2(32) NOT NULL, 
INGRESS_DATA_RATE_MIN                             NUMBER(20,4) NOT NULL, 
INGRESS_DATA_RATE_MAX                             NUMBER(20,4) NOT NULL, 
INGRESS_DATA_RATE_STCNT                           VARCHAR2(32) NOT NULL, 
INGRESS_RATE_MIN                                  NUMBER(20,4) NOT NULL, 
INGRESS_RATE_MAX                                  NUMBER(20,4) NOT NULL, 
INGRESS_RATE_STCNT                                VARCHAR2(32) NOT NULL, 
INGRESS_COMPRESSED_DATA_MIN                       NUMBER(20,4) NOT NULL, 
INGRESS_COMPRESSED_DATA_MAX                       NUMBER(20,4) NOT NULL, 
INGRESS_COMPRESSED_DATA_STCNT                     VARCHAR2(32) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_INGRESS_DISCARDS_STCNT                      VARCHAR2(32) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_MIN                      NUMBER(20,4) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_MAX                      NUMBER(20,4) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_STCNT                    VARCHAR2(32) NOT NULL, 
MSG_PROMOTNN_CONGSTN_MIN                          NUMBER(20,4) NOT NULL, 
MSG_PROMOTNN_CONGSTN_MAX                          NUMBER(20,4) NOT NULL, 
MSG_PROMOTNN_CONGSTN_STCNT                        VARCHAR2(32) NOT NULL, 
MSG_SPOOL_DISCARDS_MIN                            NUMBER(20,4) NOT NULL, 
MSG_SPOOL_DISCARDS_MAX                            NUMBER(20,4) NOT NULL, 
MSG_SPOOL_DISCARDS_STCNT                          VARCHAR2(32) NOT NULL, 
MSG_TOO_BIG_MIN                                   NUMBER(20,4) NOT NULL, 
MSG_TOO_BIG_MAX                                   NUMBER(20,4) NOT NULL, 
MSG_TOO_BIG_STCNT                                 VARCHAR2(32) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MIN                         NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MAX                         NUMBER(20,4) NOT NULL, 
NO_SUBSCRIPTION_MATCH_STCNT                       VARCHAR2(32) NOT NULL, 
PARSE_ERROR_MIN                                   NUMBER(20,4) NOT NULL, 
PARSE_ERROR_MAX                                   NUMBER(20,4) NOT NULL, 
PARSE_ERROR_STCNT                                 VARCHAR2(32) NOT NULL, 
PUBLISH_TOPIC_ACL_MIN                             NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_MAX                             NUMBER(20,4) NOT NULL, 
PUBLISH_TOPIC_ACL_STCNT                           VARCHAR2(32) NOT NULL, 
TOPIC_PARSE_ERROR_MIN                             NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_MAX                             NUMBER(20,4) NOT NULL, 
TOPIC_PARSE_ERROR_STCNT                           VARCHAR2(32) NOT NULL, 
TTL_EXCEEDED_MIN                                  NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_MAX                                  NUMBER(20,4) NOT NULL, 
TTL_EXCEEDED_STCNT                                VARCHAR2(32) NOT NULL, 
EGRESS_DATA_RATE_MIN                              NUMBER(20,4) NOT NULL, 
EGRESS_DATA_RATE_MAX                              NUMBER(20,4) NOT NULL, 
EGRESS_DATA_RATE_STCNT                            VARCHAR2(32) NOT NULL, 
EGRESS_RATE_MIN                                   NUMBER(20,4) NOT NULL, 
EGRESS_RATE_MAX                                   NUMBER(20,4) NOT NULL, 
EGRESS_RATE_STCNT                                 VARCHAR2(32) NOT NULL, 
EGRESS_COMPRESSED_DATA_MIN                        NUMBER(20,4) NOT NULL, 
EGRESS_COMPRESSED_DATA_MAX                        NUMBER(20,4) NOT NULL, 
EGRESS_COMPRESSED_DATA_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_EGRESS_DISCARDS_STCNT                       VARCHAR2(32) NOT NULL, 
CLIENT_NOT_CONNECTED_MIN                          NUMBER(20,4) NOT NULL, 
CLIENT_NOT_CONNECTED_MAX                          NUMBER(20,4) NOT NULL, 
CLIENT_NOT_CONNECTED_STCNT                        VARCHAR2(32) NOT NULL, 
COMPRESSION_CONGESTION_MIN                        NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_MAX                        NUMBER(20,4) NOT NULL, 
COMPRESSION_CONGESTION_STCNT                      VARCHAR2(32) NOT NULL, 
MESSAGE_ELIDED_MIN                                NUMBER(20,4) NOT NULL, 
MESSAGE_ELIDED_MAX                                NUMBER(20,4) NOT NULL, 
MESSAGE_ELIDED_STCNT                              VARCHAR2(32) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_MIN                      NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_MAX                      NUMBER(20,4) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_STCNT                    VARCHAR2(32) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_MIN                         NUMBER(20,4) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_MAX                         NUMBER(20,4) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_STCNT                       VARCHAR2(32) NOT NULL, 
TRANSMIT_CONGESTION_MIN                           NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_MAX                           NUMBER(20,4) NOT NULL, 
TRANSMIT_CONGESTION_STCNT                         VARCHAR2(32) NOT NULL, 
EGR_TTL_EXCEEDED_MIN                              NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEEDED_MAX                              NUMBER(20,4) NOT NULL, 
EGR_TTL_EXCEEDED_STCNT                            VARCHAR2(32) NOT NULL, 
CONN_STATE_MIN                                    NUMBER(20,4) NOT NULL, 
CONN_STATE_MAX                                    NUMBER(20,4) NOT NULL, 
CONN_STATE_STCNT                                  VARCHAR2(32) NOT NULL, 
CONN_UPTIME_MIN                                   NUMBER(20,4) NOT NULL, 
CONN_UPTIME_MAX                                   NUMBER(20,4) NOT NULL, 
CONN_UPTIME_STCNT                                 VARCHAR2(32) NOT NULL, 
CONN_COMPRESSED_MIN                               NUMBER(20,4) NOT NULL, 
CONN_COMPRESSED_MAX                               NUMBER(20,4) NOT NULL, 
CONN_COMPRESSED_STCNT                             VARCHAR2(32) NOT NULL, 
CONN_TLS_STATE_MIN                                NUMBER(20,4) NOT NULL, 
CONN_TLS_STATE_MAX                                NUMBER(20,4) NOT NULL, 
CONN_TLS_STATE_STCNT                              VARCHAR2(32) NOT NULL, 
SEND_QUEUE_MIN                                    NUMBER(20,4) NOT NULL, 
SEND_QUEUE_MAX                                    NUMBER(20,4) NOT NULL, 
SEND_QUEUE_STCNT                                  VARCHAR2(32) NOT NULL, 
RECEIVE_QUEUE_MIN                                 NUMBER(20,4) NOT NULL, 
RECEIVE_QUEUE_MAX                                 NUMBER(20,4) NOT NULL, 
RECEIVE_QUEUE_STCNT                               VARCHAR2(32) NOT NULL, 
ROUND_TRIP_MIN                                    NUMBER(20,4) NOT NULL, 
ROUND_TRIP_MAX                                    NUMBER(20,4) NOT NULL, 
ROUND_TRIP_STCNT                                  VARCHAR2(32) NOT NULL, 
TIMED_RETRANSMIT_MIN                              NUMBER(20,4) NOT NULL, 
TIMED_RETRANSMIT_MAX                              NUMBER(20,4) NOT NULL, 
TIMED_RETRANSMIT_STCNT                            VARCHAR2(32) NOT NULL, 
FAST_RETRANSMIT_MIN                               NUMBER(20,4) NOT NULL, 
FAST_RETRANSMIT_MAX                               NUMBER(20,4) NOT NULL, 
FAST_RETRANSMIT_STCNT                             VARCHAR2(32) NOT NULL, 
REC_OUTOF_ORDER_MIN                               NUMBER(20,4) NOT NULL, 
REC_OUTOF_ORDER_MAX                               NUMBER(20,4) NOT NULL, 
REC_OUTOF_ORDER_STCNT                             VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgVPNClTest_TREND ADD constraint PK_SolaceMsgVPNClTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNClTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNClTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
IS_SLOW_SUBSCRIBER_MIN                            VARCHAR2(256) NOT NULL, 
IS_SLOW_SUBSCRIBER_MAX                            VARCHAR2(256) NOT NULL, 
TOTAL_SUBSCRIPTIONS_MIN                           VARCHAR2(256) NOT NULL, 
TOTAL_SUBSCRIPTIONS_MAX                           VARCHAR2(256) NOT NULL, 
CLIENT_ID_MIN                                     VARCHAR2(256) NOT NULL, 
CLIENT_ID_MAX                                     VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_MIN                      VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_DATA_RCVD_MAX                      VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_MIN                      VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_DATA_SENT_MAX                      VARCHAR2(256) NOT NULL, 
CLIENT_DATA_RECEIVED_MIN                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_RECEIVED_MAX                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_SENT_MIN                              VARCHAR2(256) NOT NULL, 
CLIENT_DATA_SENT_MAX                              VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_DATA_SENT_MAX                        VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MIN                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_RCVD_MAX                          VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_SEN_MIN                           VARCHAR2(256) NOT NULL, 
CLIENT_DATA_MSG_SEN_MAX                           VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_MIN                       VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_MSG_RCVD_MAX                       VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_MIN                       VARCHAR2(256) NOT NULL, 
CLIENT_CONTROL_MSG_SENT_MAX                       VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSGS_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_CLIENT_MSGS_SENT_MAX                        VARCHAR2(256) NOT NULL, 
LOGIN_MESSAGES_RCVD_MIN                           VARCHAR2(256) NOT NULL, 
LOGIN_MESSAGES_RCVD_MAX                           VARCHAR2(256) NOT NULL, 
LOGIN_MESSAGES_SENT_MIN                           VARCHAR2(256) NOT NULL, 
LOGIN_MESSAGES_SENT_MAX                           VARCHAR2(256) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
ADD_SBSCRPTN_MSGS_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_MIN                        VARCHAR2(256) NOT NULL, 
ADD_SBSCRPTN_MSGS_SENT_MAX                        VARCHAR2(256) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_MIN                      VARCHAR2(256) NOT NULL, 
ALREADY_EXISTS_MSGS_SENT_MAX                      VARCHAR2(256) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_MIN                       VARCHAR2(256) NOT NULL, 
NOT_ENGH_SPCE_MSGS_SENT_MAX                       VARCHAR2(256) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_MIN                        VARCHAR2(256) NOT NULL, 
MAX_EXCEEDED_MSGS_SENT_MAX                        VARCHAR2(256) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_MIN                      VARCHAR2(256) NOT NULL, 
PRSE_ERR_ON_AD_MSGS_SENT_MAX                      VARCHAR2(256) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_MIN                        VARCHAR2(256) NOT NULL, 
RMV_SBSCRPTN_MSGS_RCVD_MAX                        VARCHAR2(256) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_MIN                        VARCHAR2(256) NOT NULL, 
RMV_SBSCRPTN_MSGS_SENT_MAX                        VARCHAR2(256) NOT NULL, 
NOT_FOUND_MSGS_SENT_MIN                           VARCHAR2(256) NOT NULL, 
NOT_FOUND_MSGS_SENT_MAX                           VARCHAR2(256) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_MIN                      VARCHAR2(256) NOT NULL, 
PRSE_ER_ON_RMV_MSGS_SENT_MAX                      VARCHAR2(256) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_MIN                      VARCHAR2(256) NOT NULL, 
DENIED_UNSUBSCRIBE_PRMSN_MAX                      VARCHAR2(256) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_MIN                      VARCHAR2(256) NOT NULL, 
UNSUBSCRIBE_CLNT_NOT_FND_MAX                      VARCHAR2(256) NOT NULL, 
INGRESS_DATA_RATE_MIN                             VARCHAR2(256) NOT NULL, 
INGRESS_DATA_RATE_MAX                             VARCHAR2(256) NOT NULL, 
INGRESS_RATE_MIN                                  VARCHAR2(256) NOT NULL, 
INGRESS_RATE_MAX                                  VARCHAR2(256) NOT NULL, 
INGRESS_COMPRESSED_DATA_MIN                       VARCHAR2(256) NOT NULL, 
INGRESS_COMPRESSED_DATA_MAX                       VARCHAR2(256) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_INGRESS_DISCARDS_MAX                        VARCHAR2(256) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_MIN                      VARCHAR2(256) NOT NULL, 
MESSAGE_SPOOL_CONGESTION_MAX                      VARCHAR2(256) NOT NULL, 
MSG_PROMOTNN_CONGSTN_MIN                          VARCHAR2(256) NOT NULL, 
MSG_PROMOTNN_CONGSTN_MAX                          VARCHAR2(256) NOT NULL, 
MSG_SPOOL_DISCARDS_MIN                            VARCHAR2(256) NOT NULL, 
MSG_SPOOL_DISCARDS_MAX                            VARCHAR2(256) NOT NULL, 
MSG_TOO_BIG_MIN                                   VARCHAR2(256) NOT NULL, 
MSG_TOO_BIG_MAX                                   VARCHAR2(256) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MIN                         VARCHAR2(256) NOT NULL, 
NO_SUBSCRIPTION_MATCH_MAX                         VARCHAR2(256) NOT NULL, 
PARSE_ERROR_MIN                                   VARCHAR2(256) NOT NULL, 
PARSE_ERROR_MAX                                   VARCHAR2(256) NOT NULL, 
PUBLISH_TOPIC_ACL_MIN                             VARCHAR2(256) NOT NULL, 
PUBLISH_TOPIC_ACL_MAX                             VARCHAR2(256) NOT NULL, 
TOPIC_PARSE_ERROR_MIN                             VARCHAR2(256) NOT NULL, 
TOPIC_PARSE_ERROR_MAX                             VARCHAR2(256) NOT NULL, 
TTL_EXCEEDED_MIN                                  VARCHAR2(256) NOT NULL, 
TTL_EXCEEDED_MAX                                  VARCHAR2(256) NOT NULL, 
EGRESS_DATA_RATE_MIN                              VARCHAR2(256) NOT NULL, 
EGRESS_DATA_RATE_MAX                              VARCHAR2(256) NOT NULL, 
EGRESS_RATE_MIN                                   VARCHAR2(256) NOT NULL, 
EGRESS_RATE_MAX                                   VARCHAR2(256) NOT NULL, 
EGRESS_COMPRESSED_DATA_MIN                        VARCHAR2(256) NOT NULL, 
EGRESS_COMPRESSED_DATA_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_EGRESS_DISCARDS_MAX                         VARCHAR2(256) NOT NULL, 
CLIENT_NOT_CONNECTED_MIN                          VARCHAR2(256) NOT NULL, 
CLIENT_NOT_CONNECTED_MAX                          VARCHAR2(256) NOT NULL, 
COMPRESSION_CONGESTION_MIN                        VARCHAR2(256) NOT NULL, 
COMPRESSION_CONGESTION_MAX                        VARCHAR2(256) NOT NULL, 
MESSAGE_ELIDED_MIN                                VARCHAR2(256) NOT NULL, 
MESSAGE_ELIDED_MAX                                VARCHAR2(256) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_MIN                      VARCHAR2(256) NOT NULL, 
EGR_MSG_PROMOTION_CONGSN_MAX                      VARCHAR2(256) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_MIN                         VARCHAR2(256) NOT NULL, 
EGR_MSG_SPOOL_CONGSTN_MAX                         VARCHAR2(256) NOT NULL, 
TRANSMIT_CONGESTION_MIN                           VARCHAR2(256) NOT NULL, 
TRANSMIT_CONGESTION_MAX                           VARCHAR2(256) NOT NULL, 
EGR_TTL_EXCEEDED_MIN                              VARCHAR2(256) NOT NULL, 
EGR_TTL_EXCEEDED_MAX                              VARCHAR2(256) NOT NULL, 
CONN_STATE_MIN                                    VARCHAR2(256) NOT NULL, 
CONN_STATE_MAX                                    VARCHAR2(256) NOT NULL, 
CONN_UPTIME_MIN                                   VARCHAR2(256) NOT NULL, 
CONN_UPTIME_MAX                                   VARCHAR2(256) NOT NULL, 
CONN_COMPRESSED_MIN                               VARCHAR2(256) NOT NULL, 
CONN_COMPRESSED_MAX                               VARCHAR2(256) NOT NULL, 
CONN_TLS_STATE_MIN                                VARCHAR2(256) NOT NULL, 
CONN_TLS_STATE_MAX                                VARCHAR2(256) NOT NULL, 
SEND_QUEUE_MIN                                    VARCHAR2(256) NOT NULL, 
SEND_QUEUE_MAX                                    VARCHAR2(256) NOT NULL, 
RECEIVE_QUEUE_MIN                                 VARCHAR2(256) NOT NULL, 
RECEIVE_QUEUE_MAX                                 VARCHAR2(256) NOT NULL, 
ROUND_TRIP_MIN                                    VARCHAR2(256) NOT NULL, 
ROUND_TRIP_MAX                                    VARCHAR2(256) NOT NULL, 
TIMED_RETRANSMIT_MIN                              VARCHAR2(256) NOT NULL, 
TIMED_RETRANSMIT_MAX                              VARCHAR2(256) NOT NULL, 
FAST_RETRANSMIT_MIN                               VARCHAR2(256) NOT NULL, 
FAST_RETRANSMIT_MAX                               VARCHAR2(256) NOT NULL, 
REC_OUTOF_ORDER_MIN                               VARCHAR2(256) NOT NULL, 
REC_OUTOF_ORDER_MAX                               VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgVPNClTest_THRESH ADD constraint PK_SolaceMsgVPNClTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgVPNClTest_THRESH ON SolaceMsgVPNClTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgVPNClTest ON SolaceMsgVPNClTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgVPNClTest ON SolaceMsgVPNClTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNQClTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQClTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
DELIVER_MSG                                       NUMBER(20,4) NOT NULL, 
DELIVER_MSG_ST                                    VARCHAR2(32) NOT NULL, 
DISCD_MSG                                         NUMBER(20,4) NOT NULL, 
DISCD_MSG_ST                                      VARCHAR2(32) NOT NULL, 
LENGTH_MSG                                        NUMBER(20,4) NOT NULL, 
LENGTH_MSG_ST                                     VARCHAR2(32) NOT NULL, 
LENGTH_WORK                                       NUMBER(20,4) NOT NULL, 
LENGTH_WORK_ST                                    VARCHAR2(32) NOT NULL, 
HIGH_WATER_MARK_WORK                              NUMBER(20,4) NOT NULL, 
HIGH_WATER_MARK_WORK_ST                           VARCHAR2(32) NOT NULL, 
MAX_QUEUE_SIZE                                    NUMBER(20,4) NOT NULL, 
MAX_QUEUE_SIZE_ST                                 VARCHAR2(32) NOT NULL, 
QUEUE_USAGE                                       NUMBER(20,4) NOT NULL, 
QUEUE_USAGE_ST                                    VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgVPNQClTest ON SolaceMsgVPNQClTest(MSMT_TIME);
ALTER TABLE SolaceMsgVPNQClTest ADD constraint PK_SolaceMsgVPNQClTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgVPNQClTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQClTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
DELIVER_MSG_MIN                                   NUMBER(20,4) NOT NULL, 
DELIVER_MSG_MAX                                   NUMBER(20,4) NOT NULL, 
DELIVER_MSG_STCNT                                 VARCHAR2(32) NOT NULL, 
DISCD_MSG_MIN                                     NUMBER(20,4) NOT NULL, 
DISCD_MSG_MAX                                     NUMBER(20,4) NOT NULL, 
DISCD_MSG_STCNT                                   VARCHAR2(32) NOT NULL, 
LENGTH_MSG_MIN                                    NUMBER(20,4) NOT NULL, 
LENGTH_MSG_MAX                                    NUMBER(20,4) NOT NULL, 
LENGTH_MSG_STCNT                                  VARCHAR2(32) NOT NULL, 
LENGTH_WORK_MIN                                   NUMBER(20,4) NOT NULL, 
LENGTH_WORK_MAX                                   NUMBER(20,4) NOT NULL, 
LENGTH_WORK_STCNT                                 VARCHAR2(32) NOT NULL, 
HIGH_WATER_MARK_WORK_MIN                          NUMBER(20,4) NOT NULL, 
HIGH_WATER_MARK_WORK_MAX                          NUMBER(20,4) NOT NULL, 
HIGH_WATER_MARK_WORK_STCNT                        VARCHAR2(32) NOT NULL, 
MAX_QUEUE_SIZE_MIN                                NUMBER(20,4) NOT NULL, 
MAX_QUEUE_SIZE_MAX                                NUMBER(20,4) NOT NULL, 
MAX_QUEUE_SIZE_STCNT                              VARCHAR2(32) NOT NULL, 
QUEUE_USAGE_MIN                                   NUMBER(20,4) NOT NULL, 
QUEUE_USAGE_MAX                                   NUMBER(20,4) NOT NULL, 
QUEUE_USAGE_STCNT                                 VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgVPNQClTest_TREND ADD constraint PK_SolaceMsgVPNQClTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVPNQClTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVPNQClTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
DELIVER_MSG_MIN                                   VARCHAR2(256) NOT NULL, 
DELIVER_MSG_MAX                                   VARCHAR2(256) NOT NULL, 
DISCD_MSG_MIN                                     VARCHAR2(256) NOT NULL, 
DISCD_MSG_MAX                                     VARCHAR2(256) NOT NULL, 
LENGTH_MSG_MIN                                    VARCHAR2(256) NOT NULL, 
LENGTH_MSG_MAX                                    VARCHAR2(256) NOT NULL, 
LENGTH_WORK_MIN                                   VARCHAR2(256) NOT NULL, 
LENGTH_WORK_MAX                                   VARCHAR2(256) NOT NULL, 
HIGH_WATER_MARK_WORK_MIN                          VARCHAR2(256) NOT NULL, 
HIGH_WATER_MARK_WORK_MAX                          VARCHAR2(256) NOT NULL, 
MAX_QUEUE_SIZE_MIN                                VARCHAR2(256) NOT NULL, 
MAX_QUEUE_SIZE_MAX                                VARCHAR2(256) NOT NULL, 
QUEUE_USAGE_MIN                                   VARCHAR2(256) NOT NULL, 
QUEUE_USAGE_MAX                                   VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgVPNQClTest_THRESH ADD constraint PK_SolaceMsgVPNQClTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgVPNQClTest_THRESH ON SolaceMsgVPNQClTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgVPNQClTest ON SolaceMsgVPNQClTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgVPNQClTest ON SolaceMsgVPNQClTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceReduncyStTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceReduncyStTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
CONFIG_STATUS                                     NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_ST                                  VARCHAR2(32) NOT NULL, 
REDUNDANCY_STATUS                                 NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_ST                              VARCHAR2(32) NOT NULL, 
AUTO_REVERT_ENABLED                               NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_ST                            VARCHAR2(32) NOT NULL, 
ACTIVE_STANDBY_ROLE                               NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_ST                            VARCHAR2(32) NOT NULL, 
ADB_LINK_STATE                                    NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_ST                                 VARCHAR2(32) NOT NULL, 
ADB_HELLO_STATE                                   NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_ST                                VARCHAR2(32) NOT NULL, 
ADB_HELLO_AVGLATENCY                              NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_ST                           VARCHAR2(32) NOT NULL, 
ADB_HELLO_MAXLATENCY                              NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_ACTIVITY                                  NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_ROUTE_IFSTATE                             NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_ST                          VARCHAR2(32) NOT NULL, 
PRIMARY_MSGSPOOL_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_SMRP_STATE                                NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_ST                             VARCHAR2(32) NOT NULL, 
PRIMARY_ADMSTATE                                  NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_ADMDPATH_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_FLASHMOD_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_PWRMOD_STATE                              NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_ADMCNT_STATE                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_DISK_STATE                                NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_ST                             VARCHAR2(32) NOT NULL, 
PRIMARY_DISKCNT_STATE                             NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_ST                          VARCHAR2(32) NOT NULL, 
PRIMARY_DB_SYNC                                   NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_ST                                VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD                                  NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_PCT                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_ACTIVITY                                   NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_ROUTE_IFSTATE                              NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_MSGSPOOL_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_SMRP_STATE                                 NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_ST                              VARCHAR2(32) NOT NULL, 
BACKUP_ADMSTATE                                   NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_ADMDPATH_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_FLASHMOD_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_PWRMOD_STATE                               NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_ST                            VARCHAR2(32) NOT NULL, 
BACKUP_ADMCNT_STATE                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_ST                            VARCHAR2(32) NOT NULL, 
BACKUP_DISK_STATE                                 NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_ST                              VARCHAR2(32) NOT NULL, 
BACKUP_DISKCNT_STATE                              NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_DB_SYNC                                    NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_ST                                 VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD                                   NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_PCT                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_ST                            VARCHAR2(32) NOT NULL, 
HAS_SWITCHOVER_OCCURRED                           NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_ST                        VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceReduncyStTest ON SolaceReduncyStTest(MSMT_TIME);
ALTER TABLE SolaceReduncyStTest ADD constraint PK_SolaceReduncyStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceReduncyStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceReduncyStTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
CONFIG_STATUS_MIN                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_MAX                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_STCNT                               VARCHAR2(32) NOT NULL, 
REDUNDANCY_STATUS_MIN                             NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_MAX                             NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_STCNT                           VARCHAR2(32) NOT NULL, 
AUTO_REVERT_ENABLED_MIN                           NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_MAX                           NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_STCNT                         VARCHAR2(32) NOT NULL, 
ACTIVE_STANDBY_ROLE_MIN                           NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_MAX                           NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_STCNT                         VARCHAR2(32) NOT NULL, 
ADB_LINK_STATE_MIN                                NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_MAX                                NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_STCNT                              VARCHAR2(32) NOT NULL, 
ADB_HELLO_STATE_MIN                               NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_MAX                               NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_STCNT                             VARCHAR2(32) NOT NULL, 
ADB_HELLO_AVGLATENCY_MIN                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_MAX                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_STCNT                        VARCHAR2(32) NOT NULL, 
ADB_HELLO_MAXLATENCY_MIN                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_MAX                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_ACTIVITY_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MIN                         NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MAX                         NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_STCNT                       VARCHAR2(32) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_SMRP_STATE_MIN                            NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_MAX                            NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_STCNT                          VARCHAR2(32) NOT NULL, 
PRIMARY_ADMSTATE_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_PWRMOD_STATE_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_ADMCNT_STATE_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_DISK_STATE_MIN                            NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_MAX                            NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_STCNT                          VARCHAR2(32) NOT NULL, 
PRIMARY_DISKCNT_STATE_MIN                         NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_MAX                         NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
PRIMARY_DB_SYNC_MIN                               NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_MAX                               NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_STCNT                             VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_ACTIVITY_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MIN                          NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MAX                          NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_SMRP_STATE_MIN                             NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_MAX                             NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_STCNT                           VARCHAR2(32) NOT NULL, 
BACKUP_ADMSTATE_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_ADMDPATH_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_FLASHMOD_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_PWRMOD_STATE_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_STCNT                         VARCHAR2(32) NOT NULL, 
BACKUP_ADMCNT_STATE_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_STCNT                         VARCHAR2(32) NOT NULL, 
BACKUP_DISK_STATE_MIN                             NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_MAX                             NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_STCNT                           VARCHAR2(32) NOT NULL, 
BACKUP_DISKCNT_STATE_MIN                          NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_MAX                          NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_DB_SYNC_MIN                                NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_MAX                                NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_STCNT                              VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_PCT_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_STCNT                         VARCHAR2(32) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MIN                       NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MAX                       NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_STCNT                     VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceReduncyStTest_TREND ADD constraint PK_SolaceReduncyStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceReduncyStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceReduncyStTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
CONFIG_STATUS_MIN                                 VARCHAR2(256) NOT NULL, 
CONFIG_STATUS_MAX                                 VARCHAR2(256) NOT NULL, 
REDUNDANCY_STATUS_MIN                             VARCHAR2(256) NOT NULL, 
REDUNDANCY_STATUS_MAX                             VARCHAR2(256) NOT NULL, 
AUTO_REVERT_ENABLED_MIN                           VARCHAR2(256) NOT NULL, 
AUTO_REVERT_ENABLED_MAX                           VARCHAR2(256) NOT NULL, 
ACTIVE_STANDBY_ROLE_MIN                           VARCHAR2(256) NOT NULL, 
ACTIVE_STANDBY_ROLE_MAX                           VARCHAR2(256) NOT NULL, 
ADB_LINK_STATE_MIN                                VARCHAR2(256) NOT NULL, 
ADB_LINK_STATE_MAX                                VARCHAR2(256) NOT NULL, 
ADB_HELLO_STATE_MIN                               VARCHAR2(256) NOT NULL, 
ADB_HELLO_STATE_MAX                               VARCHAR2(256) NOT NULL, 
ADB_HELLO_AVGLATENCY_MIN                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_AVGLATENCY_MAX                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_MAXLATENCY_MIN                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_MAXLATENCY_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_ACTIVITY_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_ACTIVITY_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MIN                         VARCHAR2(256) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MAX                         VARCHAR2(256) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_SMRP_STATE_MIN                            VARCHAR2(256) NOT NULL, 
PRIMARY_SMRP_STATE_MAX                            VARCHAR2(256) NOT NULL, 
PRIMARY_ADMSTATE_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_ADMSTATE_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_PWRMOD_STATE_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_PWRMOD_STATE_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_ADMCNT_STATE_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_ADMCNT_STATE_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_DISK_STATE_MIN                            VARCHAR2(256) NOT NULL, 
PRIMARY_DISK_STATE_MAX                            VARCHAR2(256) NOT NULL, 
PRIMARY_DISKCNT_STATE_MIN                         VARCHAR2(256) NOT NULL, 
PRIMARY_DISKCNT_STATE_MAX                         VARCHAR2(256) NOT NULL, 
PRIMARY_DB_SYNC_MIN                               VARCHAR2(256) NOT NULL, 
PRIMARY_DB_SYNC_MAX                               VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_ACTIVITY_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_ACTIVITY_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MIN                          VARCHAR2(256) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_SMRP_STATE_MIN                             VARCHAR2(256) NOT NULL, 
BACKUP_SMRP_STATE_MAX                             VARCHAR2(256) NOT NULL, 
BACKUP_ADMSTATE_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_ADMSTATE_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_ADMDPATH_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_ADMDPATH_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_FLASHMOD_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_FLASHMOD_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_PWRMOD_STATE_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_PWRMOD_STATE_MAX                           VARCHAR2(256) NOT NULL, 
BACKUP_ADMCNT_STATE_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_ADMCNT_STATE_MAX                           VARCHAR2(256) NOT NULL, 
BACKUP_DISK_STATE_MIN                             VARCHAR2(256) NOT NULL, 
BACKUP_DISK_STATE_MAX                             VARCHAR2(256) NOT NULL, 
BACKUP_DISKCNT_STATE_MIN                          VARCHAR2(256) NOT NULL, 
BACKUP_DISKCNT_STATE_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_DB_SYNC_MIN                                VARCHAR2(256) NOT NULL, 
BACKUP_DB_SYNC_MAX                                VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_PCT_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_PCT_MAX                           VARCHAR2(256) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MIN                       VARCHAR2(256) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MAX                       VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceReduncyStTest_THRESH ADD constraint PK_SolaceReduncyStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceReduncyStTest_THRESH ON SolaceReduncyStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceReduncyStTest ON SolaceReduncyStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceReduncyStTest ON SolaceReduncyStTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVpnRepTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVpnRepTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
CONFIG_STATUS                                     NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_ST                                  VARCHAR2(32) NOT NULL, 
ADMIN_STATUS                                      NUMBER(20,4) NOT NULL, 
ADMIN_STATUS_ST                                   VARCHAR2(32) NOT NULL, 
TRANSCTN_REPLI_MODE                               NUMBER(20,4) NOT NULL, 
TRANSCTN_REPLI_MODE_ST                            VARCHAR2(32) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE                          NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_ST                       VARCHAR2(32) NOT NULL, 
LCL_BRDGE_RETRY_DELAY                             NUMBER(20,4) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_ST                          VARCHAR2(32) NOT NULL, 
LCL_BRDGE_SSL                                     NUMBER(20,4) NOT NULL, 
LCL_BRDGE_SSL_ST                                  VARCHAR2(32) NOT NULL, 
LCL_BRDGE_CMPRSD                                  NUMBER(20,4) NOT NULL, 
LCL_BRDGE_CMPRSD_ST                               VARCHAR2(32) NOT NULL, 
QUEUE_QUOTA                                       NUMBER(20,4) NOT NULL, 
QUEUE_QUOTA_ST                                    VARCHAR2(32) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD                          NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_ST                       VARCHAR2(32) NOT NULL, 
MATE_FLOW_CNGSTD_HWM                              NUMBER(20,4) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_ST                           VARCHAR2(32) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM                          NUMBER(20,4) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_ST                       VARCHAR2(32) NOT NULL, 
ELIGIBLE_HIGH_WM                                  NUMBER(20,4) NOT NULL, 
ELIGIBLE_HIGH_WM_ST                               VARCHAR2(32) NOT NULL, 
INELIGIBLE_HIGH_WM                                NUMBER(20,4) NOT NULL, 
INELIGIBLE_HIGH_WM_ST                             VARCHAR2(32) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB                              NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_ST                           VARCHAR2(32) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB                              NUMBER(20,4) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_ST                           VARCHAR2(32) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS                            NUMBER(20,4) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_ST                         VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_SB                               NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ST                            VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN                          NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_ST                       VARCHAR2(32) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY                          NUMBER(20,4) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_ST                       VARCHAR2(32) NOT NULL, 
REC_REQ_FROM_STANDBY                              NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_ST                           VARCHAR2(32) NOT NULL, 
TRANSAC_REQ                                       NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_ST                                    VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC                                   NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_ST                                VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT                            NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_ST                         VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE                           NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_ST                        VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK                          NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_ST                       VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL                                  NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_ST                               VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT                           NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_ST                        VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE                          NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_ST                       VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC                          NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_ST                       VARCHAR2(32) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE                             NUMBER(20,4) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_ST                          VARCHAR2(32) NOT NULL, 
ACK_PROP_MSGS_RCVD                                NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RCVD_ST                             VARCHAR2(32) NOT NULL, 
OUT_OF_SEQ_RCVD                                   NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RCVD_ST                                VARCHAR2(32) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE                           NUMBER(20,4) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_ST                        VARCHAR2(32) NOT NULL, 
TRANS_TO_INELIGIBLE                               NUMBER(20,4) NOT NULL, 
TRANS_TO_INELIGIBLE_ST                            VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceMsgVpnRepTest ON SolaceMsgVpnRepTest(MSMT_TIME);
ALTER TABLE SolaceMsgVpnRepTest ADD constraint PK_SolaceMsgVpnRepTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceMsgVpnRepTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVpnRepTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
CONFIG_STATUS_MIN                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_MAX                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_STCNT                               VARCHAR2(32) NOT NULL, 
ADMIN_STATUS_MIN                                  NUMBER(20,4) NOT NULL, 
ADMIN_STATUS_MAX                                  NUMBER(20,4) NOT NULL, 
ADMIN_STATUS_STCNT                                VARCHAR2(32) NOT NULL, 
TRANSCTN_REPLI_MODE_MIN                           NUMBER(20,4) NOT NULL, 
TRANSCTN_REPLI_MODE_MAX                           NUMBER(20,4) NOT NULL, 
TRANSCTN_REPLI_MODE_STCNT                         VARCHAR2(32) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_MIN                      NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_MAX                      NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_STCNT                    VARCHAR2(32) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_MIN                         NUMBER(20,4) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_MAX                         NUMBER(20,4) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_STCNT                       VARCHAR2(32) NOT NULL, 
LCL_BRDGE_SSL_MIN                                 NUMBER(20,4) NOT NULL, 
LCL_BRDGE_SSL_MAX                                 NUMBER(20,4) NOT NULL, 
LCL_BRDGE_SSL_STCNT                               VARCHAR2(32) NOT NULL, 
LCL_BRDGE_CMPRSD_MIN                              NUMBER(20,4) NOT NULL, 
LCL_BRDGE_CMPRSD_MAX                              NUMBER(20,4) NOT NULL, 
LCL_BRDGE_CMPRSD_STCNT                            VARCHAR2(32) NOT NULL, 
QUEUE_QUOTA_MIN                                   NUMBER(20,4) NOT NULL, 
QUEUE_QUOTA_MAX                                   NUMBER(20,4) NOT NULL, 
QUEUE_QUOTA_STCNT                                 VARCHAR2(32) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_MIN                      NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_MAX                      NUMBER(20,4) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_STCNT                    VARCHAR2(32) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_MIN                          NUMBER(20,4) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_MAX                          NUMBER(20,4) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_STCNT                        VARCHAR2(32) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_MIN                      NUMBER(20,4) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_MAX                      NUMBER(20,4) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_STCNT                    VARCHAR2(32) NOT NULL, 
ELIGIBLE_HIGH_WM_MIN                              NUMBER(20,4) NOT NULL, 
ELIGIBLE_HIGH_WM_MAX                              NUMBER(20,4) NOT NULL, 
ELIGIBLE_HIGH_WM_STCNT                            VARCHAR2(32) NOT NULL, 
INELIGIBLE_HIGH_WM_MIN                            NUMBER(20,4) NOT NULL, 
INELIGIBLE_HIGH_WM_MAX                            NUMBER(20,4) NOT NULL, 
INELIGIBLE_HIGH_WM_STCNT                          VARCHAR2(32) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_MIN                          NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_MAX                          NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_STCNT                        VARCHAR2(32) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_MIN                          NUMBER(20,4) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_MAX                          NUMBER(20,4) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_STCNT                        VARCHAR2(32) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_MIN                        NUMBER(20,4) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_MAX                        NUMBER(20,4) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_STCNT                      VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_MIN                           NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_MAX                           NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_STCNT                         VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_MIN                      NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_MAX                      NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_STCNT                    VARCHAR2(32) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_MIN                      NUMBER(20,4) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_MAX                      NUMBER(20,4) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_STCNT                    VARCHAR2(32) NOT NULL, 
REC_REQ_FROM_STANDBY_MIN                          NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_MAX                          NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_STCNT                        VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_MIN                                   NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_MAX                                   NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_STCNT                                 VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_MIN                               NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_MAX                               NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_STCNT                             VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_MIN                        NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_MAX                        NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_STCNT                      VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_MIN                       NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_MAX                       NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_STCNT                     VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_MIN                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_MAX                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_STCNT                    VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_MIN                              NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_MAX                              NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_STCNT                            VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_MIN                       NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_MAX                       NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_STCNT                     VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_MIN                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_MAX                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_STCNT                    VARCHAR2(32) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_MIN                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_MAX                      NUMBER(20,4) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_STCNT                    VARCHAR2(32) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_MIN                         NUMBER(20,4) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_MAX                         NUMBER(20,4) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_STCNT                       VARCHAR2(32) NOT NULL, 
ACK_PROP_MSGS_RCVD_MIN                            NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RCVD_MAX                            NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RCVD_STCNT                          VARCHAR2(32) NOT NULL, 
OUT_OF_SEQ_RCVD_MIN                               NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RCVD_MAX                               NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RCVD_STCNT                             VARCHAR2(32) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_MIN                       NUMBER(20,4) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_MAX                       NUMBER(20,4) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_STCNT                     VARCHAR2(32) NOT NULL, 
TRANS_TO_INELIGIBLE_MIN                           NUMBER(20,4) NOT NULL, 
TRANS_TO_INELIGIBLE_MAX                           NUMBER(20,4) NOT NULL, 
TRANS_TO_INELIGIBLE_STCNT                         VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceMsgVpnRepTest_TREND ADD constraint PK_SolaceMsgVpnRepTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceMsgVpnRepTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceMsgVpnRepTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
CONFIG_STATUS_MIN                                 VARCHAR2(256) NOT NULL, 
CONFIG_STATUS_MAX                                 VARCHAR2(256) NOT NULL, 
ADMIN_STATUS_MIN                                  VARCHAR2(256) NOT NULL, 
ADMIN_STATUS_MAX                                  VARCHAR2(256) NOT NULL, 
TRANSCTN_REPLI_MODE_MIN                           VARCHAR2(256) NOT NULL, 
TRANSCTN_REPLI_MODE_MAX                           VARCHAR2(256) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_MIN                      VARCHAR2(256) NOT NULL, 
RJCT_MSGS_SYNC_INELIGBLE_MAX                      VARCHAR2(256) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_MIN                         VARCHAR2(256) NOT NULL, 
LCL_BRDGE_RETRY_DELAY_MAX                         VARCHAR2(256) NOT NULL, 
LCL_BRDGE_SSL_MIN                                 VARCHAR2(256) NOT NULL, 
LCL_BRDGE_SSL_MAX                                 VARCHAR2(256) NOT NULL, 
LCL_BRDGE_CMPRSD_MIN                              VARCHAR2(256) NOT NULL, 
LCL_BRDGE_CMPRSD_MAX                              VARCHAR2(256) NOT NULL, 
QUEUE_QUOTA_MIN                                   VARCHAR2(256) NOT NULL, 
QUEUE_QUOTA_MAX                                   VARCHAR2(256) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_MIN                      VARCHAR2(256) NOT NULL, 
RJCT_MSGS_SENDER_DISCARD_MAX                      VARCHAR2(256) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_MIN                          VARCHAR2(256) NOT NULL, 
MATE_FLOW_CNGSTD_HWM_MAX                          VARCHAR2(256) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_MIN                      VARCHAR2(256) NOT NULL, 
MATE_FLOW_NOT_CNGSTD_HWM_MAX                      VARCHAR2(256) NOT NULL, 
ELIGIBLE_HIGH_WM_MIN                              VARCHAR2(256) NOT NULL, 
ELIGIBLE_HIGH_WM_MAX                              VARCHAR2(256) NOT NULL, 
INELIGIBLE_HIGH_WM_MIN                            VARCHAR2(256) NOT NULL, 
INELIGIBLE_HIGH_WM_MAX                            VARCHAR2(256) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_MIN                          VARCHAR2(256) NOT NULL, 
ASYNC_MSGS_QUE_TO_SB_MAX                          VARCHAR2(256) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_MIN                          VARCHAR2(256) NOT NULL, 
PRMTD_MSGS_QUE_TO_SB_MAX                          VARCHAR2(256) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_MIN                        VARCHAR2(256) NOT NULL, 
PRUNED_LCLY_CNSMD_MSGS_MAX                        VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_MIN                           VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_MAX                           VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_MIN                      VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_SB_ASYN_MAX                      VARCHAR2(256) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_MIN                      VARCHAR2(256) NOT NULL, 
MSGS_TRANSMTD_TO_STANDBY_MAX                      VARCHAR2(256) NOT NULL, 
REC_REQ_FROM_STANDBY_MIN                          VARCHAR2(256) NOT NULL, 
REC_REQ_FROM_STANDBY_MAX                          VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_MIN                                   VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_MAX                                   VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_MIN                               VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_MAX                               VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_MIN                        VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_COMMIT_MAX                        VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_MIN                       VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_PREPARE_MAX                       VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_MIN                      VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_SUC_ROLLBACK_MAX                      VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_MIN                              VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_MAX                              VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_MIN                       VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_COMMIT_MAX                       VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_MIN                      VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_PREPARE_MAX                      VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_MIN                      VARCHAR2(256) NOT NULL, 
TRANSAC_REQ_FAIL_ROLLBAC_MAX                      VARCHAR2(256) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_MIN                         VARCHAR2(256) NOT NULL, 
MSGS_RCVD_FROM_ACTIVE_MAX                         VARCHAR2(256) NOT NULL, 
ACK_PROP_MSGS_RCVD_MIN                            VARCHAR2(256) NOT NULL, 
ACK_PROP_MSGS_RCVD_MAX                            VARCHAR2(256) NOT NULL, 
OUT_OF_SEQ_RCVD_MIN                               VARCHAR2(256) NOT NULL, 
OUT_OF_SEQ_RCVD_MAX                               VARCHAR2(256) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_MIN                       VARCHAR2(256) NOT NULL, 
RECON_REQ_SNT_TO_ACTIVE_MAX                       VARCHAR2(256) NOT NULL, 
TRANS_TO_INELIGIBLE_MIN                           VARCHAR2(256) NOT NULL, 
TRANS_TO_INELIGIBLE_MAX                           VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceMsgVpnRepTest_THRESH ADD constraint PK_SolaceMsgVpnRepTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceMsgVpnRepTest_THRESH ON SolaceMsgVpnRepTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceMsgVpnRepTest ON SolaceMsgVpnRepTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceMsgVpnRepTest ON SolaceMsgVpnRepTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceSysReplTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysReplTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
IS_REPLICATION_ENABLED                            NUMBER(20,4) NOT NULL, 
IS_REPLICATION_ENABLED_ST                         VARCHAR2(32) NOT NULL, 
TRANSITIONS_TO_INELGBL                            NUMBER(20,4) NOT NULL, 
TRANSITIONS_TO_INELGBL_ST                         VARCHAR2(32) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY                          NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_ST                       VARCHAR2(32) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY                           NUMBER(20,4) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_ST                        VARCHAR2(32) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS                             NUMBER(20,4) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_ST                          VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY                           NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_ST                        VARCHAR2(32) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC                           NUMBER(20,4) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_ST                        VARCHAR2(32) NOT NULL, 
MSGS_TX_TO_STANDBY                                NUMBER(20,4) NOT NULL, 
MSGS_TX_TO_STANDBY_ST                             VARCHAR2(32) NOT NULL, 
REC_REQ_FROM_STANDBY                              NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_ST                           VARCHAR2(32) NOT NULL, 
TRANS_REQ                                         NUMBER(20,4) NOT NULL, 
TRANS_REQ_ST                                      VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC                                     NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_ST                                  VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_COMMIT                              NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_COMMIT_ST                           VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_PREPARE                             NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_PREPARE_ST                          VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK                            NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_ST                         VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL                                    NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_ST                                 VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_COMMIT                             NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_ST                          VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_PREPARE                            NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_ST                         VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK                           NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_ST                        VARCHAR2(32) NOT NULL, 
MSGS_RX_FROM_ACTIVE                               NUMBER(20,4) NOT NULL, 
MSGS_RX_FROM_ACTIVE_ST                            VARCHAR2(32) NOT NULL, 
ACK_PROP_MSGS_RX                                  NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RX_ST                               VARCHAR2(32) NOT NULL, 
OUT_OF_SEQ_RX                                     NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RX_ST                                  VARCHAR2(32) NOT NULL, 
RECON_REQ_TX                                      NUMBER(20,4) NOT NULL, 
RECON_REQ_TX_ST                                   VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceSysReplTest ON SolaceSysReplTest(MSMT_TIME);
ALTER TABLE SolaceSysReplTest ADD constraint PK_SolaceSysReplTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceSysReplTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysReplTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
IS_REPLICATION_ENABLED_MIN                        NUMBER(20,4) NOT NULL, 
IS_REPLICATION_ENABLED_MAX                        NUMBER(20,4) NOT NULL, 
IS_REPLICATION_ENABLED_STCNT                      VARCHAR2(32) NOT NULL, 
TRANSITIONS_TO_INELGBL_MIN                        NUMBER(20,4) NOT NULL, 
TRANSITIONS_TO_INELGBL_MAX                        NUMBER(20,4) NOT NULL, 
TRANSITIONS_TO_INELGBL_STCNT                      VARCHAR2(32) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_MIN                      NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_MAX                      NUMBER(20,4) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_STCNT                    VARCHAR2(32) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_MIN                       NUMBER(20,4) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_MAX                       NUMBER(20,4) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_STCNT                     VARCHAR2(32) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_MIN                         NUMBER(20,4) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_MAX                         NUMBER(20,4) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_STCNT                       VARCHAR2(32) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_MIN                       NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_MAX                       NUMBER(20,4) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_STCNT                     VARCHAR2(32) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_MIN                       NUMBER(20,4) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_MAX                       NUMBER(20,4) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_STCNT                     VARCHAR2(32) NOT NULL, 
MSGS_TX_TO_STANDBY_MIN                            NUMBER(20,4) NOT NULL, 
MSGS_TX_TO_STANDBY_MAX                            NUMBER(20,4) NOT NULL, 
MSGS_TX_TO_STANDBY_STCNT                          VARCHAR2(32) NOT NULL, 
REC_REQ_FROM_STANDBY_MIN                          NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_MAX                          NUMBER(20,4) NOT NULL, 
REC_REQ_FROM_STANDBY_STCNT                        VARCHAR2(32) NOT NULL, 
TRANS_REQ_MIN                                     NUMBER(20,4) NOT NULL, 
TRANS_REQ_MAX                                     NUMBER(20,4) NOT NULL, 
TRANS_REQ_STCNT                                   VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_MIN                                 NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_MAX                                 NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_STCNT                               VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_COMMIT_MIN                          NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_COMMIT_MAX                          NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_COMMIT_STCNT                        VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_PREPARE_MIN                         NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_PREPARE_MAX                         NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_PREPARE_STCNT                       VARCHAR2(32) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_MIN                        NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_MAX                        NUMBER(20,4) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_STCNT                      VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_MIN                                NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_MAX                                NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_STCNT                              VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_MIN                         NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_MAX                         NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_STCNT                       VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_MIN                        NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_MAX                        NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_STCNT                      VARCHAR2(32) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_MIN                       NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_MAX                       NUMBER(20,4) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_STCNT                     VARCHAR2(32) NOT NULL, 
MSGS_RX_FROM_ACTIVE_MIN                           NUMBER(20,4) NOT NULL, 
MSGS_RX_FROM_ACTIVE_MAX                           NUMBER(20,4) NOT NULL, 
MSGS_RX_FROM_ACTIVE_STCNT                         VARCHAR2(32) NOT NULL, 
ACK_PROP_MSGS_RX_MIN                              NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RX_MAX                              NUMBER(20,4) NOT NULL, 
ACK_PROP_MSGS_RX_STCNT                            VARCHAR2(32) NOT NULL, 
OUT_OF_SEQ_RX_MIN                                 NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RX_MAX                                 NUMBER(20,4) NOT NULL, 
OUT_OF_SEQ_RX_STCNT                               VARCHAR2(32) NOT NULL, 
RECON_REQ_TX_MIN                                  NUMBER(20,4) NOT NULL, 
RECON_REQ_TX_MAX                                  NUMBER(20,4) NOT NULL, 
RECON_REQ_TX_STCNT                                VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceSysReplTest_TREND ADD constraint PK_SolaceSysReplTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceSysReplTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceSysReplTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
IS_REPLICATION_ENABLED_MIN                        VARCHAR2(256) NOT NULL, 
IS_REPLICATION_ENABLED_MAX                        VARCHAR2(256) NOT NULL, 
TRANSITIONS_TO_INELGBL_MIN                        VARCHAR2(256) NOT NULL, 
TRANSITIONS_TO_INELGBL_MAX                        VARCHAR2(256) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_MIN                      VARCHAR2(256) NOT NULL, 
ASYNC_MSGS_QUE_TO_STNDBY_MAX                      VARCHAR2(256) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_MIN                       VARCHAR2(256) NOT NULL, 
PROM_MSGS_QUE_TO_STNDBY_MAX                       VARCHAR2(256) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_MIN                         VARCHAR2(256) NOT NULL, 
PRUN_LCLLY_CNSMD_MSGS_MAX                         VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_MIN                       VARCHAR2(256) NOT NULL, 
SYNC_MSGS_QUE_TO_STNDBY_MAX                       VARCHAR2(256) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_MIN                       VARCHAR2(256) NOT NULL, 
SYNC_MSGS_Q_TO_SB_ASYNC_MAX                       VARCHAR2(256) NOT NULL, 
MSGS_TX_TO_STANDBY_MIN                            VARCHAR2(256) NOT NULL, 
MSGS_TX_TO_STANDBY_MAX                            VARCHAR2(256) NOT NULL, 
REC_REQ_FROM_STANDBY_MIN                          VARCHAR2(256) NOT NULL, 
REC_REQ_FROM_STANDBY_MAX                          VARCHAR2(256) NOT NULL, 
TRANS_REQ_MIN                                     VARCHAR2(256) NOT NULL, 
TRANS_REQ_MAX                                     VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_MIN                                 VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_MAX                                 VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_COMMIT_MIN                          VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_COMMIT_MAX                          VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_PREPARE_MIN                         VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_PREPARE_MAX                         VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_MIN                        VARCHAR2(256) NOT NULL, 
TRANS_REQ_SUC_ROLLBACK_MAX                        VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_MIN                                VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_MAX                                VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_MIN                         VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_COMMIT_MAX                         VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_MIN                        VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_PREPARE_MAX                        VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_MIN                       VARCHAR2(256) NOT NULL, 
TRANS_REQ_FAIL_ROLLBACK_MAX                       VARCHAR2(256) NOT NULL, 
MSGS_RX_FROM_ACTIVE_MIN                           VARCHAR2(256) NOT NULL, 
MSGS_RX_FROM_ACTIVE_MAX                           VARCHAR2(256) NOT NULL, 
ACK_PROP_MSGS_RX_MIN                              VARCHAR2(256) NOT NULL, 
ACK_PROP_MSGS_RX_MAX                              VARCHAR2(256) NOT NULL, 
OUT_OF_SEQ_RX_MIN                                 VARCHAR2(256) NOT NULL, 
OUT_OF_SEQ_RX_MAX                                 VARCHAR2(256) NOT NULL, 
RECON_REQ_TX_MIN                                  VARCHAR2(256) NOT NULL, 
RECON_REQ_TX_MAX                                  VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceSysReplTest_THRESH ADD constraint PK_SolaceSysReplTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceSysReplTest_THRESH ON SolaceSysReplTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceSysReplTest ON SolaceSysReplTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceSysReplTest ON SolaceSysReplTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceBridgesTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgesTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
TOT_LOCAL_BRIDGES                                 NUMBER(20,4) NOT NULL, 
TOT_LOCAL_BRIDGES_ST                              VARCHAR2(32) NOT NULL, 
MAX_LOCAL_BRIDGES                                 NUMBER(20,4) NOT NULL, 
MAX_LOCAL_BRIDGES_ST                              VARCHAR2(32) NOT NULL, 
LOCAL_BRIDGE_USAGE                                NUMBER(20,4) NOT NULL, 
LOCAL_BRIDGE_USAGE_ST                             VARCHAR2(32) NOT NULL, 
TOT_RMT_BRIDGES                                   NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGES_ST                                VARCHAR2(32) NOT NULL, 
MAX_RMT_BRIDGES                                   NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGES_ST                                VARCHAR2(32) NOT NULL, 
RMT_BRIDGE_USAGE                                  NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_USAGE_ST                               VARCHAR2(32) NOT NULL, 
TOT_BRIDGES_IN_SYS                                NUMBER(20,4) NOT NULL, 
TOT_BRIDGES_IN_SYS_ST                             VARCHAR2(32) NOT NULL, 
MAX_BRIDGES_IN_SYS                                NUMBER(20,4) NOT NULL, 
MAX_BRIDGES_IN_SYS_ST                             VARCHAR2(32) NOT NULL, 
SYS_BRIDGE_USAGE                                  NUMBER(20,4) NOT NULL, 
SYS_BRIDGE_USAGE_ST                               VARCHAR2(32) NOT NULL, 
TOT_RMT_BRIDGE_SUB                                NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGE_SUB_ST                             VARCHAR2(32) NOT NULL, 
MAX_RMT_BRIDGE_SUB                                NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGE_SUB_ST                             VARCHAR2(32) NOT NULL, 
RMT_BRIDGE_SUB_USAGE                              NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_ST                           VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceBridgesTest ON SolaceBridgesTest(MSMT_TIME);
ALTER TABLE SolaceBridgesTest ADD constraint PK_SolaceBridgesTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceBridgesTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgesTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
TOT_LOCAL_BRIDGES_MIN                             NUMBER(20,4) NOT NULL, 
TOT_LOCAL_BRIDGES_MAX                             NUMBER(20,4) NOT NULL, 
TOT_LOCAL_BRIDGES_STCNT                           VARCHAR2(32) NOT NULL, 
MAX_LOCAL_BRIDGES_MIN                             NUMBER(20,4) NOT NULL, 
MAX_LOCAL_BRIDGES_MAX                             NUMBER(20,4) NOT NULL, 
MAX_LOCAL_BRIDGES_STCNT                           VARCHAR2(32) NOT NULL, 
LOCAL_BRIDGE_USAGE_MIN                            NUMBER(20,4) NOT NULL, 
LOCAL_BRIDGE_USAGE_MAX                            NUMBER(20,4) NOT NULL, 
LOCAL_BRIDGE_USAGE_STCNT                          VARCHAR2(32) NOT NULL, 
TOT_RMT_BRIDGES_MIN                               NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGES_MAX                               NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGES_STCNT                             VARCHAR2(32) NOT NULL, 
MAX_RMT_BRIDGES_MIN                               NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGES_MAX                               NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGES_STCNT                             VARCHAR2(32) NOT NULL, 
RMT_BRIDGE_USAGE_MIN                              NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_USAGE_MAX                              NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_USAGE_STCNT                            VARCHAR2(32) NOT NULL, 
TOT_BRIDGES_IN_SYS_MIN                            NUMBER(20,4) NOT NULL, 
TOT_BRIDGES_IN_SYS_MAX                            NUMBER(20,4) NOT NULL, 
TOT_BRIDGES_IN_SYS_STCNT                          VARCHAR2(32) NOT NULL, 
MAX_BRIDGES_IN_SYS_MIN                            NUMBER(20,4) NOT NULL, 
MAX_BRIDGES_IN_SYS_MAX                            NUMBER(20,4) NOT NULL, 
MAX_BRIDGES_IN_SYS_STCNT                          VARCHAR2(32) NOT NULL, 
SYS_BRIDGE_USAGE_MIN                              NUMBER(20,4) NOT NULL, 
SYS_BRIDGE_USAGE_MAX                              NUMBER(20,4) NOT NULL, 
SYS_BRIDGE_USAGE_STCNT                            VARCHAR2(32) NOT NULL, 
TOT_RMT_BRIDGE_SUB_MIN                            NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGE_SUB_MAX                            NUMBER(20,4) NOT NULL, 
TOT_RMT_BRIDGE_SUB_STCNT                          VARCHAR2(32) NOT NULL, 
MAX_RMT_BRIDGE_SUB_MIN                            NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGE_SUB_MAX                            NUMBER(20,4) NOT NULL, 
MAX_RMT_BRIDGE_SUB_STCNT                          VARCHAR2(32) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_MIN                          NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_MAX                          NUMBER(20,4) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_STCNT                        VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceBridgesTest_TREND ADD constraint PK_SolaceBridgesTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceBridgesTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgesTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
TOT_LOCAL_BRIDGES_MIN                             VARCHAR2(256) NOT NULL, 
TOT_LOCAL_BRIDGES_MAX                             VARCHAR2(256) NOT NULL, 
MAX_LOCAL_BRIDGES_MIN                             VARCHAR2(256) NOT NULL, 
MAX_LOCAL_BRIDGES_MAX                             VARCHAR2(256) NOT NULL, 
LOCAL_BRIDGE_USAGE_MIN                            VARCHAR2(256) NOT NULL, 
LOCAL_BRIDGE_USAGE_MAX                            VARCHAR2(256) NOT NULL, 
TOT_RMT_BRIDGES_MIN                               VARCHAR2(256) NOT NULL, 
TOT_RMT_BRIDGES_MAX                               VARCHAR2(256) NOT NULL, 
MAX_RMT_BRIDGES_MIN                               VARCHAR2(256) NOT NULL, 
MAX_RMT_BRIDGES_MAX                               VARCHAR2(256) NOT NULL, 
RMT_BRIDGE_USAGE_MIN                              VARCHAR2(256) NOT NULL, 
RMT_BRIDGE_USAGE_MAX                              VARCHAR2(256) NOT NULL, 
TOT_BRIDGES_IN_SYS_MIN                            VARCHAR2(256) NOT NULL, 
TOT_BRIDGES_IN_SYS_MAX                            VARCHAR2(256) NOT NULL, 
MAX_BRIDGES_IN_SYS_MIN                            VARCHAR2(256) NOT NULL, 
MAX_BRIDGES_IN_SYS_MAX                            VARCHAR2(256) NOT NULL, 
SYS_BRIDGE_USAGE_MIN                              VARCHAR2(256) NOT NULL, 
SYS_BRIDGE_USAGE_MAX                              VARCHAR2(256) NOT NULL, 
TOT_RMT_BRIDGE_SUB_MIN                            VARCHAR2(256) NOT NULL, 
TOT_RMT_BRIDGE_SUB_MAX                            VARCHAR2(256) NOT NULL, 
MAX_RMT_BRIDGE_SUB_MIN                            VARCHAR2(256) NOT NULL, 
MAX_RMT_BRIDGE_SUB_MAX                            VARCHAR2(256) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_MIN                          VARCHAR2(256) NOT NULL, 
RMT_BRIDGE_SUB_USAGE_MAX                          VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceBridgesTest_THRESH ADD constraint PK_SolaceBridgesTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceBridgesTest_THRESH ON SolaceBridgesTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceBridgesTest ON SolaceBridgesTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceBridgesTest ON SolaceBridgesTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceBridgeStTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgeStTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
ADMIN_STATE                                       NUMBER(20,4) NOT NULL, 
ADMIN_STATE_ST                                    VARCHAR2(32) NOT NULL, 
CONN_ESTABLISHER                                  NUMBER(20,4) NOT NULL, 
CONN_ESTABLISHER_ST                               VARCHAR2(32) NOT NULL, 
INBOUND_OPER_ST                                   NUMBER(20,4) NOT NULL, 
INBOUND_OPER_ST_ST                                VARCHAR2(32) NOT NULL, 
OUTBOUND_OPER_ST                                  NUMBER(20,4) NOT NULL, 
OUTBOUND_OPER_ST_ST                               VARCHAR2(32) NOT NULL, 
QUEUE_ST                                          NUMBER(20,4) NOT NULL, 
QUEUE_ST_ST                                       VARCHAR2(32) NOT NULL, 
REDUNDANCY_ST                                     NUMBER(20,4) NOT NULL, 
REDUNDANCY_ST_ST                                  VARCHAR2(32) NOT NULL, 
CONN_UPTIME                                       NUMBER(20,4) NOT NULL, 
CONN_UPTIME_ST                                    VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceBridgeStTest ON SolaceBridgeStTest(MSMT_TIME);
ALTER TABLE SolaceBridgeStTest ADD constraint PK_SolaceBridgeStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceBridgeStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgeStTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
ADMIN_STATE_MIN                                   NUMBER(20,4) NOT NULL, 
ADMIN_STATE_MAX                                   NUMBER(20,4) NOT NULL, 
ADMIN_STATE_STCNT                                 VARCHAR2(32) NOT NULL, 
CONN_ESTABLISHER_MIN                              NUMBER(20,4) NOT NULL, 
CONN_ESTABLISHER_MAX                              NUMBER(20,4) NOT NULL, 
CONN_ESTABLISHER_STCNT                            VARCHAR2(32) NOT NULL, 
INBOUND_OPER_ST_MIN                               NUMBER(20,4) NOT NULL, 
INBOUND_OPER_ST_MAX                               NUMBER(20,4) NOT NULL, 
INBOUND_OPER_ST_STCNT                             VARCHAR2(32) NOT NULL, 
OUTBOUND_OPER_ST_MIN                              NUMBER(20,4) NOT NULL, 
OUTBOUND_OPER_ST_MAX                              NUMBER(20,4) NOT NULL, 
OUTBOUND_OPER_ST_STCNT                            VARCHAR2(32) NOT NULL, 
QUEUE_ST_MIN                                      NUMBER(20,4) NOT NULL, 
QUEUE_ST_MAX                                      NUMBER(20,4) NOT NULL, 
QUEUE_ST_STCNT                                    VARCHAR2(32) NOT NULL, 
REDUNDANCY_ST_MIN                                 NUMBER(20,4) NOT NULL, 
REDUNDANCY_ST_MAX                                 NUMBER(20,4) NOT NULL, 
REDUNDANCY_ST_STCNT                               VARCHAR2(32) NOT NULL, 
CONN_UPTIME_MIN                                   NUMBER(20,4) NOT NULL, 
CONN_UPTIME_MAX                                   NUMBER(20,4) NOT NULL, 
CONN_UPTIME_STCNT                                 VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceBridgeStTest_TREND ADD constraint PK_SolaceBridgeStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceBridgeStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceBridgeStTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
ADMIN_STATE_MIN                                   VARCHAR2(256) NOT NULL, 
ADMIN_STATE_MAX                                   VARCHAR2(256) NOT NULL, 
CONN_ESTABLISHER_MIN                              VARCHAR2(256) NOT NULL, 
CONN_ESTABLISHER_MAX                              VARCHAR2(256) NOT NULL, 
INBOUND_OPER_ST_MIN                               VARCHAR2(256) NOT NULL, 
INBOUND_OPER_ST_MAX                               VARCHAR2(256) NOT NULL, 
OUTBOUND_OPER_ST_MIN                              VARCHAR2(256) NOT NULL, 
OUTBOUND_OPER_ST_MAX                              VARCHAR2(256) NOT NULL, 
QUEUE_ST_MIN                                      VARCHAR2(256) NOT NULL, 
QUEUE_ST_MAX                                      VARCHAR2(256) NOT NULL, 
REDUNDANCY_ST_MIN                                 VARCHAR2(256) NOT NULL, 
REDUNDANCY_ST_MAX                                 VARCHAR2(256) NOT NULL, 
CONN_UPTIME_MIN                                   VARCHAR2(256) NOT NULL, 
CONN_UPTIME_MAX                                   VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceBridgeStTest_THRESH ADD constraint PK_SolaceBridgeStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceBridgeStTest_THRESH ON SolaceBridgeStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceBridgeStTest ON SolaceBridgeStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceBridgeStTest ON SolaceBridgeStTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceClusterStTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceClusterStTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
TOTAL_CLUSTER_NODE                                NUMBER(20,4) NOT NULL, 
TOTAL_CLUSTER_NODE_ST                             VARCHAR2(32) NOT NULL, 
NODE_SUCCESS_NW_CONN                              NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_ST                           VARCHAR2(32) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT                          NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_ST                       VARCHAR2(32) NOT NULL, 
NODE_PORT_REACHABILITY                            NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_ST                         VARCHAR2(32) NOT NULL, 
NODE_PORT_REACHABILITY_PCT                        NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_ST                     VARCHAR2(32) NOT NULL, 
NODE_SEMP_CONN                                    NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_ST                                 VARCHAR2(32) NOT NULL, 
NODE_SEMP_CONN_PCT                                NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_PCT_ST                             VARCHAR2(32) NOT NULL, 
TOTAL_PRIMARY_NODE                                NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_ST                             VARCHAR2(32) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT                            NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_ST                         VARCHAR2(32) NOT NULL, 
TOTAL_BACKUP_NODE                                 NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_ST                              VARCHAR2(32) NOT NULL, 
TOTAL_BACKUP_NODE_PCT                             NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_ST                          VARCHAR2(32) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED                           NUMBER(20,4) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_ST                        VARCHAR2(32) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE                            NUMBER(20,4) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_ST                         VARCHAR2(32) NOT NULL, 
NODES_NOT_MATE_ACTIVE                             NUMBER(20,4) NOT NULL, 
NODES_NOT_MATE_ACTIVE_ST                          VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceClusterStTest ON SolaceClusterStTest(MSMT_TIME);
ALTER TABLE SolaceClusterStTest ADD constraint PK_SolaceClusterStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceClusterStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceClusterStTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
TOTAL_CLUSTER_NODE_MIN                            NUMBER(20,4) NOT NULL, 
TOTAL_CLUSTER_NODE_MAX                            NUMBER(20,4) NOT NULL, 
TOTAL_CLUSTER_NODE_STCNT                          VARCHAR2(32) NOT NULL, 
NODE_SUCCESS_NW_CONN_MIN                          NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_MAX                          NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_STCNT                        VARCHAR2(32) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_MIN                      NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_MAX                      NUMBER(20,4) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_STCNT                    VARCHAR2(32) NOT NULL, 
NODE_PORT_REACHABILITY_MIN                        NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_MAX                        NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_STCNT                      VARCHAR2(32) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_MIN                    NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_MAX                    NUMBER(20,4) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_STCNT                  VARCHAR2(32) NOT NULL, 
NODE_SEMP_CONN_MIN                                NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_MAX                                NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_STCNT                              VARCHAR2(32) NOT NULL, 
NODE_SEMP_CONN_PCT_MIN                            NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_PCT_MAX                            NUMBER(20,4) NOT NULL, 
NODE_SEMP_CONN_PCT_STCNT                          VARCHAR2(32) NOT NULL, 
TOTAL_PRIMARY_NODE_MIN                            NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_MAX                            NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_STCNT                          VARCHAR2(32) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_MIN                        NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_MAX                        NUMBER(20,4) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_STCNT                      VARCHAR2(32) NOT NULL, 
TOTAL_BACKUP_NODE_MIN                             NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_MAX                             NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_STCNT                           VARCHAR2(32) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_MIN                         NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_MAX                         NUMBER(20,4) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_STCNT                       VARCHAR2(32) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_MIN                       NUMBER(20,4) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_MAX                       NUMBER(20,4) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_STCNT                     VARCHAR2(32) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_MIN                        NUMBER(20,4) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_MAX                        NUMBER(20,4) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_STCNT                      VARCHAR2(32) NOT NULL, 
NODES_NOT_MATE_ACTIVE_MIN                         NUMBER(20,4) NOT NULL, 
NODES_NOT_MATE_ACTIVE_MAX                         NUMBER(20,4) NOT NULL, 
NODES_NOT_MATE_ACTIVE_STCNT                       VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceClusterStTest_TREND ADD constraint PK_SolaceClusterStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceClusterStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceClusterStTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
TOTAL_CLUSTER_NODE_MIN                            VARCHAR2(256) NOT NULL, 
TOTAL_CLUSTER_NODE_MAX                            VARCHAR2(256) NOT NULL, 
NODE_SUCCESS_NW_CONN_MIN                          VARCHAR2(256) NOT NULL, 
NODE_SUCCESS_NW_CONN_MAX                          VARCHAR2(256) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_MIN                      VARCHAR2(256) NOT NULL, 
NODE_SUCCESS_NW_CONN_PCT_MAX                      VARCHAR2(256) NOT NULL, 
NODE_PORT_REACHABILITY_MIN                        VARCHAR2(256) NOT NULL, 
NODE_PORT_REACHABILITY_MAX                        VARCHAR2(256) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_MIN                    VARCHAR2(256) NOT NULL, 
NODE_PORT_REACHABILITY_PCT_MAX                    VARCHAR2(256) NOT NULL, 
NODE_SEMP_CONN_MIN                                VARCHAR2(256) NOT NULL, 
NODE_SEMP_CONN_MAX                                VARCHAR2(256) NOT NULL, 
NODE_SEMP_CONN_PCT_MIN                            VARCHAR2(256) NOT NULL, 
NODE_SEMP_CONN_PCT_MAX                            VARCHAR2(256) NOT NULL, 
TOTAL_PRIMARY_NODE_MIN                            VARCHAR2(256) NOT NULL, 
TOTAL_PRIMARY_NODE_MAX                            VARCHAR2(256) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_MIN                        VARCHAR2(256) NOT NULL, 
TOTAL_PRIMARY_NODE_PCT_MAX                        VARCHAR2(256) NOT NULL, 
TOTAL_BACKUP_NODE_MIN                             VARCHAR2(256) NOT NULL, 
TOTAL_BACKUP_NODE_MAX                             VARCHAR2(256) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_MIN                         VARCHAR2(256) NOT NULL, 
TOTAL_BACKUP_NODE_PCT_MAX                         VARCHAR2(256) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_MIN                       VARCHAR2(256) NOT NULL, 
TOTAL_NODE_ROLE_CHANGED_MAX                       VARCHAR2(256) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_MIN                        VARCHAR2(256) NOT NULL, 
NODES_NOT_LOCAL_ACTIVE_MAX                        VARCHAR2(256) NOT NULL, 
NODES_NOT_MATE_ACTIVE_MIN                         VARCHAR2(256) NOT NULL, 
NODES_NOT_MATE_ACTIVE_MAX                         VARCHAR2(256) NOT NULL); 

ALTER TABLE SolaceClusterStTest_THRESH ADD constraint PK_SolaceClusterStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceClusterStTest_THRESH ON SolaceClusterStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceClusterStTest ON SolaceClusterStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceClusterStTest ON SolaceClusterStTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceCluNodeTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNodeTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
CONFIG_STATUS                                     NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_ST                                  VARCHAR2(32) NOT NULL, 
REDUNDANCY_STATUS                                 NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_ST                              VARCHAR2(32) NOT NULL, 
AUTO_REVERT_ENABLED                               NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_ST                            VARCHAR2(32) NOT NULL, 
ACTIVE_STANDBY_ROLE                               NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_ST                            VARCHAR2(32) NOT NULL, 
ADB_LINK_STATE                                    NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_ST                                 VARCHAR2(32) NOT NULL, 
ADB_HELLO_STATE                                   NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_ST                                VARCHAR2(32) NOT NULL, 
ADB_HELLO_AVGLATENCY                              NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_ST                           VARCHAR2(32) NOT NULL, 
ADB_HELLO_MAXLATENCY                              NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_ACTIVITY                                  NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_ROUTE_IFSTATE                             NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_ST                          VARCHAR2(32) NOT NULL, 
PRIMARY_MSGSPOOL_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_SMRP_STATE                                NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_ST                             VARCHAR2(32) NOT NULL, 
PRIMARY_ADMSTATE                                  NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_ADMDPATH_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_FLASHMOD_STATE                            NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_ST                         VARCHAR2(32) NOT NULL, 
PRIMARY_PWRMOD_STATE                              NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_ADMCNT_STATE                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_ST                           VARCHAR2(32) NOT NULL, 
PRIMARY_DISK_STATE                                NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_ST                             VARCHAR2(32) NOT NULL, 
PRIMARY_DISKCNT_STATE                             NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_ST                          VARCHAR2(32) NOT NULL, 
PRIMARY_DB_SYNC                                   NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_ST                                VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD                                  NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_ST                               VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_PCT                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_ACTIVITY                                   NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_ROUTE_IFSTATE                              NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_MSGSPOOL_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_SMRP_STATE                                 NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_ST                              VARCHAR2(32) NOT NULL, 
BACKUP_ADMSTATE                                   NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_ADMDPATH_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_FLASHMOD_STATE                             NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_ST                          VARCHAR2(32) NOT NULL, 
BACKUP_PWRMOD_STATE                               NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_ST                            VARCHAR2(32) NOT NULL, 
BACKUP_ADMCNT_STATE                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_ST                            VARCHAR2(32) NOT NULL, 
BACKUP_DISK_STATE                                 NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_ST                              VARCHAR2(32) NOT NULL, 
BACKUP_DISKCNT_STATE                              NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_ST                           VARCHAR2(32) NOT NULL, 
BACKUP_DB_SYNC                                    NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_ST                                 VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD                                   NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_ST                                VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_PCT                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_ST                            VARCHAR2(32) NOT NULL, 
HAS_SWITCHOVER_OCCURRED                           NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_ST                        VARCHAR2(32) NOT NULL,
NODE_STATUS				                           NUMBER(20,4) NOT NULL, 
NODE_STATUS_ST                        				VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceCluNodeTest ON SolaceCluNodeTest(MSMT_TIME);
ALTER TABLE SolaceCluNodeTest ADD constraint PK_SolaceCluNodeTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE SolaceCluNodeTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNodeTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
CONFIG_STATUS_MIN                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_MAX                                 NUMBER(20,4) NOT NULL, 
CONFIG_STATUS_STCNT                               VARCHAR2(32) NOT NULL, 
REDUNDANCY_STATUS_MIN                             NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_MAX                             NUMBER(20,4) NOT NULL, 
REDUNDANCY_STATUS_STCNT                           VARCHAR2(32) NOT NULL, 
AUTO_REVERT_ENABLED_MIN                           NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_MAX                           NUMBER(20,4) NOT NULL, 
AUTO_REVERT_ENABLED_STCNT                         VARCHAR2(32) NOT NULL, 
ACTIVE_STANDBY_ROLE_MIN                           NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_MAX                           NUMBER(20,4) NOT NULL, 
ACTIVE_STANDBY_ROLE_STCNT                         VARCHAR2(32) NOT NULL, 
ADB_LINK_STATE_MIN                                NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_MAX                                NUMBER(20,4) NOT NULL, 
ADB_LINK_STATE_STCNT                              VARCHAR2(32) NOT NULL, 
ADB_HELLO_STATE_MIN                               NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_MAX                               NUMBER(20,4) NOT NULL, 
ADB_HELLO_STATE_STCNT                             VARCHAR2(32) NOT NULL, 
ADB_HELLO_AVGLATENCY_MIN                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_MAX                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_AVGLATENCY_STCNT                        VARCHAR2(32) NOT NULL, 
ADB_HELLO_MAXLATENCY_MIN                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_MAX                          NUMBER(20,4) NOT NULL, 
ADB_HELLO_MAXLATENCY_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_ACTIVITY_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_ACTIVITY_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MIN                         NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MAX                         NUMBER(20,4) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_STCNT                       VARCHAR2(32) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_SMRP_STATE_MIN                            NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_MAX                            NUMBER(20,4) NOT NULL, 
PRIMARY_SMRP_STATE_STCNT                          VARCHAR2(32) NOT NULL, 
PRIMARY_ADMSTATE_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_ADMSTATE_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_ADMDPATH_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MIN                        NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MAX                        NUMBER(20,4) NOT NULL, 
PRIMARY_FLASHMOD_STATE_STCNT                      VARCHAR2(32) NOT NULL, 
PRIMARY_PWRMOD_STATE_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_PWRMOD_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_ADMCNT_STATE_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_ADMCNT_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
PRIMARY_DISK_STATE_MIN                            NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_MAX                            NUMBER(20,4) NOT NULL, 
PRIMARY_DISK_STATE_STCNT                          VARCHAR2(32) NOT NULL, 
PRIMARY_DISKCNT_STATE_MIN                         NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_MAX                         NUMBER(20,4) NOT NULL, 
PRIMARY_DISKCNT_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
PRIMARY_DB_SYNC_MIN                               NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_MAX                               NUMBER(20,4) NOT NULL, 
PRIMARY_DB_SYNC_STCNT                             VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_MIN                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_MAX                              NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_STCNT                            VARCHAR2(32) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MIN                          NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MAX                          NUMBER(20,4) NOT NULL, 
PRIMARY_DB_BUILD_PCT_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_ACTIVITY_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_ACTIVITY_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MIN                          NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MAX                          NUMBER(20,4) NOT NULL, 
BACKUP_ROUTE_IFSTATE_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_MSGSPOOL_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_SMRP_STATE_MIN                             NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_MAX                             NUMBER(20,4) NOT NULL, 
BACKUP_SMRP_STATE_STCNT                           VARCHAR2(32) NOT NULL, 
BACKUP_ADMSTATE_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_ADMSTATE_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_ADMDPATH_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_ADMDPATH_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_FLASHMOD_STATE_MIN                         NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_MAX                         NUMBER(20,4) NOT NULL, 
BACKUP_FLASHMOD_STATE_STCNT                       VARCHAR2(32) NOT NULL, 
BACKUP_PWRMOD_STATE_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_PWRMOD_STATE_STCNT                         VARCHAR2(32) NOT NULL, 
BACKUP_ADMCNT_STATE_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_ADMCNT_STATE_STCNT                         VARCHAR2(32) NOT NULL, 
BACKUP_DISK_STATE_MIN                             NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_MAX                             NUMBER(20,4) NOT NULL, 
BACKUP_DISK_STATE_STCNT                           VARCHAR2(32) NOT NULL, 
BACKUP_DISKCNT_STATE_MIN                          NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_MAX                          NUMBER(20,4) NOT NULL, 
BACKUP_DISKCNT_STATE_STCNT                        VARCHAR2(32) NOT NULL, 
BACKUP_DB_SYNC_MIN                                NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_MAX                                NUMBER(20,4) NOT NULL, 
BACKUP_DB_SYNC_STCNT                              VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_MIN                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_MAX                               NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_STCNT                             VARCHAR2(32) NOT NULL, 
BACKUP_DB_BUILD_PCT_MIN                           NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_MAX                           NUMBER(20,4) NOT NULL, 
BACKUP_DB_BUILD_PCT_STCNT                         VARCHAR2(32) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MIN                       NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MAX                       NUMBER(20,4) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_STCNT                     VARCHAR2(32) NOT NULL, 
NODE_STATUS_MIN                       NUMBER(20,4) NOT NULL, 
NODE_STATUS_MAX                       NUMBER(20,4) NOT NULL, 
NODE_STATUS_STCNT                     VARCHAR2(32) NOT NULL); 
ALTER TABLE SolaceCluNodeTest_TREND ADD constraint PK_SolaceCluNodeTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE SolaceCluNodeTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNodeTest_THRESH(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
CONFIG_STATUS_MIN                                 VARCHAR2(256) NOT NULL, 
CONFIG_STATUS_MAX                                 VARCHAR2(256) NOT NULL, 
REDUNDANCY_STATUS_MIN                             VARCHAR2(256) NOT NULL, 
REDUNDANCY_STATUS_MAX                             VARCHAR2(256) NOT NULL, 
AUTO_REVERT_ENABLED_MIN                           VARCHAR2(256) NOT NULL, 
AUTO_REVERT_ENABLED_MAX                           VARCHAR2(256) NOT NULL, 
ACTIVE_STANDBY_ROLE_MIN                           VARCHAR2(256) NOT NULL, 
ACTIVE_STANDBY_ROLE_MAX                           VARCHAR2(256) NOT NULL, 
ADB_LINK_STATE_MIN                                VARCHAR2(256) NOT NULL, 
ADB_LINK_STATE_MAX                                VARCHAR2(256) NOT NULL, 
ADB_HELLO_STATE_MIN                               VARCHAR2(256) NOT NULL, 
ADB_HELLO_STATE_MAX                               VARCHAR2(256) NOT NULL, 
ADB_HELLO_AVGLATENCY_MIN                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_AVGLATENCY_MAX                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_MAXLATENCY_MIN                          VARCHAR2(256) NOT NULL, 
ADB_HELLO_MAXLATENCY_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_ACTIVITY_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_ACTIVITY_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MIN                         VARCHAR2(256) NOT NULL, 
PRIMARY_ROUTE_IFSTATE_MAX                         VARCHAR2(256) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_MSGSPOOL_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_SMRP_STATE_MIN                            VARCHAR2(256) NOT NULL, 
PRIMARY_SMRP_STATE_MAX                            VARCHAR2(256) NOT NULL, 
PRIMARY_ADMSTATE_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_ADMSTATE_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_ADMDPATH_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MIN                        VARCHAR2(256) NOT NULL, 
PRIMARY_FLASHMOD_STATE_MAX                        VARCHAR2(256) NOT NULL, 
PRIMARY_PWRMOD_STATE_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_PWRMOD_STATE_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_ADMCNT_STATE_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_ADMCNT_STATE_MAX                          VARCHAR2(256) NOT NULL, 
PRIMARY_DISK_STATE_MIN                            VARCHAR2(256) NOT NULL, 
PRIMARY_DISK_STATE_MAX                            VARCHAR2(256) NOT NULL, 
PRIMARY_DISKCNT_STATE_MIN                         VARCHAR2(256) NOT NULL, 
PRIMARY_DISKCNT_STATE_MAX                         VARCHAR2(256) NOT NULL, 
PRIMARY_DB_SYNC_MIN                               VARCHAR2(256) NOT NULL, 
PRIMARY_DB_SYNC_MAX                               VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_MIN                              VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_MAX                              VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MIN                          VARCHAR2(256) NOT NULL, 
PRIMARY_DB_BUILD_PCT_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_ACTIVITY_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_ACTIVITY_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MIN                          VARCHAR2(256) NOT NULL, 
BACKUP_ROUTE_IFSTATE_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_MSGSPOOL_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_SMRP_STATE_MIN                             VARCHAR2(256) NOT NULL, 
BACKUP_SMRP_STATE_MAX                             VARCHAR2(256) NOT NULL, 
BACKUP_ADMSTATE_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_ADMSTATE_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_ADMDPATH_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_ADMDPATH_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_FLASHMOD_STATE_MIN                         VARCHAR2(256) NOT NULL, 
BACKUP_FLASHMOD_STATE_MAX                         VARCHAR2(256) NOT NULL, 
BACKUP_PWRMOD_STATE_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_PWRMOD_STATE_MAX                           VARCHAR2(256) NOT NULL, 
BACKUP_ADMCNT_STATE_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_ADMCNT_STATE_MAX                           VARCHAR2(256) NOT NULL, 
BACKUP_DISK_STATE_MIN                             VARCHAR2(256) NOT NULL, 
BACKUP_DISK_STATE_MAX                             VARCHAR2(256) NOT NULL, 
BACKUP_DISKCNT_STATE_MIN                          VARCHAR2(256) NOT NULL, 
BACKUP_DISKCNT_STATE_MAX                          VARCHAR2(256) NOT NULL, 
BACKUP_DB_SYNC_MIN                                VARCHAR2(256) NOT NULL, 
BACKUP_DB_SYNC_MAX                                VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_MIN                               VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_MAX                               VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_PCT_MIN                           VARCHAR2(256) NOT NULL, 
BACKUP_DB_BUILD_PCT_MAX                           VARCHAR2(256) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MIN                       VARCHAR2(256) NOT NULL, 
HAS_SWITCHOVER_OCCURRED_MAX                       VARCHAR2(256) NOT NULL, 
NODE_STATUS_MIN                       VARCHAR2(256) NOT NULL, 
NODE_STATUS_MAX                       VARCHAR2(256) NOT NULL); 
ALTER TABLE SolaceCluNodeTest_THRESH ADD constraint PK_SolaceCluNodeTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceCluNodeTest_THRESH ON SolaceCluNodeTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceCluNodeTest ON SolaceCluNodeTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceCluNodeTest ON SolaceCluNodeTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE RedisClstrStatusTest CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrStatusTest(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
CLST_ENABLED NUMBER(20,4) NOT NULL,
CLST_ENABLED_ST VARCHAR2(32) NOT NULL,
CLST_SLTS_OK NUMBER(20,4) NOT NULL,
CLST_SLTS_OK_ST VARCHAR2(32) NOT NULL,
CLST_SLTS_PFAIL NUMBER(20,4) NOT NULL,
CLST_SLTS_PFAIL_ST VARCHAR2(32) NOT NULL,
CLST_STA_MSG_SENT NUMBER(20,4) NOT NULL,
CLST_STA_MSG_SENT_ST VARCHAR2(32) NOT NULL,
CLST_STAS NUMBER(20,4) NOT NULL,
CLST_STAS_ST VARCHAR2(32) NOT NULL,
CLST_KNW_NODES NUMBER(20,4) NOT NULL,
CLST_KNW_NODES_ST VARCHAR2(32) NOT NULL,
CLST_SLT_ASIGN NUMBER(20,4) NOT NULL,
CLST_SLT_ASIGN_ST VARCHAR2(32) NOT NULL,
CLST_SIZE NUMBER(20,4) NOT NULL,
CLST_SIZE_ST VARCHAR2(32) NOT NULL,
CLST_SLTS_FAIL NUMBER(20,4) NOT NULL,
CLST_SLTS_FAIL_ST VARCHAR2(32) NOT NULL,
CLST_STA_MSG_RX NUMBER(20,4) NOT NULL,
CLST_STA_MSG_RX_ST VARCHAR2(32) NOT NULL,
CLST_ADD_NODES NUMBER(20,4) NOT NULL,
CLST_ADD_NODES_ST VARCHAR2(32) NOT NULL,
CLST_DEL_NODES NUMBER(20,4) NOT NULL,
CLST_DEL_NODES_ST VARCHAR2(32) NOT NULL,
CLST_SLAVE_NODES NUMBER(20,4) NOT NULL,
CLST_SLAVE_NODES_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_RedisClstrStatusTest ON RedisClstrStatusTest(MSMT_TIME);

ALTER TABLE RedisClstrStatusTest ADD constraint PK_RedisClstrStatusTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE RedisClstrStatusTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrStatusTest_TREND(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
PERIOD VARCHAR2(32) NOT NULL,
CLST_ENABLED_MIN NUMBER(20,4) NOT NULL,
CLST_ENABLED_MAX NUMBER(20,4) NOT NULL,
CLST_ENABLED_STCNT VARCHAR2(32) NOT NULL,
CLST_SLTS_OK_MIN NUMBER(20,4) NOT NULL,
CLST_SLTS_OK_MAX NUMBER(20,4) NOT NULL,
CLST_SLTS_OK_STCNT VARCHAR2(32) NOT NULL,
CLST_SLTS_PFAIL_MIN NUMBER(20,4) NOT NULL,
CLST_SLTS_PFAIL_MAX NUMBER(20,4) NOT NULL,
CLST_SLTS_PFAIL_STCNT VARCHAR2(32) NOT NULL,
CLST_STA_MSG_SENT_MIN NUMBER(20,4) NOT NULL,
CLST_STA_MSG_SENT_MAX NUMBER(20,4) NOT NULL,
CLST_STA_MSG_SENT_STCNT VARCHAR2(32) NOT NULL,
CLST_STAS_MIN  NUMBER(20,4) NOT NULL,
CLST_STAS_MAX NUMBER(20,4) NOT NULL,
CLST_STAS_STCNT VARCHAR2(32) NOT NULL,
CLST_KNW_NODES_MIN NUMBER(20,4) NOT NULL,
CLST_KNW_NODES_MAX NUMBER(20,4) NOT NULL,
CLST_KNW_NODES_STCNT VARCHAR2(32) NOT NULL,
CLST_SLT_ASIGN_MIN NUMBER(20,4) NOT NULL,
CLST_SLT_ASIGN_MAX NUMBER(20,4) NOT NULL,
CLST_SLT_ASIGN_STCNT VARCHAR2(32) NOT NULL,
CLST_SIZE_MIN NUMBER(20,4) NOT NULL,
CLST_SIZE_MAX NUMBER(20,4) NOT NULL,
CLST_SIZE_STCNT VARCHAR2(32) NOT NULL,
CLST_SLTS_FAIL_MIN NUMBER(20,4) NOT NULL,
CLST_SLTS_FAIL_MAX NUMBER(20,4) NOT NULL,
CLST_SLTS_FAIL_STCNT VARCHAR2(32) NOT NULL,
CLST_STA_MSG_RX_MIN NUMBER(20,4) NOT NULL,
CLST_STA_MSG_RX_MAX NUMBER(20,4) NOT NULL,
CLST_STA_MSG_RX_STCNT VARCHAR2(32) NOT NULL,
CLST_ADD_NODES_MIN NUMBER(20,4) NOT NULL,
CLST_ADD_NODES_MAX NUMBER(20,4) NOT NULL,
CLST_ADD_NODES_STCNT VARCHAR2(32) NOT NULL,
CLST_DEL_NODES_MIN NUMBER(20,4) NOT NULL,
CLST_DEL_NODES_MAX NUMBER(20,4) NOT NULL,
CLST_DEL_NODES_STCNT VARCHAR2(32) NOT NULL,
CLST_SLAVE_NODES_MIN NUMBER(20,4) NOT NULL,
CLST_SLAVE_NODES_MAX NUMBER(20,4) NOT NULL,
CLST_SLAVE_NODES_STCNT VARCHAR2(32) NOT NULL);

ALTER TABLE RedisClstrStatusTest_TREND ADD constraint PK_RedisClstrStatusTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE RedisClstrStatusTest_THRESH CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrStatusTest_THRESH(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME_START DATE NOT NULL,
MSMT_TIME_END DATE NOT NULL,
CLST_ENABLED_MIN VARCHAR2(256) NOT NULL,
CLST_ENABLED_MAX VARCHAR2(256) NOT NULL,
CLST_SLTS_OK_MIN VARCHAR2(256) NOT NULL,
CLST_SLTS_OK_MAX VARCHAR2(256) NOT NULL,
CLST_SLTS_PFAIL_MIN VARCHAR2(256) NOT NULL,
CLST_SLTS_PFAIL_MAX VARCHAR2(256) NOT NULL,
CLST_STA_MSG_SENT_MIN VARCHAR2(256) NOT NULL,
CLST_STA_MSG_SENT_MAX VARCHAR2(256) NOT NULL,
CLST_STAS_MIN VARCHAR2(256) NOT NULL,
CLST_STAS_MAX VARCHAR2(256) NOT NULL,
CLST_KNW_NODES_MIN VARCHAR2(256) NOT NULL,
CLST_KNW_NODES_MAX VARCHAR2(256) NOT NULL,
CLST_SLT_ASIGN_MIN VARCHAR2(256) NOT NULL,
CLST_SLT_ASIGN_MAX VARCHAR2(256) NOT NULL,
CLST_SIZE_MIN VARCHAR2(256) NOT NULL,
CLST_SIZE_MAX VARCHAR2(256) NOT NULL,
CLST_SLTS_FAIL_MIN VARCHAR2(256) NOT NULL,
CLST_SLTS_FAIL_MAX VARCHAR2(256) NOT NULL,
CLST_STA_MSG_RX_MIN VARCHAR2(256) NOT NULL,
CLST_STA_MSG_RX_MAX VARCHAR2(256) NOT NULL,
CLST_ADD_NODES_MIN VARCHAR2(256) NOT NULL,
CLST_ADD_NODES_MAX VARCHAR2(256) NOT NULL,
CLST_DEL_NODES_MIN VARCHAR2(256) NOT NULL,
CLST_DEL_NODES_MAX VARCHAR2(256) NOT NULL,
CLST_SLAVE_NODES_MIN VARCHAR2(256) NOT NULL,
CLST_SLAVE_NODES_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE RedisClstrStatusTest_THRESH ADD constraint PK_RedClstStatusTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_RedClstStatusTest_THRESH ON RedisClstrStatusTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_RedisClstrStatusTest ON RedisClstrStatusTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_RedisClstrStatusTest ON RedisClstrStatusTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE RedisClstrReplicaTest CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrReplicaTest(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
ROLE NUMBER(20,4) NOT NULL,
ROLE_ST VARCHAR2(32) NOT NULL,
CONNECTED_SLV NUMBER(20,4) NOT NULL,
CONNECTED_SLV_ST VARCHAR2(32) NOT NULL,
MAST_LNK_STAT NUMBER(20,4) NOT NULL,
MAST_LNK_STAT_ST VARCHAR2(32) NOT NULL,
MAST_LNK_DN_SNC_SEC NUMBER(20,4) NOT NULL,
MAST_LNK_DN_SNC_SEC_ST VARCHAR2(32) NOT NULL,
MAST_LST_IO_SEC_AGO NUMBER(20,4) NOT NULL,
MAST_LST_IO_SEC_AGO_ST VARCHAR2(32) NOT NULL,
MAST_SYNC_IN_PROGS NUMBER(20,4) NOT NULL,
MAST_SYNC_IN_PROGS_ST VARCHAR2(32) NOT NULL,
MAST_SYNC_LFT_BT NUMBER(20,4) NOT NULL,
MAST_SYNC_LFT_BT_ST VARCHAR2(32) NOT NULL,
MAST_REPL_OFST NUMBER(20,4) NOT NULL,
MAST_REPL_OFST_ST VARCHAR2(32) NOT NULL,
SLV_REPL_OFST NUMBER(20,4) NOT NULL,
SLV_REPL_OFST_ST VARCHAR2(32) NOT NULL,
REPL_BAKLOG_ACTIVE NUMBER(20,4) NOT NULL,
REPL_BAKLOG_ACTIVE_ST VARCHAR2(32) NOT NULL,
REPL_BAKLOG_SIZE NUMBER(20,4) NOT NULL,
REPL_BAKLOG_SIZE_ST VARCHAR2(32) NOT NULL,
REPL_BAKLOG_FST_BT_OFST NUMBER(20,4) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_ST VARCHAR2(32) NOT NULL,
REPL_BAKLOG_HISTLEN NUMBER(20,4) NOT NULL,
REPL_BAKLOG_HISTLEN_ST VARCHAR2(32) NOT NULL,
ROLE_CHANGED NUMBER(20,4) NOT NULL,
ROLE_CHANGED_ST VARCHAR2(32) NOT NULL,
REPLICA_LAG NUMBER(20,4) NOT NULL,
REPLICA_LAG_ST VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_RedisClstrReplicaTest ON RedisClstrReplicaTest(MSMT_TIME);
ALTER TABLE RedisClstrReplicaTest ADD CONSTRAINT PK_RedisClstrReplicaTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE RedisClstrReplicaTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrReplicaTest_TREND(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
PERIOD VARCHAR2(32) NOT NULL,
ROLE_MIN NUMBER(20,4) NOT NULL,
ROLE_MAX NUMBER(20,4) NOT NULL,
ROLE_STCNT VARCHAR2(32) NOT NULL,
CONNECTED_SLV_MIN NUMBER(20,4) NOT NULL,
CONNECTED_SLV_MAX NUMBER(20,4) NOT NULL,
CONNECTED_SLV_STCNT VARCHAR2(32) NOT NULL,
MAST_LNK_STAT_MIN NUMBER(20,4) NOT NULL,
MAST_LNK_STAT_MAX NUMBER(20,4) NOT NULL,
MAST_LNK_STAT_STCNT VARCHAR2(32) NOT NULL,
MAST_LNK_DN_SNC_SEC_MIN NUMBER(20,4) NOT NULL,
MAST_LNK_DN_SNC_SEC_MAX NUMBER(20,4) NOT NULL,
MAST_LNK_DN_SNC_SEC_STCNT VARCHAR2(32) NOT NULL,
MAST_LST_IO_SEC_AGO_MIN NUMBER(20,4) NOT NULL,
MAST_LST_IO_SEC_AGO_MAX NUMBER(20,4) NOT NULL,
MAST_LST_IO_SEC_AGO_STCNT VARCHAR2(32) NOT NULL,
MAST_SYNC_IN_PROGS_MIN NUMBER(20,4) NOT NULL,
MAST_SYNC_IN_PROGS_MAX NUMBER(20,4) NOT NULL,
MAST_SYNC_IN_PROGS_STCNT VARCHAR2(32) NOT NULL,
MAST_SYNC_LFT_BT_MIN NUMBER(20,4) NOT NULL,
MAST_SYNC_LFT_BT_MAX NUMBER(20,4) NOT NULL,
MAST_SYNC_LFT_BT_STCNT VARCHAR2(32) NOT NULL,
MAST_REPL_OFST_MIN NUMBER(20,4) NOT NULL,
MAST_REPL_OFST_MAX NUMBER(20,4) NOT NULL,
MAST_REPL_OFST_STCNT VARCHAR2(32) NOT NULL,
SLV_REPL_OFST_MIN NUMBER(20,4) NOT NULL,
SLV_REPL_OFST_MAX NUMBER(20,4) NOT NULL,
SLV_REPL_OFST_STCNT VARCHAR2(32) NOT NULL,
REPL_BAKLOG_ACTIVE_MIN NUMBER(20,4) NOT NULL,
REPL_BAKLOG_ACTIVE_MAX NUMBER(20,4) NOT NULL,
REPL_BAKLOG_ACTIVE_STCNT VARCHAR2(32) NOT NULL,
REPL_BAKLOG_SIZE_MIN NUMBER(20,4) NOT NULL,
REPL_BAKLOG_SIZE_MAX NUMBER(20,4) NOT NULL,
REPL_BAKLOG_SIZE_STCNT VARCHAR2(32) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_MIN NUMBER(20,4) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_MAX NUMBER(20,4) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_STCNT VARCHAR2(32) NOT NULL,
REPL_BAKLOG_HISTLEN_MIN NUMBER(20,4) NOT NULL,
REPL_BAKLOG_HISTLEN_MAX NUMBER(20,4) NOT NULL,
REPL_BAKLOG_HISTLEN_STCNT VARCHAR2(32) NOT NULL,
ROLE_CHANGED_MIN NUMBER(20,4) NOT NULL,
ROLE_CHANGED_MAX NUMBER(20,4) NOT NULL,
ROLE_CHANGED_STCNT VARCHAR2(32) NOT NULL,
REPLICA_LAG_MIN NUMBER(20,4) NOT NULL,
REPLICA_LAG_MAX NUMBER(20,4) NOT NULL,
REPLICA_LAG_STCNT VARCHAR2(32) NOT NULL);

ALTER TABLE RedisClstrReplicaTest_TREND ADD CONSTRAINT PK_RedisClstrReplicaTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE RedisClstrReplicaTest_THRESH CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrReplicaTest_THRESH(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME_START DATE NOT NULL,
MSMT_TIME_END DATE NOT NULL,
ROLE_MIN VARCHAR2(256) NOT NULL,
ROLE_MAX VARCHAR2(256) NOT NULL,
CONNECTED_SLV_MIN VARCHAR2(256) NOT NULL,
CONNECTED_SLV_MAX VARCHAR2(256) NOT NULL,
MAST_LNK_STAT_MIN VARCHAR2(256) NOT NULL,
MAST_LNK_STAT_MAX VARCHAR2(256) NOT NULL,
MAST_LNK_DN_SNC_SEC_MIN VARCHAR2(256) NOT NULL,
MAST_LNK_DN_SNC_SEC_MAX VARCHAR2(256) NOT NULL,
MAST_LST_IO_SEC_AGO_MIN VARCHAR2(256) NOT NULL,
MAST_LST_IO_SEC_AGO_MAX VARCHAR2(256) NOT NULL,
MAST_SYNC_IN_PROGS_MIN VARCHAR2(256) NOT NULL,
MAST_SYNC_IN_PROGS_MAX VARCHAR2(256) NOT NULL,
MAST_SYNC_LFT_BT_MIN VARCHAR2(256) NOT NULL,
MAST_SYNC_LFT_BT_MAX VARCHAR2(256) NOT NULL,
MAST_REPL_OFST_MIN VARCHAR2(256) NOT NULL,
MAST_REPL_OFST_MAX VARCHAR2(256) NOT NULL,
SLV_REPL_OFST_MIN VARCHAR2(256) NOT NULL,
SLV_REPL_OFST_MAX VARCHAR2(256) NOT NULL,
REPL_BAKLOG_ACTIVE_MIN VARCHAR2(256) NOT NULL,
REPL_BAKLOG_ACTIVE_MAX VARCHAR2(256) NOT NULL,
REPL_BAKLOG_SIZE_MIN VARCHAR2(256) NOT NULL,
REPL_BAKLOG_SIZE_MAX VARCHAR2(256) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_MIN VARCHAR2(256) NOT NULL,
REPL_BAKLOG_FST_BT_OFST_MAX VARCHAR2(256) NOT NULL,
REPL_BAKLOG_HISTLEN_MIN VARCHAR2(256) NOT NULL,
REPL_BAKLOG_HISTLEN_MAX VARCHAR2(256) NOT NULL,
ROLE_CHANGED_MIN VARCHAR2(256) NOT NULL,
ROLE_CHANGED_MAX VARCHAR2(256) NOT NULL,
REPLICA_LAG_MIN VARCHAR2(256) NOT NULL,
REPLICA_LAG_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE RedisClstrReplicaTest_THRESH ADD CONSTRAINT PK_RedClstReplicaTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_RedClstReplicaTest_THRESH ON RedisClstrReplicaTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_RedisClstrReplicaTest ON RedisClstrReplicaTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_RedisClstrReplicaTest ON RedisClstrReplicaTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE RedisClsNdeStTest CASCADE CONSTRAINTS;
CREATE TABLE RedisClsNdeStTest(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
SERVER_STATUS NUMBER(20,4) NOT NULL,
SERVER_STATUS_ST VARCHAR2(32) NOT NULL,
PING_STATUS NUMBER(20,4) NOT NULL,
PING_STATUS_ST VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_RedisClsNdeStTest ON RedisClsNdeStTest(MSMT_TIME);
ALTER TABLE RedisClsNdeStTest ADD CONSTRAINT PK_RedisClsNdeStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE RedisClsNdeStTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE RedisClsNdeStTest_TREND(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
PERIOD VARCHAR2(32) NOT NULL,
SERVER_STATUS_MIN NUMBER(20,4) NOT NULL,
SERVER_STATUS_MAX NUMBER(20,4) NOT NULL,
SERVER_STATUS_STCNT VARCHAR2(32) NOT NULL,
PING_STATUS_MIN NUMBER(20,4) NOT NULL,
PING_STATUS_MAX NUMBER(20,4) NOT NULL,
PING_STATUS_STCNT VARCHAR2(32) NOT NULL);

ALTER TABLE RedisClsNdeStTest_TREND ADD CONSTRAINT PK_RedisClsNdeStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE RedisClsNdeStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE RedisClsNdeStTest_THRESH(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME_START  DATE NOT NULL,
MSMT_TIME_END DATE NOT NULL,
SERVER_STATUS_MIN VARCHAR2(256) NOT NULL,
SERVER_STATUS_MAX VARCHAR2(256) NOT NULL,
PING_STATUS_MIN VARCHAR2(256) NOT NULL,
PING_STATUS_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE RedisClsNdeStTest_THRESH ADD CONSTRAINT PK_RedisClsNdeStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_RedisClsNdeStTest_THRESH ON RedisClsNdeStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_RedisClsNdeStTest ON RedisClsNdeStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_RedisClsNdeStTest ON RedisClsNdeStTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE RedisClstrFailoverTest CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrFailoverTest(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
FAILOVER_HAPPENED NUMBER(20,4) NOT NULL,
FAILOVER_HAPPENED_ST VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_RedisClstrFailoverTest ON RedisClstrFailoverTest(MSMT_TIME);
ALTER TABLE RedisClstrFailoverTest ADD constraint PK_RedisClstrFailoverTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE RedisClstrFailoverTest_TREND CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrFailoverTest_TREND(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME DATE NOT NULL,
PERIOD VARCHAR2(32) NOT NULL,
FAILOVER_HAPPENED_MIN NUMBER(20,4) NOT NULL,
FAILOVER_HAPPENED_MAX NUMBER(20,4) NOT NULL,
FAILOVER_HAPPENED_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE RedisClstrFailoverTest_TREND ADD constraint PK_RedClstFailoverTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE RedisClstrFailoverTest_THRESH CASCADE CONSTRAINTS;

CREATE TABLE RedisClstrFailoverTest_THRESH(
TRGT_HOST VARCHAR2(32) NOT NULL,
PORT_NO VARCHAR2(32) NOT NULL,
SITE_NAME VARCHAR2(64) NOT NULL,
INFO VARCHAR2(128) NOT NULL,
MSMT_HOST VARCHAR2(32) NOT NULL,
MSMT_TIME_START DATE NOT NULL,
MSMT_TIME_END DATE NOT NULL,
FAILOVER_HAPPENED_MIN VARCHAR2(256) NOT NULL,
FAILOVER_HAPPENED_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE RedisClstrFailoverTest_THRESH ADD constraint PK_RedClstFailoverTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_RedClstFiloverTest_THRESH ON RedisClstrFailoverTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_RedisClstrFailoverTest ON RedisClstrFailoverTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_RedisClstrFailoverTest ON RedisClstrFailoverTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE FSLogixLogonTest CASCADE CONSTRAINTS;
CREATE TABLE FSLogixLogonTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
ATTACH_STATUS Number(20,4) NOT NULL,
ATTACH_STATUS_ST varchar2(32) NOT NULL,
ATTACH_REASON Number(20,4) NOT NULL,
ATTACH_REASON_ST varchar2(32) NOT NULL,
LOGON_DURATION Number(20,4) NOT NULL,
LOGON_DURATION_ST varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_ST varchar2(32) NOT NULL,
TOTAL_DISK_SIZE Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_ST varchar2(32) NOT NULL,
FREE_DISK_SIZE Number(20,4) NOT NULL,
FREE_DISK_SIZE_ST varchar2(32) NOT NULL,
USED_DISK_SIZE Number(20,4) NOT NULL,
USED_DISK_SIZE_ST varchar2(32) NOT NULL,
USAGE_OF_DISK Number(20,4) NOT NULL,
USAGE_OF_DISK_ST varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_ST varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_ST varchar2(32) NOT NULL,
PROFILE_TYPE Number(20,4) NOT NULL,
PROFILE_TYPE_ST varchar2(32) NOT NULL,
IS_DYNAMIC Number(20,4) NOT NULL,
IS_DYNAMIC_ST varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_ST varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED		Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_ST	VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_FSLogixLogonTest ON FSLogixLogonTest(MSMT_TIME);
ALTER TABLE FSLogixLogonTest ADD constraint PK_FSLogixLogonTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE FSLogixLogonTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE FSLogixLogonTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
ATTACH_STATUS_MIN Number(20,4) NOT NULL,
ATTACH_STATUS_MAX Number(20,4) NOT NULL,
ATTACH_STATUS_STCNT varchar2(32) NOT NULL,
ATTACH_REASON_MIN Number(20,4) NOT NULL,
ATTACH_REASON_MAX Number(20,4) NOT NULL,
ATTACH_REASON_STCNT varchar2(32) NOT NULL,
LOGON_DURATION_MIN Number(20,4) NOT NULL,
LOGON_DURATION_MAX Number(20,4) NOT NULL,
LOGON_DURATION_STCNT varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION_MIN Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_MAX Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_STCNT varchar2(32) NOT NULL,
TOTAL_DISK_SIZE_MIN Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_MAX Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_STCNT varchar2(32) NOT NULL,
FREE_DISK_SIZE_MIN Number(20,4) NOT NULL,
FREE_DISK_SIZE_MAX Number(20,4) NOT NULL,
FREE_DISK_SIZE_STCNT varchar2(32) NOT NULL,
USED_DISK_SIZE_MIN Number(20,4) NOT NULL,
USED_DISK_SIZE_MAX Number(20,4) NOT NULL,
USED_DISK_SIZE_STCNT varchar2(32) NOT NULL,
USAGE_OF_DISK_MIN Number(20,4) NOT NULL,
USAGE_OF_DISK_MAX Number(20,4) NOT NULL,
USAGE_OF_DISK_STCNT varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED_MIN Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_MAX Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_STCNT varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_STCNT varchar2(32) NOT NULL,
PROFILE_TYPE_MIN Number(20,4) NOT NULL,
PROFILE_TYPE_MAX Number(20,4) NOT NULL,
PROFILE_TYPE_STCNT varchar2(32) NOT NULL,
IS_DYNAMIC_MIN Number(20,4) NOT NULL,
IS_DYNAMIC_MAX Number(20,4) NOT NULL,
IS_DYNAMIC_STCNT varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_STCNT varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_STCNT	VARCHAR2(32) NOT NULL);

ALTER TABLE FSLogixLogonTest_TREND ADD constraint PK_FSLogixLogonTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE FSLogixLogonTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE FSLogixLogonTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
ATTACH_STATUS_MIN VARCHAR2(256) NOT NULL,
ATTACH_STATUS_MAX VARCHAR2(256) NOT NULL,
ATTACH_REASON_MIN VARCHAR2(256) NOT NULL,
ATTACH_REASON_MAX VARCHAR2(256) NOT NULL,
LOGON_DURATION_MIN VARCHAR2(256) NOT NULL,
LOGON_DURATION_MAX VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MIN VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MAX VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MIN VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MAX VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MIN VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MAX VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MIN VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MAX VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MIN VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MAX VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	VARCHAR2(256) NOT NULL);

ALTER TABLE FSLogixLogonTest_THRESH ADD constraint PK_FSLogixLogonTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_FSLogixLogonTest_THRESH ON FSLogixLogonTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_FSLogixLogonTest ON FSLogixLogonTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_FSLogixLogonTest ON FSLogixLogonTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE WVDFSLogixLogonTest CASCADE CONSTRAINTS;
CREATE TABLE WVDFSLogixLogonTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
ATTACH_STATUS Number(20,4) NOT NULL,
ATTACH_STATUS_ST varchar2(32) NOT NULL,
ATTACH_REASON Number(20,4) NOT NULL,
ATTACH_REASON_ST varchar2(32) NOT NULL,
LOGON_DURATION Number(20,4) NOT NULL,
LOGON_DURATION_ST varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_ST varchar2(32) NOT NULL,
TOTAL_DISK_SIZE Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_ST varchar2(32) NOT NULL,
FREE_DISK_SIZE Number(20,4) NOT NULL,
FREE_DISK_SIZE_ST varchar2(32) NOT NULL,
USED_DISK_SIZE Number(20,4) NOT NULL,
USED_DISK_SIZE_ST varchar2(32) NOT NULL,
USAGE_OF_DISK Number(20,4) NOT NULL,
USAGE_OF_DISK_ST varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_ST varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_ST varchar2(32) NOT NULL,
PROFILE_TYPE Number(20,4) NOT NULL,
PROFILE_TYPE_ST varchar2(32) NOT NULL,
IS_DYNAMIC Number(20,4) NOT NULL,
IS_DYNAMIC_ST varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_ST varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_ST VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_WVDFSLogixLogonTest ON WVDFSLogixLogonTest(MSMT_TIME);
ALTER TABLE WVDFSLogixLogonTest ADD constraint PK_WVDFSLogixLogonTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE WVDFSLogixLogonTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE WVDFSLogixLogonTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
ATTACH_STATUS_MIN Number(20,4) NOT NULL,
ATTACH_STATUS_MAX Number(20,4) NOT NULL,
ATTACH_STATUS_STCNT varchar2(32) NOT NULL,
ATTACH_REASON_MIN Number(20,4) NOT NULL,
ATTACH_REASON_MAX Number(20,4) NOT NULL,
ATTACH_REASON_STCNT varchar2(32) NOT NULL,
LOGON_DURATION_MIN Number(20,4) NOT NULL,
LOGON_DURATION_MAX Number(20,4) NOT NULL,
LOGON_DURATION_STCNT varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION_MIN Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_MAX Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_STCNT varchar2(32) NOT NULL,
TOTAL_DISK_SIZE_MIN Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_MAX Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_STCNT varchar2(32) NOT NULL,
FREE_DISK_SIZE_MIN Number(20,4) NOT NULL,
FREE_DISK_SIZE_MAX Number(20,4) NOT NULL,
FREE_DISK_SIZE_STCNT varchar2(32) NOT NULL,
USED_DISK_SIZE_MIN Number(20,4) NOT NULL,
USED_DISK_SIZE_MAX Number(20,4) NOT NULL,
USED_DISK_SIZE_STCNT varchar2(32) NOT NULL,
USAGE_OF_DISK_MIN Number(20,4) NOT NULL,
USAGE_OF_DISK_MAX Number(20,4) NOT NULL,
USAGE_OF_DISK_STCNT varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED_MIN Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_MAX Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_STCNT varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_STCNT varchar2(32) NOT NULL,
PROFILE_TYPE_MIN Number(20,4) NOT NULL,
PROFILE_TYPE_MAX Number(20,4) NOT NULL,
PROFILE_TYPE_STCNT varchar2(32) NOT NULL,
IS_DYNAMIC_MIN Number(20,4) NOT NULL,
IS_DYNAMIC_MAX Number(20,4) NOT NULL,
IS_DYNAMIC_STCNT varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_STCNT varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_STCNT	VARCHAR2(32) NOT NULL);

ALTER TABLE WVDFSLogixLogonTest_TREND ADD constraint PK_WVDFSLogixLogonTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE WVDFSLogixLogonTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE WVDFSLogixLogonTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
ATTACH_STATUS_MIN VARCHAR2(256) NOT NULL,
ATTACH_STATUS_MAX VARCHAR2(256) NOT NULL,
ATTACH_REASON_MIN VARCHAR2(256) NOT NULL,
ATTACH_REASON_MAX VARCHAR2(256) NOT NULL,
LOGON_DURATION_MIN VARCHAR2(256) NOT NULL,
LOGON_DURATION_MAX VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MIN VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MAX VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MIN VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MAX VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MIN VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MAX VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MIN VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MAX VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MIN VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MAX VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MIN VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MAX VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	VARCHAR2(256) NOT NULL);

ALTER TABLE WVDFSLogixLogonTest_THRESH ADD constraint PK_WVDFSLogixLogonTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_WVDFSLogixLogonTest_THRESH ON WVDFSLogixLogonTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_WVDFSLogixLogonTest ON WVDFSLogixLogonTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_WVDFSLogixLogonTest ON WVDFSLogixLogonTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE VmgFSLogixTest CASCADE CONSTRAINTS;
CREATE TABLE VmgFSLogixTest(
TRGT_HOST			varchar2(32),
PORT_NO				varchar2(32),
SITE_NAME			varchar2(64),
INFO				varchar2(128),
MSMT_HOST			varchar2(32),
MSMT_TIME			date,
ATTACH_STATUS			Number(20,4) NOT NULL,
ATTACH_STATUS_ST		varchar2(32) NOT NULL,
ATTACH_REASON			Number(20,4) NOT NULL,
ATTACH_REASON_ST		varchar2(32) NOT NULL,
LOGON_DURATION			Number(20,4) NOT NULL,
LOGON_DURATION_ST		varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION		Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_ST	varchar2(32) NOT NULL,
TOTAL_DISK_SIZE			Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_ST		varchar2(32) NOT NULL,
FREE_DISK_SIZE			Number(20,4) NOT NULL,
FREE_DISK_SIZE_ST		varchar2(32) NOT NULL,
USED_DISK_SIZE			Number(20,4) NOT NULL,
USED_DISK_SIZE_ST		varchar2(32) NOT NULL,
USAGE_OF_DISK			Number(20,4) NOT NULL,
USAGE_OF_DISK_ST		varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED		Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_ST		varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING		Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_ST	varchar2(32) NOT NULL,
PROFILE_TYPE			Number(20,4) NOT NULL,
PROFILE_TYPE_ST			varchar2(32) NOT NULL,
IS_DYNAMIC			Number(20,4) NOT NULL,
IS_DYNAMIC_ST			varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR		Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_ST	varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED		Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_ST	VARCHAR2(32) NOT NULL);

CREATE INDEX IDX_VmgFSLogixTest ON VmgFSLogixTest(MSMT_TIME);
ALTER TABLE VmgFSLogixTest ADD constraint PK_VmgFSLogixTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE VmgFSLogixTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE VmgFSLogixTest_TREND(
TRGT_HOST			varchar2(32),
PORT_NO				varchar2(32),
SITE_NAME			varchar2(64),
INFO				varchar2(128),
MSMT_HOST			varchar2(32),
MSMT_TIME			date,
PERIOD       			varchar2(32),
ATTACH_STATUS_MIN		Number(20,4) NOT NULL,
ATTACH_STATUS_MAX		Number(20,4) NOT NULL,
ATTACH_STATUS_STCNT		varchar2(32) NOT NULL,
ATTACH_REASON_MIN		Number(20,4) NOT NULL,
ATTACH_REASON_MAX		Number(20,4) NOT NULL,
ATTACH_REASON_STCNT		varchar2(32) NOT NULL,
LOGON_DURATION_MIN		Number(20,4) NOT NULL,
LOGON_DURATION_MAX		Number(20,4) NOT NULL,
LOGON_DURATION_STCNT		varchar2(32) NOT NULL,
LOGON_NOTIFY_DURATION_MIN	Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_MAX	Number(20,4) NOT NULL,
LOGON_NOTIFY_DURATION_STCNT	varchar2(32) NOT NULL,
TOTAL_DISK_SIZE_MIN		Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_MAX		Number(20,4) NOT NULL,
TOTAL_DISK_SIZE_STCNT		varchar2(32) NOT NULL,
FREE_DISK_SIZE_MIN		Number(20,4) NOT NULL,
FREE_DISK_SIZE_MAX		Number(20,4) NOT NULL,
FREE_DISK_SIZE_STCNT		varchar2(32) NOT NULL,
USED_DISK_SIZE_MIN		Number(20,4) NOT NULL,
USED_DISK_SIZE_MAX		Number(20,4) NOT NULL,
USED_DISK_SIZE_STCNT		varchar2(32) NOT NULL,
USAGE_OF_DISK_MIN		Number(20,4) NOT NULL,
USAGE_OF_DISK_MAX		Number(20,4) NOT NULL,
USAGE_OF_DISK_STCNT		varchar2(32) NOT NULL,
IS_CONTAINER_ENABLED_MIN	Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_MAX	Number(20,4) NOT NULL,
IS_CONTAINER_ENABLED_STCNT	varchar2(32) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN	Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX	Number(20,4) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_STCNT	varchar2(32) NOT NULL,
PROFILE_TYPE_MIN		Number(20,4) NOT NULL,
PROFILE_TYPE_MAX		Number(20,4) NOT NULL,
PROFILE_TYPE_STCNT		varchar2(32) NOT NULL,
IS_DYNAMIC_MIN			Number(20,4) NOT NULL,
IS_DYNAMIC_MAX			Number(20,4) NOT NULL,
IS_DYNAMIC_STCNT		varchar2(32) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN	Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX	Number(20,4) NOT NULL,
IS_ALLOW_CONCURRENT_USR_STCNT	varchar2(32) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	Number(20,4) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_STCNT	VARCHAR2(32) NOT NULL);

ALTER TABLE VmgFSLogixTest_TREND ADD constraint PK_VmgFSLogixTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE VmgFSLogixTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE VmgFSLogixTest_THRESH(
TRGT_HOST			varchar2(32),
PORT_NO				varchar2(32),
SITE_NAME			varchar2(64),
INFO				varchar2(128),
MSMT_HOST			varchar2(32),
MSMT_TIME_START			date,
MSMT_TIME_END			date,
ATTACH_STATUS_MIN		VARCHAR2(256) NOT NULL,
ATTACH_STATUS_MAX		VARCHAR2(256) NOT NULL,
ATTACH_REASON_MIN		VARCHAR2(256) NOT NULL,
ATTACH_REASON_MAX		VARCHAR2(256) NOT NULL,
LOGON_DURATION_MIN		VARCHAR2(256) NOT NULL,
LOGON_DURATION_MAX		VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MIN	VARCHAR2(256) NOT NULL,
LOGON_NOTIFY_DURATION_MAX	VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MIN		VARCHAR2(256) NOT NULL,
TOTAL_DISK_SIZE_MAX		VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MIN		VARCHAR2(256) NOT NULL,
FREE_DISK_SIZE_MAX		VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MIN		VARCHAR2(256) NOT NULL,
USED_DISK_SIZE_MAX		VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MIN		VARCHAR2(256) NOT NULL,
USAGE_OF_DISK_MAX		VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MIN	VARCHAR2(256) NOT NULL,
IS_CONTAINER_ENABLED_MAX	VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MIN	VARCHAR2(256) NOT NULL,
IS_FSLOGIX_SVC_RUNNING_MAX	VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MIN		VARCHAR2(256) NOT NULL,
PROFILE_TYPE_MAX		VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MIN			VARCHAR2(256) NOT NULL,
IS_DYNAMIC_MAX			VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MIN	VARCHAR2(256) NOT NULL,
IS_ALLOW_CONCURRENT_USR_MAX	VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MIN	VARCHAR2(256) NOT NULL,
IS_CLOUD_CACHE_CONNECTED_MAX	VARCHAR2(256) NOT NULL);

ALTER TABLE VmgFSLogixTest_THRESH ADD constraint PK_VmgFSLogixTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_VmgFSLogixTest_THRESH ON VmgFSLogixTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_VmgFSLogixTest ON VmgFSLogixTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_VmgFSLogixTest ON VmgFSLogixTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE AzrIntCertTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntCertTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
certStatus Number(20,4) NOT NULL,
certStatus_ST VARCHAR2(32) NOT NULL,
differenceDates Number(20,4) NOT NULL,
differenceDates_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntCertTest ON AzrIntCertTest(MSMT_TIME);
ALTER TABLE AzrIntCertTest ADD constraint PK_AzrIntCertTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntCertTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntCertTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
certStatus_MIN Number(20,4) NOT NULL,
certStatus_MAX Number(20,4) NOT NULL,
certStatus_STCNT VARCHAR2(32) NOT NULL,
differenceDates_MIN Number(20,4) NOT NULL,
differenceDates_MAX Number(20,4) NOT NULL,
differenceDates_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntCertTest_TREND ADD constraint PK_AzrIntCertTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntCertTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntCertTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
certStatus_MIN VARCHAR2(256) NOT NULL,
certStatus_MAX VARCHAR2(256) NOT NULL,
differenceDates_MIN VARCHAR2(256) NOT NULL,
differenceDates_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntCertTest_THRESH ADD constraint PK_AzrIntCertTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntCertTest_THRESH ON AzrIntCertTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntCertTest ON AzrIntCertTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntCertTest ON AzrIntCertTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE AzrIntConnTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntConnTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
status Number(20,4) NOT NULL,
status_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntConnTest ON AzrIntConnTest(MSMT_TIME);
ALTER TABLE AzrIntConnTest ADD constraint PK_AzrIntConnTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntConnTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntConnTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
status_MIN Number(20,4) NOT NULL,
status_MAX Number(20,4) NOT NULL,
status_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntConnTest_TREND ADD constraint PK_AzrIntConnTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntConnTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntConnTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
status_MIN VARCHAR2(256) NOT NULL,
status_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntConnTest_THRESH ADD constraint PK_AzrIntConnTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntConnTest_THRESH ON AzrIntConnTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntConnTest ON AzrIntConnTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntConnTest ON AzrIntConnTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE AzrIntApCertTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApCertTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
certStatus Number(20,4) NOT NULL,
certStatus_ST VARCHAR2(32) NOT NULL,
differenceDates Number(20,4) NOT NULL,
differenceDates_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntApCertTest ON AzrIntApCertTest(MSMT_TIME);
ALTER TABLE AzrIntApCertTest ADD constraint PK_AzrIntApCertTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntApCertTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApCertTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
certStatus_MIN Number(20,4) NOT NULL,
certStatus_MAX Number(20,4) NOT NULL,
certStatus_STCNT VARCHAR2(32) NOT NULL,
differenceDates_MIN Number(20,4) NOT NULL,
differenceDates_MAX Number(20,4) NOT NULL,
differenceDates_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntApCertTest_TREND ADD constraint PK_AzrIntApCertTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntApCertTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApCertTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
certStatus_MIN VARCHAR2(256) NOT NULL,
certStatus_MAX VARCHAR2(256) NOT NULL,
differenceDates_MIN VARCHAR2(256) NOT NULL,
differenceDates_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntApCertTest_THRESH ADD constraint PK_AzrIntApCertTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntApCertTest_THRESH ON AzrIntApCertTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntApCertTest ON AzrIntApCertTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntApCertTest ON AzrIntApCertTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE AzrIntAndroidTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAndroidTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
tokenStatus Number(20,4) NOT NULL,
tokenStatus_ST VARCHAR2(32) NOT NULL,
differenceDates Number(20,4) NOT NULL,
differenceDates_ST VARCHAR2(32) NOT NULL,
enrollMode Number(20,4) NOT NULL,
enrollMode_ST VARCHAR2(32) NOT NULL,
enrollType Number(20,4) NOT NULL,
enrollType_ST VARCHAR2(32) NOT NULL,
deviceCount Number(20,4) NOT NULL,
deviceCount_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntAndroidTest ON AzrIntAndroidTest(MSMT_TIME);
ALTER TABLE AzrIntAndroidTest ADD constraint PK_AzrIntAndroidTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntAndroidTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAndroidTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
tokenStatus_MIN Number(20,4) NOT NULL,
tokenStatus_MAX Number(20,4) NOT NULL,
tokenStatus_STCNT VARCHAR2(32) NOT NULL,
differenceDates_MIN Number(20,4) NOT NULL,
differenceDates_MAX Number(20,4) NOT NULL,
differenceDates_STCNT VARCHAR2(32) NOT NULL,
enrollMode_MIN Number(20,4) NOT NULL,
enrollMode_MAX Number(20,4) NOT NULL,
enrollMode_STCNT VARCHAR2(32) NOT NULL,
enrollType_MIN Number(20,4) NOT NULL,
enrollType_MAX Number(20,4) NOT NULL,
enrollType_STCNT VARCHAR2(32) NOT NULL,
deviceCount_MIN Number(20,4) NOT NULL,
deviceCount_MAX Number(20,4) NOT NULL,
deviceCount_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntAndroidTest_TREND ADD constraint PK_AzrIntAndroidTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntAndroidTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAndroidTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
tokenStatus_MIN VARCHAR2(256) NOT NULL,
tokenStatus_MAX VARCHAR2(256) NOT NULL,
differenceDates_MIN VARCHAR2(256) NOT NULL,
differenceDates_MAX VARCHAR2(256) NOT NULL,
enrollMode_MIN VARCHAR2(256) NOT NULL,
enrollMode_MAX VARCHAR2(256) NOT NULL,
enrollType_MIN VARCHAR2(256) NOT NULL,
enrollType_MAX VARCHAR2(256) NOT NULL,
deviceCount_MIN VARCHAR2(256) NOT NULL,
deviceCount_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntAndroidTest_THRESH ADD constraint PK_AzrIntAndroidTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntAndroidTest_THRESH ON AzrIntAndroidTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntAndroidTest ON AzrIntAndroidTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntAndroidTest ON AzrIntAndroidTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE AzrIntApVPPTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApVPPTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
tokenStatus Number(20,4) NOT NULL,
tokenStatus_ST VARCHAR2(32) NOT NULL,
differenceDates Number(20,4) NOT NULL,
differenceDates_ST VARCHAR2(32) NOT NULL,
tokState Number(20,4) NOT NULL,
tokState_ST VARCHAR2(32) NOT NULL,
syncStatus Number(20,4) NOT NULL,
syncStatus_ST VARCHAR2(32) NOT NULL,
accountType Number(20,4) NOT NULL,
accountType_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntApVPPTest ON AzrIntApVPPTest(MSMT_TIME);
ALTER TABLE AzrIntApVPPTest ADD constraint PK_AzrIntApVPPTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntApVPPTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApVPPTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
tokenStatus_MIN Number(20,4) NOT NULL,
tokenStatus_MAX Number(20,4) NOT NULL,
tokenStatus_STCNT VARCHAR2(32) NOT NULL,
differenceDates_MIN Number(20,4) NOT NULL,
differenceDates_MAX Number(20,4) NOT NULL,
differenceDates_STCNT VARCHAR2(32) NOT NULL,
tokState_MIN Number(20,4) NOT NULL,
tokState_MAX Number(20,4) NOT NULL,
tokState_STCNT VARCHAR2(32) NOT NULL,
syncStatus_MIN Number(20,4) NOT NULL,
syncStatus_MAX Number(20,4) NOT NULL,
syncStatus_STCNT VARCHAR2(32) NOT NULL,
accountType_MIN Number(20,4) NOT NULL,
accountType_MAX Number(20,4) NOT NULL,
accountType_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntApVPPTest_TREND ADD constraint PK_AzrIntApVPPTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntApVPPTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApVPPTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
tokenStatus_MIN VARCHAR2(256) NOT NULL,
tokenStatus_MAX VARCHAR2(256) NOT NULL,
differenceDates_MIN VARCHAR2(256) NOT NULL,
differenceDates_MAX VARCHAR2(256) NOT NULL,
tokState_MIN VARCHAR2(256) NOT NULL,
tokState_MAX VARCHAR2(256) NOT NULL,
syncStatus_MIN VARCHAR2(256) NOT NULL,
syncStatus_MAX VARCHAR2(256) NOT NULL,
accountType_MIN VARCHAR2(256) NOT NULL,
accountType_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntApVPPTest_THRESH ADD constraint PK_AzrIntApVPPTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntApVPPTest_THRESH ON AzrIntApVPPTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntApVPPTest ON AzrIntApVPPTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntApVPPTest ON AzrIntApVPPTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE AzrIntApEnrolTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApEnrolTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
tokenStatus Number(20,4) NOT NULL,
tokenStatus_ST VARCHAR2(32) NOT NULL,
differenceDates Number(20,4) NOT NULL,
differenceDates_ST VARCHAR2(32) NOT NULL,
tokType Number(20,4) NOT NULL,
tokType_ST VARCHAR2(32) NOT NULL,
syncdeviceCount Number(20,4) NOT NULL,
syncdeviceCount_ST VARCHAR2(32) NOT NULL,
errorCode Number(20,4) NOT NULL,
errorCode_ST VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_AzrIntApEnrolTest ON AzrIntApEnrolTest(MSMT_TIME);
ALTER TABLE AzrIntApEnrolTest ADD constraint PK_AzrIntApEnrolTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntApEnrolTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApEnrolTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
tokenStatus_MIN Number(20,4) NOT NULL,
tokenStatus_MAX Number(20,4) NOT NULL,
tokenStatus_STCNT VARCHAR2(32) NOT NULL,
differenceDates_MIN Number(20,4) NOT NULL,
differenceDates_MAX Number(20,4) NOT NULL,
differenceDates_STCNT VARCHAR2(32) NOT NULL,
tokType_MIN Number(20,4) NOT NULL,
tokType_MAX Number(20,4) NOT NULL,
tokType_STCNT VARCHAR2(32) NOT NULL,
syncdeviceCount_MIN Number(20,4) NOT NULL,
syncdeviceCount_MAX Number(20,4) NOT NULL,
syncdeviceCount_STCNT VARCHAR2(32) NOT NULL,
errorCode_MIN Number(20,4) NOT NULL,
errorCode_MAX Number(20,4) NOT NULL,
errorCode_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE AzrIntApEnrolTest_TREND ADD constraint PK_AzrIntApEnrolTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntApEnrolTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntApEnrolTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
tokenStatus_MIN VARCHAR2(256) NOT NULL,
tokenStatus_MAX VARCHAR2(256) NOT NULL,
differenceDates_MIN VARCHAR2(256) NOT NULL,
differenceDates_MAX VARCHAR2(256) NOT NULL,
tokType_MIN VARCHAR2(256) NOT NULL,
tokType_MAX VARCHAR2(256) NOT NULL,
syncdeviceCount_MIN VARCHAR2(256) NOT NULL,
syncdeviceCount_MAX VARCHAR2(256) NOT NULL,
errorCode_MIN VARCHAR2(256) NOT NULL,
errorCode_MAX VARCHAR2(256) NOT NULL);
ALTER TABLE AzrIntApEnrolTest_THRESH ADD constraint PK_AzrIntApEnrolTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntApEnrolTest_THRESH ON AzrIntApEnrolTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntApEnrolTest ON AzrIntApEnrolTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntApEnrolTest ON AzrIntApEnrolTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE AzrIntAdmCtrTest CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAdmCtrTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
AVAILABLE		Number(3) NOT NULL,
AVAILABLE_ST		VARCHAR2(32) NOT NULL,
RESP_TIME		Number(20,4) NOT NULL,
RESP_TIME_ST		VARCHAR2(32) NOT NULL,
TCP_CONN_AVAIL		Number(3) NOT NULL,
TCP_CONN_AVAIL_ST	VARCHAR2(32) NOT NULL,
TCP_CONN_TIME		Number(20,4) NOT NULL,
TCP_CONN_TIME_ST	VARCHAR2(32) NOT NULL,
SVR_RESP_TIME		Number(20,4) NOT NULL,
SVR_RESP_TIME_ST	VARCHAR2(32) NOT NULL,
CONTENT_VAL		Number(3) NOT NULL,
CONTENT_VAL_ST		VARCHAR2(32) NOT NULL,
RESP_CODE		Number(3) NOT NULL,
RESP_CODE_ST		VARCHAR2(32) NOT NULL,
CONTENT_LEN		Number(20,4) NOT NULL,
CONTENT_LEN_ST		VARCHAR2(32) NOT NULL,
DATA_XFER_TIME		Number(20,4) NOT NULL,
DATA_XFER_TIME_ST	VARCHAR2(32) NOT NULL,
DNS_AVAILABILITY	Number(20,4) NOT NULL,
DNS_AVAILABILITY_ST	VARCHAR2(32) NOT NULL,
DNS_RESP_TIME   	Number(20,4)  	NOT NULL,
DNS_RESP_TIME_ST   	VARCHAR2(32)  	NOT NULL,
COMPRESSION	       Number(20,4)  	NOT NULL,
COMPRESSION_ST   	VARCHAR2(32)  	NOT NULL);
CREATE INDEX IDX_AzrIntAdmCtrTest ON AzrIntAdmCtrTest(MSMT_TIME);
ALTER TABLE AzrIntAdmCtrTest ADD constraint PK_AzrIntAdmCtrTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE AzrIntAdmCtrTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAdmCtrTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
AVAILABLE_MIN		Number(20,4) NOT NULL,
AVAILABLE_MAX		Number(20,4) NOT NULL,
AVAILABLE_STCNT		VARCHAR2(32) NOT NULL,
RESP_TIME_MIN		Number(20,4) NOT NULL,
RESP_TIME_MAX		Number(20,4) NOT NULL,
RESP_TIME_STCNT		VARCHAR2(32) NOT NULL,
TCP_CONN_AVAIL_MIN	Number(20,4) NOT NULL,
TCP_CONN_AVAIL_MAX	Number(20,4) NOT NULL,
TCP_CONN_AVAIL_STCNT	VARCHAR2(32) NOT NULL,
TCP_CONN_TIME_MIN	Number(20,4) NOT NULL,
TCP_CONN_TIME_MAX	Number(20,4) NOT NULL,
TCP_CONN_TIME_STCNT	VARCHAR2(32) NOT NULL,
SVR_RESP_TIME_MIN	Number(20,4) NOT NULL,
SVR_RESP_TIME_MAX	Number(20,4) NOT NULL,
SVR_RESP_TIME_STCNT	VARCHAR2(32) NOT NULL,
CONTENT_VAL_MIN		Number(20,4) NOT NULL,
CONTENT_VAL_MAX		Number(20,4) NOT NULL,
CONTENT_VAL_STCNT	VARCHAR2(32) NOT NULL,
RESP_CODE_MIN		Number(20,4) NOT NULL,
RESP_CODE_MAX		Number(20,4) NOT NULL,
RESP_CODE_STCNT		VARCHAR2(32) NOT NULL,
CONTENT_LEN_MIN		Number(20,4) NOT NULL,
CONTENT_LEN_MAX		Number(20,4) NOT NULL,
CONTENT_LEN_STCNT	VARCHAR2(32) NOT NULL,
DATA_XFER_TIME_MIN	Number(20,4) NOT NULL,
DATA_XFER_TIME_MAX	Number(20,4) NOT NULL,
DATA_XFER_TIME_STCNT	VARCHAR2(32) NOT NULL,
DNS_AVAILABILITY_MIN	Number(20,4) NOT NULL,
DNS_AVAILABILITY_MAX	Number(20,4) NOT NULL,
DNS_AVAILABILITY_STCNT	VARCHAR2(32) NOT NULL,
DNS_RESP_TIME_MIN   		Number(20,4)  	NOT NULL,
DNS_RESP_TIME_MAX   		Number(20,4)  	NOT NULL,
DNS_RESP_TIME_STCNT   		VARCHAR2(32)  	NOT NULL,
COMPRESSION_MIN   		Number(20,4)  	NOT NULL,
COMPRESSION_MAX   		Number(20,4)  	NOT NULL,
COMPRESSION_STCNT   	VARCHAR2(32)  	NOT NULL);
ALTER TABLE AzrIntAdmCtrTest_TREND ADD constraint PK_AzrIntAdmCtrTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE AzrIntAdmCtrTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE AzrIntAdmCtrTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
AVAILABLE_MIN		VARCHAR2(256) NOT NULL,
AVAILABLE_MAX		VARCHAR2(256) NOT NULL,
RESP_TIME_MIN		VARCHAR2(256) NOT NULL,
RESP_TIME_MAX		VARCHAR2(256) NOT NULL,
TCP_CONN_AVAIL_MIN	VARCHAR2(256) NOT NULL,
TCP_CONN_AVAIL_MAX	VARCHAR2(256) NOT NULL,
TCP_CONN_TIME_MIN	VARCHAR2(256) NOT NULL,
TCP_CONN_TIME_MAX	VARCHAR2(256) NOT NULL,
SVR_RESP_TIME_MIN	VARCHAR2(256) NOT NULL,
SVR_RESP_TIME_MAX	VARCHAR2(256) NOT NULL,
CONTENT_VAL_MIN		VARCHAR2(256) NOT NULL,
CONTENT_VAL_MAX		VARCHAR2(256) NOT NULL,
RESP_CODE_MIN		VARCHAR2(256) NOT NULL,
RESP_CODE_MAX		VARCHAR2(256) NOT NULL,
CONTENT_LEN_MIN		VARCHAR2(256) NOT NULL,
CONTENT_LEN_MAX		VARCHAR2(256) NOT NULL,
DATA_XFER_TIME_MIN	VARCHAR2(256) NOT NULL,
DATA_XFER_TIME_MAX	VARCHAR2(256) NOT NULL,
DNS_AVAILABILITY_MIN	VARCHAR2(256) NOT NULL,
DNS_AVAILABILITY_MAX	VARCHAR2(256) NOT NULL,
DNS_RESP_TIME_MIN	VARCHAR2(256) NOT NULL,
DNS_RESP_TIME_MAX	VARCHAR2(256) NOT NULL,
COMPRESSION_MIN		VARCHAR2(256)	  NOT NULL,
COMPRESSION_MAX		VARCHAR2(256)	  NOT NULL);
ALTER TABLE AzrIntAdmCtrTest_THRESH ADD constraint PK_AzrIntAdmCtrTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_AzrIntAdmCtrTest_THRESH ON AzrIntAdmCtrTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_AzrIntAdmCtrTest ON AzrIntAdmCtrTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_AzrIntAdmCtrTest ON AzrIntAdmCtrTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceCluNdHlthTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNdHlthTest(
TRGT_HOST                                    VARCHAR2(32) NOT NULL, 
PORT_NO                                      VARCHAR2(32) NOT NULL, 
SITE_NAME                                    VARCHAR2(64) NOT NULL, 
INFO                                         VARCHAR2(128) NOT NULL, 
MSMT_HOST                                    VARCHAR2(32) NOT NULL, 
MSMT_TIME                                    DATE NOT NULL, 
NODE_STATUS                                	 NUMBER(20,4) NOT NULL, 
NODE_STATUS_ST                             	 VARCHAR2(32) NOT NULL, 
NODE_HEALTH                              	 NUMBER(20,4) NOT NULL, 
NODE_HEALTH_ST                           	 VARCHAR2(32) NOT NULL, 
MSGSPOOL_STATUS                          	 NUMBER(20,4) NOT NULL, 
MSGSPOOL_STATUS_ST                       	 VARCHAR2(32) NOT NULL, 
CONFIGSYNC_STATUS                            NUMBER(20,4) NOT NULL, 
CONFIGSYNC_STATUS_ST                         VARCHAR2(32) NOT NULL); 

CREATE INDEX IDX_SolaceCluNdHlthTest ON SolaceCluNdHlthTest(MSMT_TIME);
ALTER TABLE SolaceCluNdHlthTest ADD constraint PK_SolaceCluNdHlthTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE SolaceCluNdHlthTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNdHlthTest_TREND(
TRGT_HOST                                    VARCHAR2(32) NOT NULL, 
PORT_NO                                      VARCHAR2(32) NOT NULL, 
SITE_NAME                                    VARCHAR2(64) NOT NULL, 
INFO                                         VARCHAR2(128) NOT NULL, 
MSMT_HOST                                    VARCHAR2(32) NOT NULL, 
MSMT_TIME                                    DATE NOT NULL, 
PERIOD                                       VARCHAR2(32) NOT NULL, 
NODE_STATUS_MIN                            	 NUMBER(20,4) NOT NULL, 
NODE_STATUS_MAX                            	 NUMBER(20,4) NOT NULL, 
NODE_STATUS_STCNT                          	 VARCHAR2(32) NOT NULL, 
NODE_HEALTH_MIN                          	 NUMBER(20,4) NOT NULL, 
NODE_HEALTH_MAX                          	 NUMBER(20,4) NOT NULL, 
NODE_HEALTH_STCNT                        	 VARCHAR2(32) NOT NULL, 
MSGSPOOL_STATUS_MIN                      	 NUMBER(20,4) NOT NULL, 
MSGSPOOL_STATUS_MAX                      	 NUMBER(20,4) NOT NULL, 
MSGSPOOL_STATUS_STCNT                    	 VARCHAR2(32) NOT NULL, 
CONFIGSYNC_STATUS_MIN                        NUMBER(20,4) NOT NULL, 
CONFIGSYNC_STATUS_MAX                        NUMBER(20,4) NOT NULL, 
CONFIGSYNC_STATUS_STCNT                      VARCHAR2(32) NOT NULL); 
ALTER TABLE SolaceCluNdHlthTest_TREND ADD constraint PK_SolaceCluNdHlthTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceCluNdHlthTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluNdHlthTest_THRESH(
TRGT_HOST                                 		  VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
NODE_STATUS_MIN                            		  VARCHAR2(256) NOT NULL, 
NODE_STATUS_MAX                            		  VARCHAR2(256) NOT NULL, 
NODE_HEALTH_MIN                          		  VARCHAR2(256) NOT NULL, 
NODE_HEALTH_MAX                          		  VARCHAR2(256) NOT NULL, 
MSGSPOOL_STATUS_MIN                      		  VARCHAR2(256) NOT NULL, 
MSGSPOOL_STATUS_MAX                      		  VARCHAR2(256) NOT NULL, 
CONFIGSYNC_STATUS_MIN                        	  VARCHAR2(256) NOT NULL, 
CONFIGSYNC_STATUS_MAX                        	  VARCHAR2(256) NOT NULL);
 
ALTER TABLE SolaceCluNdHlthTest_THRESH ADD constraint PK_SolaceCluNdHlthTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceCluNdHlthTest_THRESH ON SolaceCluNdHlthTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceCluNdHlthTest ON SolaceCluNdHlthTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceCluNdHlthTest ON SolaceCluNdHlthTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE SolaceCluHealthTest CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluHealthTest(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
NODE_AVAIL                                		  NUMBER(20,4) NOT NULL, 
NODE_AVAIL_ST                             		  VARCHAR2(32) NOT NULL, 
CLUSTER_REDUNCY_HEALTH                            NUMBER(20,4) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_ST                         VARCHAR2(32) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS                           NUMBER(20,4) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_ST                        VARCHAR2(32) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS                         NUMBER(20,4) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_ST                      VARCHAR2(32) NOT NULL); 
CREATE INDEX IDX_SolaceCluHealthTest ON SolaceCluHealthTest(MSMT_TIME);

ALTER TABLE SolaceCluHealthTest ADD constraint PK_SolaceCluHealthTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE SolaceCluHealthTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluHealthTest_TREND(
TRGT_HOST                                         VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME                                         DATE NOT NULL, 
PERIOD                                            VARCHAR2(32) NOT NULL, 
NODE_AVAIL_MIN                            	 	  NUMBER(20,4) NOT NULL, 
NODE_AVAIL_MAX                            	 	  NUMBER(20,4) NOT NULL, 
NODE_AVAIL_STCNT                          	 	  VARCHAR2(32) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_MIN                        NUMBER(20,4) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_MAX                        NUMBER(20,4) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_STCNT                      VARCHAR2(32) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_MIN                       NUMBER(20,4) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_MAX                       NUMBER(20,4) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_STCNT                     VARCHAR2(32) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_MIN                     NUMBER(20,4) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_MAX                     NUMBER(20,4) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_STCNT                   VARCHAR2(32) NOT NULL); 

ALTER TABLE SolaceCluHealthTest_TREND ADD constraint PK_SolaceCluHealthTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE SolaceCluHealthTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE SolaceCluHealthTest_THRESH(
TRGT_HOST                                 		  VARCHAR2(32) NOT NULL, 
PORT_NO                                           VARCHAR2(32) NOT NULL, 
SITE_NAME                                         VARCHAR2(64) NOT NULL, 
INFO                                              VARCHAR2(128) NOT NULL, 
MSMT_HOST                                         VARCHAR2(32) NOT NULL, 
MSMT_TIME_START                                   DATE NOT NULL, 
MSMT_TIME_END                                     DATE NOT NULL, 
NODE_AVAIL_MIN                            		  VARCHAR2(256) NOT NULL, 
NODE_AVAIL_MAX                            		  VARCHAR2(256) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_MIN                        VARCHAR2(256) NOT NULL, 
CLUSTER_REDUNCY_HEALTH_MAX                        VARCHAR2(256) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_MIN                       VARCHAR2(256) NOT NULL, 
CLUSTER_MSGSPOOL_STATUS_MAX                       VARCHAR2(256) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_MIN                     VARCHAR2(256) NOT NULL, 
CLUSTER_CONFIGSYNC_STATUS_MAX                     VARCHAR2(256) NOT NULL);
 
ALTER TABLE SolaceCluHealthTest_THRESH ADD constraint PK_SolaceCluHealthTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_SolaceCluHealthTest_THRESH ON SolaceCluHealthTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_SolaceCluHealthTest ON SolaceCluHealthTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_SolaceCluHealthTest ON SolaceCluHealthTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE CtxNsTrapTest CASCADE CONSTRAINTS;
CREATE TABLE CtxNsTrapTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
NUM_MESSAGES Number(20,4) NOT NULL,
NUM_MESSAGES_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_CtxNsTrapTest ON CtxNsTrapTest(MSMT_TIME);
ALTER TABLE CtxNsTrapTest ADD constraint PK_CtxNsTrapTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE CtxNsTrapTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE CtxNsTrapTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
NUM_MESSAGES_MIN Number(20,4) NOT NULL,
NUM_MESSAGES_MAX Number(20,4) NOT NULL,
NUM_MESSAGES_STCNT varchar2(32) NOT NULL);

ALTER TABLE CtxNsTrapTest_TREND ADD constraint PK_CtxNsTrapTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE CtxNsTrapTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE CtxNsTrapTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
NUM_MESSAGES_MIN VARCHAR2(256) NOT NULL,
NUM_MESSAGES_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE CtxNsTrapTest_THRESH ADD constraint PK_CtxNsTrapTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_CtxNsTrapTest_THRESH ON CtxNsTrapTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_CtxNsTrapTest ON CtxNsTrapTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_CtxNsTrapTest ON CtxNsTrapTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE MySQLInstanceStTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLInstanceStTest(
TRGT_HOST	varchar2(32) NOT NULL,
PORT_NO	varchar2(32) NOT NULL,
SITE_NAME	varchar2(64) NOT NULL,
INFO		varchar2(128) NOT NULL,
MSMT_HOST	varchar2(32) NOT NULL,
MSMT_TIME	date NOT NULL,
InstanceNodeStatus Number(20,4) NOT NULL,
InstanceNodeStatus_ST varchar2(32) NOT NULL);
ALTER TABLE MySQLInstanceStTest ADD constraint PK_MySQLInstanceStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
CREATE  INDEX IDX_MySQLInstanceStTest ON MySQLInstanceStTest(MSMT_TIME);
DROP TABLE MySQLInstanceStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLInstanceStTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
InstanceNodeStatus_MIN Number(20,4) NOT NULL,
InstanceNodeStatus_MAX Number(20,4) NOT NULL,
InstanceNodeStatus_STCNT varchar2(32) NOT NULL);
ALTER TABLE MySQLInstanceStTest_TREND ADD constraint PK_MySQLInstanceStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MySQLInstanceStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLInstanceStTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
InstanceNodeStatus_MIN	varchar2(256)	 NOT NULL,
InstanceNodeStatus_MAX	varchar2(256)	 NOT NULL);
ALTER TABLE MySQLInstanceStTest_THRESH ADD constraint PK_MySQLInstanceStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MySQLInstanceStTest_THRESH ON MySQLInstanceStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TR_MySQLInstanceStTest on MySQLInstanceStTest_TREND(msmt_time,period);
CREATE INDEX IDX_TH_MySQLInstanceStTest on MySQLInstanceStTest_THRESH(msmt_time_start);

DROP TABLE MySQLFileIOTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLFileIOTest(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
WAITCOUNT Number(20,4) NOT NULL,
WAITCOUNT_ST varchar2(32) NOT NULL,
AVERAGEWAITTIME Number(20,4) NOT NULL,
AVERAGEWAITTIME_ST varchar2(32) NOT NULL,
MINWAITTIME Number(20,4) NOT NULL,
MINWAITTIME_ST varchar2(32) NOT NULL,
MAXWAITTIME Number(20,4) NOT NULL,
MAXWAITTIME_ST varchar2(32) NOT NULL,
AVERAGEREADLATENCY Number(20,4) NOT NULL,
AVERAGEREADLATENCY_ST varchar2(32) NOT NULL,
MINREADLATENCY Number(20,4) NOT NULL,
MINREADLATENCY_ST varchar2(32) NOT NULL,
MAXREADLATENCY Number(20,4) NOT NULL,
MAXREADLATENCY_ST varchar2(32) NOT NULL,
AVERAGEWRITELATENCY Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_ST varchar2(32) NOT NULL,
MINWRITELATENCY Number(20,4) NOT NULL,
MINWRITELATENCY_ST varchar2(32) NOT NULL,
MAXWRITELATENCY Number(20,4) NOT NULL,
MAXWRITELATENCY_ST varchar2(32) NOT NULL);
CREATE INDEX IDX_MySQLFileIOTest ON MySQLFileIOTest(MSMT_TIME);
ALTER TABLE MySQLFileIOTest ADD constraint PK_MySQLFileIOTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE MySQLFileIOTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLFileIOTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
WAITCOUNT_MIN Number(20,4) NOT NULL,
WAITCOUNT_MAX Number(20,4) NOT NULL,
WAITCOUNT_STCNT varchar2(32) NOT NULL,
AVERAGEWAITTIME_MIN Number(20,4) NOT NULL,
AVERAGEWAITTIME_MAX Number(20,4) NOT NULL,
AVERAGEWAITTIME_STCNT varchar2(32) NOT NULL,
MINWAITTIME_MIN Number(20,4) NOT NULL,
MINWAITTIME_MAX Number(20,4) NOT NULL,
MINWAITTIME_STCNT varchar2(32) NOT NULL,
MAXWAITTIME_MIN Number(20,4) NOT NULL,
MAXWAITTIME_MAX Number(20,4) NOT NULL,
MAXWAITTIME_STCNT varchar2(32) NOT NULL,
AVERAGEREADLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEREADLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEREADLATENCY_STCNT varchar2(32) NOT NULL,
MINREADLATENCY_MIN Number(20,4) NOT NULL,
MINREADLATENCY_MAX Number(20,4) NOT NULL,
MINREADLATENCY_STCNT varchar2(32) NOT NULL,
MAXREADLATENCY_MIN Number(20,4) NOT NULL,
MAXREADLATENCY_MAX Number(20,4) NOT NULL,
MAXREADLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEWRITELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_STCNT varchar2(32) NOT NULL,
MINWRITELATENCY_MIN Number(20,4) NOT NULL,
MINWRITELATENCY_MAX Number(20,4) NOT NULL,
MINWRITELATENCY_STCNT varchar2(32) NOT NULL,
MAXWRITELATENCY_MIN Number(20,4) NOT NULL,
MAXWRITELATENCY_MAX Number(20,4) NOT NULL,
MAXWRITELATENCY_STCNT varchar2(32) NOT NULL);
ALTER TABLE MySQLFileIOTest_TREND ADD constraint PK_MySQLFileIOTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MySQLFileIOTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLFileIOTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
WAITCOUNT_MIN varchar2(256) NOT NULL,
WAITCOUNT_MAX varchar2(256) NOT NULL,
AVERAGEWAITTIME_MIN varchar2(256) NOT NULL,
AVERAGEWAITTIME_MAX varchar2(256) NOT NULL,
MINWAITTIME_MIN varchar2(256) NOT NULL,
MINWAITTIME_MAX varchar2(256) NOT NULL,
MAXWAITTIME_MIN varchar2(256) NOT NULL,
MAXWAITTIME_MAX varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MAX varchar2(256) NOT NULL,
MINREADLATENCY_MIN varchar2(256) NOT NULL,
MINREADLATENCY_MAX varchar2(256) NOT NULL,
MAXREADLATENCY_MIN varchar2(256) NOT NULL,
MAXREADLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MAX varchar2(256) NOT NULL,
MINWRITELATENCY_MIN varchar2(256) NOT NULL,
MINWRITELATENCY_MAX varchar2(256) NOT NULL,
MAXWRITELATENCY_MIN varchar2(256) NOT NULL,
MAXWRITELATENCY_MAX varchar2(256) NOT NULL);
ALTER TABLE MySQLFileIOTest_THRESH ADD constraint PK_MySQLFileIOTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MySQLFileIOTest_THRESH ON MySQLFileIOTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MySQLFileIOTest ON MySQLFileIOTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MySQLFileIOTest ON MySQLFileIOTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE MySQLTabIOTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLTabIOTest(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
WAITCOUNT Number(20,4) NOT NULL,
WAITCOUNT_ST varchar2(32) NOT NULL,
AVERAGEWAITTIME Number(20,4) NOT NULL,
AVERAGEWAITTIME_ST varchar2(32) NOT NULL,
MINWAITTIME Number(20,4) NOT NULL,
MINWAITTIME_ST varchar2(32) NOT NULL,
MAXWAITTIME Number(20,4) NOT NULL,
MAXWAITTIME_ST varchar2(32) NOT NULL,
AVERAGEREADLATENCY Number(20,4) NOT NULL,
AVERAGEREADLATENCY_ST varchar2(32) NOT NULL,
MINREADLATENCY Number(20,4) NOT NULL,
MINREADLATENCY_ST varchar2(32) NOT NULL,
MAXREADLATENCY Number(20,4) NOT NULL,
MAXREADLATENCY_ST varchar2(32) NOT NULL,
AVERAGEWRITELATENCY Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_ST varchar2(32) NOT NULL,
MINWRITELATENCY Number(20,4) NOT NULL,
MINWRITELATENCY_ST varchar2(32) NOT NULL,
MAXWRITELATENCY Number(20,4) NOT NULL,
MAXWRITELATENCY_ST varchar2(32) NOT NULL,
AVERAGEFETCHLATENCY Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_ST varchar2(32) NOT NULL,
MINFETCHLATENCY Number(20,4) NOT NULL,
MINFETCHLATENCY_ST varchar2(32) NOT NULL,
MAXFETCHLATENCY Number(20,4) NOT NULL,
MAXFETCHLATENCY_ST varchar2(32) NOT NULL,
AVERAGEINSERTLATENCY Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_ST varchar2(32) NOT NULL,
MININSERTLATENCY Number(20,4) NOT NULL,
MININSERTLATENCY_ST varchar2(32) NOT NULL,
MAXINSERTLATENCY Number(20,4) NOT NULL,
MAXINSERTLATENCY_ST varchar2(32) NOT NULL,
AVERAGEUPDATELATENCY Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_ST varchar2(32) NOT NULL,
MINUPDATELATENCY Number(20,4) NOT NULL,
MINUPDATELATENCY_ST varchar2(32) NOT NULL,
MAXUPDATELATENCY Number(20,4) NOT NULL,
MAXUPDATELATENCY_ST varchar2(32) NOT NULL,
AVERAGEDELETELATENCY Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_ST varchar2(32) NOT NULL,
MINDELETELATENCY Number(20,4) NOT NULL,
MINDELETELATENCY_ST varchar2(32) NOT NULL,
MAXDELETELATENCY Number(20,4) NOT NULL,
MAXDELETELATENCY_ST varchar2(32) NOT NULL
);
CREATE  INDEX IDX_MySQLTabIOTest ON MySQLTabIOTest
(
	 MSMT_TIME
);
ALTER TABLE MySQLTabIOTest ADD constraint PK_MySQLTabIOTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE MySQLTabIOTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLTabIOTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
WAITCOUNT_MIN Number(20,4) NOT NULL,
WAITCOUNT_MAX Number(20,4) NOT NULL,
WAITCOUNT_STCNT varchar2(32) NOT NULL,
AVERAGEWAITTIME_MIN Number(20,4) NOT NULL,
AVERAGEWAITTIME_MAX Number(20,4) NOT NULL,
AVERAGEWAITTIME_STCNT varchar2(32) NOT NULL,
MINWAITTIME_MIN Number(20,4) NOT NULL,
MINWAITTIME_MAX Number(20,4) NOT NULL,
MINWAITTIME_STCNT varchar2(32) NOT NULL,
MAXWAITTIME_MIN Number(20,4) NOT NULL,
MAXWAITTIME_MAX Number(20,4) NOT NULL,
MAXWAITTIME_STCNT varchar2(32) NOT NULL,
AVERAGEREADLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEREADLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEREADLATENCY_STCNT varchar2(32) NOT NULL,
MINREADLATENCY_MIN Number(20,4) NOT NULL,
MINREADLATENCY_MAX Number(20,4) NOT NULL,
MINREADLATENCY_STCNT varchar2(32) NOT NULL,
MAXREADLATENCY_MIN Number(20,4) NOT NULL,
MAXREADLATENCY_MAX Number(20,4) NOT NULL,
MAXREADLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEWRITELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_STCNT varchar2(32) NOT NULL,
MINWRITELATENCY_MIN Number(20,4) NOT NULL,
MINWRITELATENCY_MAX Number(20,4) NOT NULL,
MINWRITELATENCY_STCNT varchar2(32) NOT NULL,
MAXWRITELATENCY_MIN Number(20,4) NOT NULL,
MAXWRITELATENCY_MAX Number(20,4) NOT NULL,
MAXWRITELATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEFETCHLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_STCNT varchar2(32) NOT NULL,
MINFETCHLATENCY_MIN Number(20,4) NOT NULL,
MINFETCHLATENCY_MAX Number(20,4) NOT NULL,
MINFETCHLATENCY_STCNT varchar2(32) NOT NULL,
MAXFETCHLATENCY_MIN Number(20,4) NOT NULL,
MAXFETCHLATENCY_MAX Number(20,4) NOT NULL,
MAXFETCHLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEINSERTLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_STCNT varchar2(32) NOT NULL,
MININSERTLATENCY_MIN Number(20,4) NOT NULL,
MININSERTLATENCY_MAX Number(20,4) NOT NULL,
MININSERTLATENCY_STCNT varchar2(32) NOT NULL,
MAXINSERTLATENCY_MIN Number(20,4) NOT NULL,
MAXINSERTLATENCY_MAX Number(20,4) NOT NULL,
MAXINSERTLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEUPDATELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_STCNT varchar2(32) NOT NULL,
MINUPDATELATENCY_MIN Number(20,4) NOT NULL,
MINUPDATELATENCY_MAX Number(20,4) NOT NULL,
MINUPDATELATENCY_STCNT varchar2(32) NOT NULL,
MAXUPDATELATENCY_MIN Number(20,4) NOT NULL,
MAXUPDATELATENCY_MAX Number(20,4) NOT NULL,
MAXUPDATELATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEDELETELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_STCNT varchar2(32) NOT NULL,
MINDELETELATENCY_MIN Number(20,4) NOT NULL,
MINDELETELATENCY_MAX Number(20,4) NOT NULL,
MINDELETELATENCY_STCNT varchar2(32) NOT NULL,
MAXDELETELATENCY_MIN Number(20,4) NOT NULL,
MAXDELETELATENCY_MAX Number(20,4) NOT NULL,
MAXDELETELATENCY_STCNT varchar2(32) NOT NULL
);
ALTER TABLE MySQLTabIOTest_TREND ADD constraint PK_MySQLTabIOTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MySQLTabIOTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLTabIOTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
WAITCOUNT_MIN varchar2(256) NOT NULL,
WAITCOUNT_MAX varchar2(256) NOT NULL,
AVERAGEWAITTIME_MIN varchar2(256) NOT NULL,
AVERAGEWAITTIME_MAX varchar2(256) NOT NULL,
MINWAITTIME_MIN varchar2(256) NOT NULL,
MINWAITTIME_MAX varchar2(256) NOT NULL,
MAXWAITTIME_MIN varchar2(256) NOT NULL,
MAXWAITTIME_MAX varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MAX varchar2(256) NOT NULL,
MINREADLATENCY_MIN varchar2(256) NOT NULL,
MINREADLATENCY_MAX varchar2(256) NOT NULL,
MAXREADLATENCY_MIN varchar2(256) NOT NULL,
MAXREADLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MAX varchar2(256) NOT NULL,
MINWRITELATENCY_MIN varchar2(256) NOT NULL,
MINWRITELATENCY_MAX varchar2(256) NOT NULL,
MAXWRITELATENCY_MIN varchar2(256) NOT NULL,
MAXWRITELATENCY_MAX varchar2(256) NOT NULL,
AVERAGEFETCHLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEFETCHLATENCY_MAX varchar2(256) NOT NULL,
MINFETCHLATENCY_MIN varchar2(256) NOT NULL,
MINFETCHLATENCY_MAX varchar2(256) NOT NULL,
MAXFETCHLATENCY_MIN varchar2(256) NOT NULL,
MAXFETCHLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEINSERTLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEINSERTLATENCY_MAX varchar2(256) NOT NULL,
MININSERTLATENCY_MIN varchar2(256) NOT NULL,
MININSERTLATENCY_MAX varchar2(256) NOT NULL,
MAXINSERTLATENCY_MIN varchar2(256) NOT NULL,
MAXINSERTLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEUPDATELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEUPDATELATENCY_MAX varchar2(256) NOT NULL,
MINUPDATELATENCY_MIN varchar2(256) NOT NULL,
MINUPDATELATENCY_MAX varchar2(256) NOT NULL,
MAXUPDATELATENCY_MIN varchar2(256) NOT NULL,
MAXUPDATELATENCY_MAX varchar2(256) NOT NULL,
AVERAGEDELETELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEDELETELATENCY_MAX varchar2(256) NOT NULL,
MINDELETELATENCY_MIN varchar2(256) NOT NULL,
MINDELETELATENCY_MAX varchar2(256) NOT NULL,
MAXDELETELATENCY_MIN varchar2(256) NOT NULL,
MAXDELETELATENCY_MAX varchar2(256) NOT NULL
);
ALTER TABLE MySQLTabIOTest_THRESH ADD constraint PK_MySQLTabIOTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MySQLTabIOTest_THRESH ON MySQLTabIOTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MySQLTabIOTest ON MySQLTabIOTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MySQLTabIOTest ON MySQLTabIOTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE MySQLIndexIOTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLIndexIOTest(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
WAITCOUNT Number(20,4) NOT NULL,
WAITCOUNT_ST varchar2(32) NOT NULL,
AVERAGEWAITTIME Number(20,4) NOT NULL,
AVERAGEWAITTIME_ST varchar2(32) NOT NULL,
MINWAITTIME Number(20,4) NOT NULL,
MINWAITTIME_ST varchar2(32) NOT NULL,
MAXWAITTIME Number(20,4) NOT NULL,
MAXWAITTIME_ST varchar2(32) NOT NULL,
AVERAGEREADLATENCY Number(20,4) NOT NULL,
AVERAGEREADLATENCY_ST varchar2(32) NOT NULL,
MINREADLATENCY Number(20,4) NOT NULL,
MINREADLATENCY_ST varchar2(32) NOT NULL,
MAXREADLATENCY Number(20,4) NOT NULL,
MAXREADLATENCY_ST varchar2(32) NOT NULL,
AVERAGEWRITELATENCY Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_ST varchar2(32) NOT NULL,
MINWRITELATENCY Number(20,4) NOT NULL,
MINWRITELATENCY_ST varchar2(32) NOT NULL,
MAXWRITELATENCY Number(20,4) NOT NULL,
MAXWRITELATENCY_ST varchar2(32) NOT NULL,
AVERAGEFETCHLATENCY Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_ST varchar2(32) NOT NULL,
MINFETCHLATENCY Number(20,4) NOT NULL,
MINFETCHLATENCY_ST varchar2(32) NOT NULL,
MAXFETCHLATENCY Number(20,4) NOT NULL,
MAXFETCHLATENCY_ST varchar2(32) NOT NULL,
AVERAGEINSERTLATENCY Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_ST varchar2(32) NOT NULL,
MININSERTLATENCY Number(20,4) NOT NULL,
MININSERTLATENCY_ST varchar2(32) NOT NULL,
MAXINSERTLATENCY Number(20,4) NOT NULL,
MAXINSERTLATENCY_ST varchar2(32) NOT NULL,
AVERAGEUPDATELATENCY Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_ST varchar2(32) NOT NULL,
MINUPDATELATENCY Number(20,4) NOT NULL,
MINUPDATELATENCY_ST varchar2(32) NOT NULL,
MAXUPDATELATENCY Number(20,4) NOT NULL,
MAXUPDATELATENCY_ST varchar2(32) NOT NULL,
AVERAGEDELETELATENCY Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_ST varchar2(32) NOT NULL,
MINDELETELATENCY Number(20,4) NOT NULL,
MINDELETELATENCY_ST varchar2(32) NOT NULL,
MAXDELETELATENCY Number(20,4) NOT NULL,
MAXDELETELATENCY_ST varchar2(32) NOT NULL
);
CREATE  INDEX IDX_MySQLIndexIOTest ON MySQLIndexIOTest
(
	 MSMT_TIME
);
ALTER TABLE MySQLIndexIOTest ADD constraint PK_MySQLIndexIOTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE MySQLIndexIOTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLIndexIOTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
WAITCOUNT_MIN Number(20,4) NOT NULL,
WAITCOUNT_MAX Number(20,4) NOT NULL,
WAITCOUNT_STCNT varchar2(32) NOT NULL,
AVERAGEWAITTIME_MIN Number(20,4) NOT NULL,
AVERAGEWAITTIME_MAX Number(20,4) NOT NULL,
AVERAGEWAITTIME_STCNT varchar2(32) NOT NULL,
MINWAITTIME_MIN Number(20,4) NOT NULL,
MINWAITTIME_MAX Number(20,4) NOT NULL,
MINWAITTIME_STCNT varchar2(32) NOT NULL,
MAXWAITTIME_MIN Number(20,4) NOT NULL,
MAXWAITTIME_MAX Number(20,4) NOT NULL,
MAXWAITTIME_STCNT varchar2(32) NOT NULL,
AVERAGEREADLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEREADLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEREADLATENCY_STCNT varchar2(32) NOT NULL,
MINREADLATENCY_MIN Number(20,4) NOT NULL,
MINREADLATENCY_MAX Number(20,4) NOT NULL,
MINREADLATENCY_STCNT varchar2(32) NOT NULL,
MAXREADLATENCY_MIN Number(20,4) NOT NULL,
MAXREADLATENCY_MAX Number(20,4) NOT NULL,
MAXREADLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEWRITELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEWRITELATENCY_STCNT varchar2(32) NOT NULL,
MINWRITELATENCY_MIN Number(20,4) NOT NULL,
MINWRITELATENCY_MAX Number(20,4) NOT NULL,
MINWRITELATENCY_STCNT varchar2(32) NOT NULL,
MAXWRITELATENCY_MIN Number(20,4) NOT NULL,
MAXWRITELATENCY_MAX Number(20,4) NOT NULL,
MAXWRITELATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEFETCHLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEFETCHLATENCY_STCNT varchar2(32) NOT NULL,
MINFETCHLATENCY_MIN Number(20,4) NOT NULL,
MINFETCHLATENCY_MAX Number(20,4) NOT NULL,
MINFETCHLATENCY_STCNT varchar2(32) NOT NULL,
MAXFETCHLATENCY_MIN Number(20,4) NOT NULL,
MAXFETCHLATENCY_MAX Number(20,4) NOT NULL,
MAXFETCHLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEINSERTLATENCY_MIN Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_MAX Number(20,4) NOT NULL,
AVERAGEINSERTLATENCY_STCNT varchar2(32) NOT NULL,
MININSERTLATENCY_MIN Number(20,4) NOT NULL,
MININSERTLATENCY_MAX Number(20,4) NOT NULL,
MININSERTLATENCY_STCNT varchar2(32) NOT NULL,
MAXINSERTLATENCY_MIN Number(20,4) NOT NULL,
MAXINSERTLATENCY_MAX Number(20,4) NOT NULL,
MAXINSERTLATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEUPDATELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEUPDATELATENCY_STCNT varchar2(32) NOT NULL,
MINUPDATELATENCY_MIN Number(20,4) NOT NULL,
MINUPDATELATENCY_MAX Number(20,4) NOT NULL,
MINUPDATELATENCY_STCNT varchar2(32) NOT NULL,
MAXUPDATELATENCY_MIN Number(20,4) NOT NULL,
MAXUPDATELATENCY_MAX Number(20,4) NOT NULL,
MAXUPDATELATENCY_STCNT varchar2(32) NOT NULL,
AVERAGEDELETELATENCY_MIN Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_MAX Number(20,4) NOT NULL,
AVERAGEDELETELATENCY_STCNT varchar2(32) NOT NULL,
MINDELETELATENCY_MIN Number(20,4) NOT NULL,
MINDELETELATENCY_MAX Number(20,4) NOT NULL,
MINDELETELATENCY_STCNT varchar2(32) NOT NULL,
MAXDELETELATENCY_MIN Number(20,4) NOT NULL,
MAXDELETELATENCY_MAX Number(20,4) NOT NULL,
MAXDELETELATENCY_STCNT varchar2(32) NOT NULL
);
ALTER TABLE MySQLIndexIOTest_TREND ADD constraint PK_MySQLIndexIOTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MySQLIndexIOTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLIndexIOTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
WAITCOUNT_MIN varchar2(256) NOT NULL,
WAITCOUNT_MAX varchar2(256) NOT NULL,
AVERAGEWAITTIME_MIN varchar2(256) NOT NULL,
AVERAGEWAITTIME_MAX varchar2(256) NOT NULL,
MINWAITTIME_MIN varchar2(256) NOT NULL,
MINWAITTIME_MAX varchar2(256) NOT NULL,
MAXWAITTIME_MIN varchar2(256) NOT NULL,
MAXWAITTIME_MAX varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEREADLATENCY_MAX varchar2(256) NOT NULL,
MINREADLATENCY_MIN varchar2(256) NOT NULL,
MINREADLATENCY_MAX varchar2(256) NOT NULL,
MAXREADLATENCY_MIN varchar2(256) NOT NULL,
MAXREADLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEWRITELATENCY_MAX varchar2(256) NOT NULL,
MINWRITELATENCY_MIN varchar2(256) NOT NULL,
MINWRITELATENCY_MAX varchar2(256) NOT NULL,
MAXWRITELATENCY_MIN varchar2(256) NOT NULL,
MAXWRITELATENCY_MAX varchar2(256) NOT NULL,
AVERAGEFETCHLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEFETCHLATENCY_MAX varchar2(256) NOT NULL,
MINFETCHLATENCY_MIN varchar2(256) NOT NULL,
MINFETCHLATENCY_MAX varchar2(256) NOT NULL,
MAXFETCHLATENCY_MIN varchar2(256) NOT NULL,
MAXFETCHLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEINSERTLATENCY_MIN varchar2(256) NOT NULL,
AVERAGEINSERTLATENCY_MAX varchar2(256) NOT NULL,
MININSERTLATENCY_MIN varchar2(256) NOT NULL,
MININSERTLATENCY_MAX varchar2(256) NOT NULL,
MAXINSERTLATENCY_MIN varchar2(256) NOT NULL,
MAXINSERTLATENCY_MAX varchar2(256) NOT NULL,
AVERAGEUPDATELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEUPDATELATENCY_MAX varchar2(256) NOT NULL,
MINUPDATELATENCY_MIN varchar2(256) NOT NULL,
MINUPDATELATENCY_MAX varchar2(256) NOT NULL,
MAXUPDATELATENCY_MIN varchar2(256) NOT NULL,
MAXUPDATELATENCY_MAX varchar2(256) NOT NULL,
AVERAGEDELETELATENCY_MIN varchar2(256) NOT NULL,
AVERAGEDELETELATENCY_MAX varchar2(256) NOT NULL,
MINDELETELATENCY_MIN varchar2(256) NOT NULL,
MINDELETELATENCY_MAX varchar2(256) NOT NULL,
MAXDELETELATENCY_MIN varchar2(256) NOT NULL,
MAXDELETELATENCY_MAX varchar2(256) NOT NULL
);
ALTER TABLE MySQLIndexIOTest_THRESH ADD constraint PK_MySQLIndexIOTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MySQLIndexIOTest_THRESH ON MySQLIndexIOTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MySQLIndexIOTest ON MySQLIndexIOTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MySQLIndexIOTest ON MySQLIndexIOTest_TREND (MSMT_TIME,PERIOD);

 
 

DROP TABLE MySQLCluNodAvlTest CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluNodAvlTest(TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME       date,
 CONNAVAILABLE Number(20,4) NOT NULL,
 CONNAVAILABLE_ST varchar2(32) NOT NULL,
 DBCONNRESTIME Number(20,4) NOT NULL,
 DBCONNRESTIME_ST varchar2(32) NOT NULL,
 QURYPRCSAVALBTY Number(20,4) NOT NULL,
 QURYPRCSAVALBTY_ST varchar2(32) NOT NULL,
 QURYEXETIME Number(20,4) NOT NULL,
 QURYEXETIME_ST varchar2(32) NOT NULL,
 NOOFRECORDS Number(20,4) NOT NULL, 
 NOOFRECORDS_ST varchar2(32) NOT NULL,
 AVERAGERESTIME Number(20,4) NOT NULL, 
 AVERAGERESTIME_ST varchar2(32) NOT NULL);
 CREATE INDEX IDX_MySQLCluNodAvlTest ON MySQLCluNodAvlTest(MSMT_TIME);
 ALTER TABLE MySQLCluNodAvlTest ADD constraint PK_MySQLCluNodAvlTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
 
 DROP TABLE MySQLCluNodAvlTest_TREND CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluNodAvlTest_TREND(TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME       date,
 PERIOD       	varchar2(32),
 CONNAVAILABLE_MIN Number(20,4) NOT NULL,
 CONNAVAILABLE_MAX Number(20,4) NOT NULL,
 CONNAVAILABLE_STCNT varchar2(32) NOT NULL,
 DBCONNRESTIME_MIN Number(20,4) NOT NULL,
 DBCONNRESTIME_MAX Number(20,4) NOT NULL,
 DBCONNRESTIME_STCNT varchar2(32) NOT NULL,
 QURYPRCSAVALBTY_MIN Number(20,4) NOT NULL,
 QURYPRCSAVALBTY_MAX Number(20,4) NOT NULL,
 QURYPRCSAVALBTY_STCNT varchar2(32) NOT NULL,
 QURYEXETIME_MIN Number(20,4) NOT NULL,
 QURYEXETIME_MAX Number(20,4) NOT NULL,
 QURYEXETIME_STCNT varchar2(32) NOT NULL,
 NOOFRECORDS_MIN Number(20,4) NOT NULL,
 NOOFRECORDS_MAX Number(20,4) NOT NULL, 
 NOOFRECORDS_STCNT varchar2(32) NOT NULL,
 AVERAGERESTIME_MIN Number(20,4) NOT NULL,
 AVERAGERESTIME_MAX Number(20,4) NOT NULL, 
 AVERAGERESTIME_STCNT varchar2(32) NOT NULL);
 ALTER TABLE MySQLCluNodAvlTest_TREND ADD constraint PK_MySQLCluNodAvlTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
 DROP TABLE MySQLCluNodAvlTest_THRESH CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluNodAvlTest_THRESH(TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME_START date,
 MSMT_TIME_END   date,
 CONNAVAILABLE_MIN VARCHAR2(256) NOT NULL,
 CONNAVAILABLE_MAX VARCHAR2(256) NOT NULL,
 DBCONNRESTIME_MIN VARCHAR2(256) NOT NULL,
 DBCONNRESTIME_MAX VARCHAR2(256) NOT NULL,
 QURYPRCSAVALBTY_MIN VARCHAR2(256) NOT NULL,
 QURYPRCSAVALBTY_MAX VARCHAR2(256) NOT NULL,
 QURYEXETIME_MIN VARCHAR2(256) NOT NULL,
 QURYEXETIME_MAX VARCHAR2(256) NOT NULL,
 NOOFRECORDS_MIN VARCHAR2(256) NOT NULL,
 NOOFRECORDS_MAX VARCHAR2(256) NOT NULL, 
 AVERAGERESTIME_MIN VARCHAR2(256) NOT NULL, 
 AVERAGERESTIME_MAX VARCHAR2(256) NOT NULL);
 ALTER TABLE MySQLCluNodAvlTest_THRESH ADD constraint PK_MySQLCluNodAvlTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
 CREATE INDEX IDX_MySQLCluNodAvlTest_THRESH ON MySQLCluNodAvlTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
 CREATE INDEX IDX_TH_MySQLCluNodAvlTest ON MySQLCluNodAvlTest_THRESH (MSMT_TIME_START);
 CREATE INDEX IDX_TR_MySQLCluNodAvlTest ON MySQLCluNodAvlTest_TREND (MSMT_TIME,PERIOD);
 
 DROP TABLE MySQLCluRepStTest CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluRepStTest(
 TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME       date,
 NoOfTransactions Number(20,4) NOT NULL,
 NoOfTransactions_ST varchar2(32) NOT NULL,
 MaxRepLagTime Number(20,4) NOT NULL,
 MaxRepLagTime_ST varchar2(32) NOT NULL,
 NoOfTransactionErrors Number(20,4) NOT NULL,
 NoOfTransactionErrors_ST varchar2(32) NOT NULL,
 MinRepLagTime Number(20,4) NOT NULL, 
 MinRepLagTime_ST varchar2(32) NOT NULL,
 RepLagTime Number(20,4) NOT NULL, 
 RepLagTime_ST varchar2(32) NOT NULL);
 CREATE INDEX IDX_MySQLCluRepStTest ON MySQLCluRepStTest(MSMT_TIME);
 ALTER TABLE MySQLCluRepStTest ADD constraint PK_MySQLCluRepStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
 
 DROP TABLE MySQLCluRepStTest_TREND CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluRepStTest_TREND(TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME       date,PERIOD       	varchar2(32),
 NoOfTransactions_MIN Number(20,4) NOT NULL,
 NoOfTransactions_MAX Number(20,4) NOT NULL,
 NoOfTransactions_STCNT varchar2(32) NOT NULL,
 MaxRepLagTime_MIN Number(20,4) NOT NULL,
 MaxRepLagTime_MAX Number(20,4) NOT NULL,
 MaxRepLagTime_STCNT varchar2(32) NOT NULL,
 NoOfTransactionErrors_MIN Number(20,4) NOT NULL,
 NoOfTransactionErrors_MAX Number(20,4) NOT NULL, 
 NoOfTransactionErrors_STCNT varchar2(32) NOT NULL,
 MinRepLagTime_MIN Number(20,4) NOT NULL,
 MinRepLagTime_MAX Number(20,4) NOT NULL, 
 MinRepLagTime_STCNT varchar2(32) NOT NULL,
 RepLagTime_MIN Number(20,4) NOT NULL,
 RepLagTime_MAX Number(20,4) NOT NULL, 
 RepLagTime_STCNT varchar2(32) NOT NULL);
 ALTER TABLE MySQLCluRepStTest_TREND ADD constraint PK_MySQLCluRepStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
 
 DROP TABLE MySQLCluRepStTest_THRESH CASCADE CONSTRAINTS;
 CREATE TABLE MySQLCluRepStTest_THRESH(
 TRGT_HOST       varchar2(32),
 PORT_NO         varchar2(32),
 SITE_NAME       varchar2(64),
 INFO            varchar2(128),
 MSMT_HOST       varchar2(32),
 MSMT_TIME_START date,
 MSMT_TIME_END   date,
 NoOfTransactions_MIN VARCHAR2(256) NOT NULL,
 NoOfTransactions_MAX VARCHAR2(256) NOT NULL,
 MaxRepLagTime_MIN VARCHAR2(256) NOT NULL,
 MaxRepLagTime_MAX VARCHAR2(256) NOT NULL,
 NoOfTransactionErrors_MIN VARCHAR2(256) NOT NULL, 
 NoOfTransactionErrors_MAX VARCHAR2(256) NOT NULL,
 MinRepLagTime_MIN VARCHAR2(256) NOT NULL, 
 MinRepLagTime_MAX VARCHAR2(256) NOT NULL,
 RepLagTime_MIN VARCHAR2(256) NOT NULL, 
 RepLagTime_MAX VARCHAR2(256) NOT NULL);
 ALTER TABLE MySQLCluRepStTest_THRESH ADD constraint PK_MySQLCluRepStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
 CREATE INDEX IDX_MySQLCluRepStTest_THRESH ON MySQLCluRepStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
 CREATE INDEX IDX_TH_MySQLCluRepStTest ON MySQLCluRepStTest_THRESH (MSMT_TIME_START);
 CREATE INDEX IDX_TR_MySQLCluRepStTest ON MySQLCluRepStTest_TREND (MSMT_TIME,PERIOD);
 DROP TABLE MySQLCluMembTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluMembTest(TRGT_HOST       VARCHAR2(32) NOT NULL,
PORT_NO         VARCHAR2(32) NOT NULL,
SITE_NAME       VARCHAR2(64) NOT NULL,
INFO            VARCHAR2(128) NOT NULL,
MSMT_HOST       VARCHAR2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
MEMBERSTATE Number(20,4) NOT NULL,
MEMBERSTATE_ST VARCHAR2(32) NOT NULL,
ISPRIMARY Number(20,4) NOT NULL,
ISPRIMARY_ST VARCHAR2(32) NOT NULL,
ISSWITCHED Number(20,4) NOT NULL,
ISSWITCHED_ST VARCHAR2(32) NOT NULL,
PRIMARYCOUNT Number(20,4) NOT NULL,
PRIMARYCOUNT_ST VARCHAR2(32) NOT NULL,
SECONDARYCOUNT Number(20,4) NOT NULL,
SECONDARYCOUNT_ST VARCHAR2(32) NOT NULL,
ISREADWRITE Number(20,4) NOT NULL,
ISREADWRITE_ST VARCHAR2(32) NOT NULL,NOOFREADWRITENODES Number(20,4) NOT NULL,
NOOFREADWRITENODES_ST VARCHAR2(32) NOT NULL,NOOFREADONLYNODES Number(20,4) NOT NULL,
NOOFREADONLYNODES_ST VARCHAR2(32) NOT NULL,NOOFONLINENODES Number(20,4) NOT NULL,
NOOFONLINENODES_ST VARCHAR2(32) NOT NULL,NOOFRECOVERINGNODES Number(20,4) NOT NULL,
NOOFRECOVERINGNODES_ST VARCHAR2(32) NOT NULL,NOOFOFFLINENODES Number(20,4) NOT NULL,
NOOFOFFLINENODES_ST VARCHAR2(32) NOT NULL,NOOFERRORNODES Number(20,4) NOT NULL,
NOOFERRORNODES_ST VARCHAR2(32) NOT NULL,NOOFUNREACHABLENODES Number(20,4) NOT NULL,
NOOFUNREACHABLENODES_ST VARCHAR2(32) NOT NULL,TOTALNUMBEROFNODES Number(20,4) NOT NULL,
TOTALNUMBEROFNODES_ST VARCHAR2(32) NOT NULL,HEALTHSTATE Number(20,4) NOT NULL, 
HEALTHSTATE_ST VARCHAR2(32) NOT NULL);
 CREATE INDEX IDX_MySQLCluMembTest ON MySQLCluMembTest(MSMT_TIME);
 ALTER TABLE MySQLCluMembTest ADD constraint PK_MySQLCluMembTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
 
 DROP TABLE MySQLCluMembTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluMembTest_TREND(
TRGT_HOST       VARCHAR2(32) NOT NULL,
PORT_NO         VARCHAR2(32) NOT NULL,
SITE_NAME       VARCHAR2(64) NOT NULL,
INFO            VARCHAR2(128) NOT NULL,
MSMT_HOST       VARCHAR2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	VARCHAR2(32) NOT NULL,
MEMBERSTATE_MIN Number(20,4) NOT NULL,
MEMBERSTATE_MAX Number(20,4) NOT NULL,
MEMBERSTATE_STCNT VARCHAR2(32) NOT NULL,
ISPRIMARY_MIN Number(20,4) NOT NULL,
ISPRIMARY_MAX Number(20,4) NOT NULL,
ISPRIMARY_STCNT VARCHAR2(32) NOT NULL,
ISSWITCHED_MIN Number(20,4) NOT NULL,
ISSWITCHED_MAX Number(20,4) NOT NULL,
ISSWITCHED_STCNT VARCHAR2(32) NOT NULL,
PRIMARYCOUNT_MIN Number(20,4) NOT NULL,
PRIMARYCOUNT_MAX Number(20,4) NOT NULL,
PRIMARYCOUNT_STCNT VARCHAR2(32) NOT NULL,
SECONDARYCOUNT_MIN Number(20,4) NOT NULL,
SECONDARYCOUNT_MAX Number(20,4) NOT NULL,
SECONDARYCOUNT_STCNT VARCHAR2(32) NOT NULL,
ISREADWRITE_MIN Number(20,4) NOT NULL,
ISREADWRITE_MAX Number(20,4) NOT NULL,
ISREADWRITE_STCNT VARCHAR2(32) NOT NULL,
NOOFREADWRITENODES_MIN Number(20,4) NOT NULL,
NOOFREADWRITENODES_MAX Number(20,4) NOT NULL,
NOOFREADWRITENODES_STCNT VARCHAR2(32) NOT NULL,
NOOFREADONLYNODES_MIN Number(20,4) NOT NULL,
NOOFREADONLYNODES_MAX Number(20,4) NOT NULL,
NOOFREADONLYNODES_STCNT VARCHAR2(32) NOT NULL,
NOOFONLINENODES_MIN Number(20,4) NOT NULL,
NOOFONLINENODES_MAX Number(20,4) NOT NULL,
NOOFONLINENODES_STCNT VARCHAR2(32) NOT NULL,
NOOFRECOVERINGNODES_MIN Number(20,4) NOT NULL,
NOOFRECOVERINGNODES_MAX Number(20,4) NOT NULL,
NOOFRECOVERINGNODES_STCNT VARCHAR2(32) NOT NULL,
NOOFOFFLINENODES_MIN Number(20,4) NOT NULL,
NOOFOFFLINENODES_MAX Number(20,4) NOT NULL,
NOOFOFFLINENODES_STCNT VARCHAR2(32) NOT NULL,
NOOFERRORNODES_MIN Number(20,4) NOT NULL,
NOOFERRORNODES_MAX Number(20,4) NOT NULL,
NOOFERRORNODES_STCNT VARCHAR2(32) NOT NULL,
NOOFUNREACHABLENODES_MIN Number(20,4) NOT NULL,
NOOFUNREACHABLENODES_MAX Number(20,4) NOT NULL,
NOOFUNREACHABLENODES_STCNT VARCHAR2(32) NOT NULL,
TOTALNUMBEROFNODES_MIN Number(20,4) NOT NULL,
TOTALNUMBEROFNODES_MAX Number(20,4) NOT NULL,
TOTALNUMBEROFNODES_STCNT VARCHAR2(32) NOT NULL,
HEALTHSTATE_MIN Number(20,4) NOT NULL,
HEALTHSTATE_MAX Number(20,4) NOT NULL, 
HEALTHSTATE_STCNT VARCHAR2(32) NOT NULL);
 ALTER TABLE MySQLCluMembTest_TREND ADD constraint PK_MySQLCluMembTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
 DROP TABLE MySQLCluMembTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluMembTest_THRESH(
TRGT_HOST       VARCHAR2(32) NOT NULL,
PORT_NO         VARCHAR2(32) NOT NULL,
SITE_NAME       VARCHAR2(64) NOT NULL,
INFO            VARCHAR2(128) NOT NULL,
MSMT_HOST       VARCHAR2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
MEMBERSTATE_MIN VARCHAR2(256) NOT NULL,
MEMBERSTATE_MAX VARCHAR2(256) NOT NULL,
ISPRIMARY_MIN VARCHAR2(256) NOT NULL,
ISPRIMARY_MAX VARCHAR2(256) NOT NULL,
ISSWITCHED_MIN VARCHAR2(256) NOT NULL,
ISSWITCHED_MAX VARCHAR2(256) NOT NULL,
PRIMARYCOUNT_MIN VARCHAR2(256) NOT NULL,
PRIMARYCOUNT_MAX VARCHAR2(256) NOT NULL,
SECONDARYCOUNT_MIN VARCHAR2(256) NOT NULL,
SECONDARYCOUNT_MAX VARCHAR2(256) NOT NULL,
ISREADWRITE_MIN VARCHAR2(256) NOT NULL,
ISREADWRITE_MAX VARCHAR2(256) NOT NULL,
NOOFREADWRITENODES_MIN VARCHAR2(256) NOT NULL,
NOOFREADWRITENODES_MAX VARCHAR2(256) NOT NULL,
NOOFREADONLYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFREADONLYNODES_MAX VARCHAR2(256) NOT NULL,
NOOFONLINENODES_MIN VARCHAR2(256) NOT NULL,
NOOFONLINENODES_MAX VARCHAR2(256) NOT NULL,
NOOFRECOVERINGNODES_MIN VARCHAR2(256) NOT NULL,
NOOFRECOVERINGNODES_MAX VARCHAR2(256) NOT NULL,
NOOFOFFLINENODES_MIN VARCHAR2(256) NOT NULL,
NOOFOFFLINENODES_MAX VARCHAR2(256) NOT NULL,
NOOFERRORNODES_MIN VARCHAR2(256) NOT NULL,
NOOFERRORNODES_MAX VARCHAR2(256) NOT NULL,
NOOFUNREACHABLENODES_MIN VARCHAR2(256) NOT NULL,
NOOFUNREACHABLENODES_MAX VARCHAR2(256) NOT NULL,
TOTALNUMBEROFNODES_MIN VARCHAR2(256) NOT NULL,
TOTALNUMBEROFNODES_MAX VARCHAR2(256) NOT NULL,
HEALTHSTATE_MIN VARCHAR2(256) NOT NULL, 
HEALTHSTATE_MAX VARCHAR2(256) NOT NULL);
 ALTER TABLE MySQLCluMembTest_THRESH ADD constraint PK_MySQLCluMembTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
 CREATE INDEX IDX_MySQLCluMembTest_THRESH ON MySQLCluMembTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
 CREATE INDEX IDX_TH_MySQLCluMembTest ON MySQLCluMembTest_THRESH (MSMT_TIME_START);
 CREATE INDEX IDX_TR_MySQLCluMembTest ON MySQLCluMembTest_TREND (MSMT_TIME,PERIOD);
 
  DROP TABLE MySQLCluConTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluConTest(
TRGT_HOST	VARCHAR2(32) NOT NULL,
PORT_NO	VARCHAR2(32) NOT NULL,
SITE_NAME	VARCHAR2(64) NOT NULL,
INFO		VARCHAR2(128) NOT NULL,
MSMT_HOST	VARCHAR2(32) NOT NULL,
MSMT_TIME	date NOT NULL,
CONNS_CREATE_RATE Number(20,4) NOT NULL,
CONNS_CREATE_RATE_ST VARCHAR2(32) NOT NULL,
ACTIVE_CONNS Number(20,4) NOT NULL,
ACTIVE_CONNS_ST VARCHAR2(32) NOT NULL,
CONNS_ABORTED Number(20,4) NOT NULL,
CONNS_ABORTED_ST VARCHAR2(32) NOT NULL,
CONNS_FAILED Number(20,4) NOT NULL,
CONNS_FAILED_ST VARCHAR2(32) NOT NULL,
MAX_CONNS Number(20,4) NOT NULL,
MAX_CONNS_ST VARCHAR2(32) NOT NULL,
MAX_CONNS_LIMIT Number(20,4) NOT NULL,
MAX_CONNS_LIMIT_ST VARCHAR2(32) NOT NULL,
CONNECTION_USAGE Number(20,4) NOT NULL,
 CONNECTION_USAGE_ST VARCHAR2(32) NOT NULL);
 ALTER TABLE MySQLCluConTest ADD constraint PK_MySQLCluConTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
 CREATE  INDEX IDX_MySQLCluConTest ON MySQLCluConTest(MSMT_TIME);
 
 DROP TABLE MySQLCluConTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluConTest_TREND(
TRGT_HOST       VARCHAR2(32) NOT NULL,
PORT_NO         VARCHAR2(32) NOT NULL,
SITE_NAME       VARCHAR2(64) NOT NULL,
INFO            VARCHAR2(128) NOT NULL,
MSMT_HOST       VARCHAR2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	VARCHAR2(32) NOT NULL,
CONNS_CREATE_RATE_MIN Number(20,4) NOT NULL,
CONNS_CREATE_RATE_MAX Number(20,4) NOT NULL,
CONNS_CREATE_RATE_STCNT VARCHAR2(32) NOT NULL,
ACTIVE_CONNS_MIN Number(20,4) NOT NULL,
ACTIVE_CONNS_MAX Number(20,4) NOT NULL,
ACTIVE_CONNS_STCNT VARCHAR2(32) NOT NULL,
CONNS_ABORTED_MIN Number(20,4) NOT NULL,
CONNS_ABORTED_MAX Number(20,4) NOT NULL,
CONNS_ABORTED_STCNT VARCHAR2(32) NOT NULL,
CONNS_FAILED_MIN Number(20,4) NOT NULL,
CONNS_FAILED_MAX Number(20,4) NOT NULL,
CONNS_FAILED_STCNT VARCHAR2(32) NOT NULL,
MAX_CONNS_MIN Number(20,4) NOT NULL,
MAX_CONNS_MAX Number(20,4) NOT NULL,
MAX_CONNS_STCNT VARCHAR2(32) NOT NULL,
MAX_CONNS_LIMIT_MIN Number(20,4) NOT NULL,
MAX_CONNS_LIMIT_MAX Number(20,4) NOT NULL,
MAX_CONNS_LIMIT_STCNT VARCHAR2(32) NOT NULL,
CONNECTION_USAGE_MIN Number(20,4) NOT NULL,
CONNECTION_USAGE_MAX Number(20,4) NOT NULL, 
CONNECTION_USAGE_STCNT VARCHAR2(32) NOT NULL);
ALTER TABLE MySQLCluConTest_TREND ADD constraint PK_MySQLCluConTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
 
DROP TABLE MySQLCluConTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLCluConTest_THRESH(
TRGT_HOST       VARCHAR2(32) NOT NULL,
PORT_NO         VARCHAR2(32) NOT NULL,
SITE_NAME       VARCHAR2(64) NOT NULL,
INFO            VARCHAR2(128) NOT NULL,
MSMT_HOST       VARCHAR2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
CONNS_CREATE_RATE_MIN	VARCHAR2(256)	 NOT NULL,
CONNS_CREATE_RATE_MAX	VARCHAR2(256)	 NOT NULL,
ACTIVE_CONNS_MIN	VARCHAR2(256)	 NOT NULL,
ACTIVE_CONNS_MAX	VARCHAR2(256)	 NOT NULL,
CONNS_ABORTED_MIN	VARCHAR2(256)	 NOT NULL,
CONNS_ABORTED_MAX	VARCHAR2(256)	 NOT NULL,
CONNS_FAILED_MIN	VARCHAR2(256)	 NOT NULL,
CONNS_FAILED_MAX	VARCHAR2(256)	 NOT NULL,
MAX_CONNS_MIN	VARCHAR2(256)	 NOT NULL,
MAX_CONNS_MAX	VARCHAR2(256)	 NOT NULL,
MAX_CONNS_LIMIT_MIN	VARCHAR2(256)	 NOT NULL,
MAX_CONNS_LIMIT_MAX	VARCHAR2(256)	 NOT NULL,
CONNECTION_USAGE_MIN	VARCHAR2(256)	 NOT NULL,
 CONNECTION_USAGE_MAX	VARCHAR2(256)	 NOT NULL);
 ALTER TABLE MySQLCluConTest_THRESH ADD constraint PK_MySQLCluConTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
 CREATE INDEX IDX_MySQLCluConTest_THRESH ON MySQLCluConTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
 CREATE INDEX IDX_TH_MySQLCluConTest ON MySQLCluConTest_THRESH (MSMT_TIME_START);
 CREATE INDEX IDX_TR_MySQLCluConTest ON MySQLCluConTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE OraRacDeKiPrTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacDeKiPrTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PROCESS_STATE Number(20,4) NOT NULL,
PROCESS_STATE_ST varchar2(32) NOT NULL,
DEAD_TIME Number(20,4) NOT NULL,
DEAD_TIME_ST varchar2(32) NOT NULL,
NUM_BLOCKED Number(20,4) NOT NULL,
NUM_BLOCKED_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacDeKiPrTest ON OraRacDeKiPrTest(MSMT_TIME);
ALTER TABLE OraRacDeKiPrTest ADD constraint PK_OraRacDeKiPrTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacDeKiPrTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacDeKiPrTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
PROCESS_STATE_MIN Number(20,4) NOT NULL,
PROCESS_STATE_MAX Number(20,4) NOT NULL,
PROCESS_STATE_STCNT varchar2(32) NOT NULL,
DEAD_TIME_MIN Number(20,4) NOT NULL,
DEAD_TIME_MAX Number(20,4) NOT NULL,
DEAD_TIME_STCNT varchar2(32) NOT NULL,
NUM_BLOCKED_MIN Number(20,4) NOT NULL,
NUM_BLOCKED_MAX Number(20,4) NOT NULL,
NUM_BLOCKED_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacDeKiPrTest_TREND ADD constraint PK_OraRacDeKiPrTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacDeKiPrTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacDeKiPrTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
PROCESS_STATE_MIN VARCHAR2(256) NOT NULL,
PROCESS_STATE_MAX VARCHAR2(256) NOT NULL,
DEAD_TIME_MIN VARCHAR2(256) NOT NULL,
DEAD_TIME_MAX VARCHAR2(256) NOT NULL,
NUM_BLOCKED_MIN VARCHAR2(256) NOT NULL,
NUM_BLOCKED_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacDeKiPrTest_THRESH ADD constraint PK_OraRacDeKiPrTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacDeKiPrTest_THRESH ON OraRacDeKiPrTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacDeKiPrTest ON OraRacDeKiPrTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacDeKiPrTest ON OraRacDeKiPrTest_TREND (MSMT_TIME,PERIOD);






DROP TABLE OraRacTeFiIOTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacTeFiIOTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
MULTIBLOCK_READTIME Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_ST varchar2(32) NOT NULL,
SINGLEBLOCK_READTIME Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_ST varchar2(32) NOT NULL,
MULTIBLOCK_WRITETIME Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_ST varchar2(32) NOT NULL,
SINGLEBLOCK_WRITETIME Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_ST varchar2(32) NOT NULL,
AVG_SYNCREADLATENCY Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_ST varchar2(32) NOT NULL,
FILE_IO Number(20,4) NOT NULL,
FILE_IO_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacTeFiIOTest ON OraRacTeFiIOTest(MSMT_TIME);
ALTER TABLE OraRacTeFiIOTest ADD constraint PK_OraRacTeFiIOTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacTeFiIOTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacTeFiIOTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
MULTIBLOCK_READTIME_MIN Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_MAX Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_STCNT varchar2(32) NOT NULL,
SINGLEBLOCK_READTIME_MIN Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_MAX Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_STCNT varchar2(32) NOT NULL,
MULTIBLOCK_WRITETIME_MIN Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_MAX Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_STCNT varchar2(32) NOT NULL,
SINGLEBLOCK_WRITETIME_MIN Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_MAX Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_STCNT varchar2(32) NOT NULL,
AVG_SYNCREADLATENCY_MIN Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_MAX Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_STCNT varchar2(32) NOT NULL,
FILE_IO_MIN Number(20,4) NOT NULL,
FILE_IO_MAX Number(20,4) NOT NULL,
FILE_IO_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacTeFiIOTest_TREND ADD constraint PK_OraRacTeFiIOTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacTeFiIOTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacTeFiIOTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
MULTIBLOCK_READTIME_MIN VARCHAR2(256) NOT NULL,
MULTIBLOCK_READTIME_MAX VARCHAR2(256) NOT NULL,
SINGLEBLOCK_READTIME_MIN VARCHAR2(256) NOT NULL,
SINGLEBLOCK_READTIME_MAX VARCHAR2(256) NOT NULL,
MULTIBLOCK_WRITETIME_MIN VARCHAR2(256) NOT NULL,
MULTIBLOCK_WRITETIME_MAX VARCHAR2(256) NOT NULL,
SINGLEBLOCK_WRITETIME_MIN VARCHAR2(256) NOT NULL,
SINGLEBLOCK_WRITETIME_MAX VARCHAR2(256) NOT NULL,
AVG_SYNCREADLATENCY_MIN VARCHAR2(256) NOT NULL,
AVG_SYNCREADLATENCY_MAX VARCHAR2(256) NOT NULL,
FILE_IO_MIN VARCHAR2(256) NOT NULL,
FILE_IO_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacTeFiIOTest_THRESH ADD constraint PK_OraRacTeFiIOTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacTeFiIOTest_THRESH ON OraRacTeFiIOTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacTeFiIOTest ON OraRacTeFiIOTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacTeFiIOTest ON OraRacTeFiIOTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE OraRacOtFiIOTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacOtFiIOTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
MULTIBLOCK_READTIME Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_ST varchar2(32) NOT NULL,
SINGLEBLOCK_READTIME Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_ST varchar2(32) NOT NULL,
MULTIBLOCK_WRITETIME Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_ST varchar2(32) NOT NULL,
SINGLEBLOCK_WRITETIME Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_ST varchar2(32) NOT NULL,
AVG_SYNCREADLATENCY Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_ST varchar2(32) NOT NULL,
FILE_IO Number(20,4) NOT NULL,
FILE_IO_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacOtFiIOTest ON OraRacOtFiIOTest(MSMT_TIME);
ALTER TABLE OraRacOtFiIOTest ADD constraint PK_OraRacOtFiIOTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacOtFiIOTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacOtFiIOTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
MULTIBLOCK_READTIME_MIN Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_MAX Number(20,4) NOT NULL,
MULTIBLOCK_READTIME_STCNT varchar2(32) NOT NULL,
SINGLEBLOCK_READTIME_MIN Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_MAX Number(20,4) NOT NULL,
SINGLEBLOCK_READTIME_STCNT varchar2(32) NOT NULL,
MULTIBLOCK_WRITETIME_MIN Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_MAX Number(20,4) NOT NULL,
MULTIBLOCK_WRITETIME_STCNT varchar2(32) NOT NULL,
SINGLEBLOCK_WRITETIME_MIN Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_MAX Number(20,4) NOT NULL,
SINGLEBLOCK_WRITETIME_STCNT varchar2(32) NOT NULL,
AVG_SYNCREADLATENCY_MIN Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_MAX Number(20,4) NOT NULL,
AVG_SYNCREADLATENCY_STCNT varchar2(32) NOT NULL,
FILE_IO_MIN Number(20,4) NOT NULL,
FILE_IO_MAX Number(20,4) NOT NULL,
FILE_IO_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacOtFiIOTest_TREND ADD constraint PK_OraRacOtFiIOTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacOtFiIOTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacOtFiIOTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
MULTIBLOCK_READTIME_MIN VARCHAR2(256) NOT NULL,
MULTIBLOCK_READTIME_MAX VARCHAR2(256) NOT NULL,
SINGLEBLOCK_READTIME_MIN VARCHAR2(256) NOT NULL,
SINGLEBLOCK_READTIME_MAX VARCHAR2(256) NOT NULL,
MULTIBLOCK_WRITETIME_MIN VARCHAR2(256) NOT NULL,
MULTIBLOCK_WRITETIME_MAX VARCHAR2(256) NOT NULL,
SINGLEBLOCK_WRITETIME_MIN VARCHAR2(256) NOT NULL,
SINGLEBLOCK_WRITETIME_MAX VARCHAR2(256) NOT NULL,
AVG_SYNCREADLATENCY_MIN VARCHAR2(256) NOT NULL,
AVG_SYNCREADLATENCY_MAX VARCHAR2(256) NOT NULL,
FILE_IO_MIN VARCHAR2(256) NOT NULL,
FILE_IO_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacOtFiIOTest_THRESH ADD constraint PK_OraRacOtFiIOTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacOtFiIOTest_THRESH ON OraRacOtFiIOTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacOtFiIOTest ON OraRacOtFiIOTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacOtFiIOTest ON OraRacOtFiIOTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE OraRacSerResTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacSerResTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
RESP_TIME_PER_TXN Number(20,4) NOT NULL,
RESP_TIME_PER_TXN_ST varchar2(32) NOT NULL,
SQL_SERVICE_RESPONSE Number(20,4) NOT NULL,
SQL_SERVICE_RESPONSE_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacSerResTest ON OraRacSerResTest(MSMT_TIME);
ALTER TABLE OraRacSerResTest ADD constraint PK_OraRacSerResTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacSerResTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacSerResTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
RESP_TIME_PER_TXN_MIN Number(20,4) NOT NULL,
RESP_TIME_PER_TXN_MAX Number(20,4) NOT NULL,
RESP_TIME_PER_TXN_STCNT varchar2(32) NOT NULL,
SQL_SERVICE_RESPONSE_MIN Number(20,4) NOT NULL,
SQL_SERVICE_RESPONSE_MAX Number(20,4) NOT NULL,
SQL_SERVICE_RESPONSE_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacSerResTest_TREND ADD constraint PK_OraRacSerResTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacSerResTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacSerResTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
RESP_TIME_PER_TXN_MIN VARCHAR2(256) NOT NULL,
RESP_TIME_PER_TXN_MAX VARCHAR2(256) NOT NULL,
SQL_SERVICE_RESPONSE_MIN VARCHAR2(256) NOT NULL,
SQL_SERVICE_RESPONSE_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacSerResTest_THRESH ADD constraint PK_OraRacSerResTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacSerResTest_THRESH ON OraRacSerResTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacSerResTest ON OraRacSerResTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacSerResTest ON OraRacSerResTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE OraRacSqlConTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacSqlConTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
KBYTESSENTRATE Number(20,4) NOT NULL,
KBYTESSENTRATE_ST varchar2(32) NOT NULL,
KBYTESRECVDRATE Number(20,4) NOT NULL,
KBYTESRECVDRATE_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacSqlConTest ON OraRacSqlConTest(MSMT_TIME);
ALTER TABLE OraRacSqlConTest ADD constraint PK_OraRacSqlConTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacSqlConTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacSqlConTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
KBYTESSENTRATE_MIN Number(20,4) NOT NULL,
KBYTESSENTRATE_MAX Number(20,4) NOT NULL,
KBYTESSENTRATE_STCNT varchar2(32) NOT NULL,
KBYTESRECVDRATE_MIN Number(20,4) NOT NULL,
KBYTESRECVDRATE_MAX Number(20,4) NOT NULL,
KBYTESRECVDRATE_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacSqlConTest_TREND ADD constraint PK_OraRacSqlConTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacSqlConTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacSqlConTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
KBYTESSENTRATE_MIN VARCHAR2(256) NOT NULL,
KBYTESSENTRATE_MAX VARCHAR2(256) NOT NULL,
KBYTESRECVDRATE_MIN VARCHAR2(256) NOT NULL,
KBYTESRECVDRATE_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacSqlConTest_THRESH ADD constraint PK_OraRacSqlConTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacSqlConTest_THRESH ON OraRacSqlConTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacSqlConTest ON OraRacSqlConTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacSqlConTest ON OraRacSqlConTest_TREND (MSMT_TIME,PERIOD);




DROP TABLE OraRacTransaTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacTransaTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
USER_COMMITS Number(20,4) NOT NULL,
USER_COMMITS_ST varchar2(32) NOT NULL,
USER_ROLLBACKS Number(20,4) NOT NULL,
USER_ROLLBACKS_ST varchar2(32) NOT NULL,
PCT_ROLLBACKS Number(20,4) NOT NULL,
PCT_ROLLBACKS_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacTransaTest ON OraRacTransaTest(MSMT_TIME);
ALTER TABLE OraRacTransaTest ADD constraint PK_OraRacTransaTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacTransaTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacTransaTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
USER_COMMITS_MIN Number(20,4) NOT NULL,
USER_COMMITS_MAX Number(20,4) NOT NULL,
USER_COMMITS_STCNT varchar2(32) NOT NULL,
USER_ROLLBACKS_MIN Number(20,4) NOT NULL,
USER_ROLLBACKS_MAX Number(20,4) NOT NULL,
USER_ROLLBACKS_STCNT varchar2(32) NOT NULL,
PCT_ROLLBACKS_MIN Number(20,4) NOT NULL,
PCT_ROLLBACKS_MAX Number(20,4) NOT NULL,
PCT_ROLLBACKS_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacTransaTest_TREND ADD constraint PK_OraRacTransaTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacTransaTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacTransaTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
USER_COMMITS_MIN VARCHAR2(256) NOT NULL,
USER_COMMITS_MAX VARCHAR2(256) NOT NULL,
USER_ROLLBACKS_MIN VARCHAR2(256) NOT NULL,
USER_ROLLBACKS_MAX VARCHAR2(256) NOT NULL,
PCT_ROLLBACKS_MIN VARCHAR2(256) NOT NULL,
PCT_ROLLBACKS_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacTransaTest_THRESH ADD constraint PK_OraRacTransaTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacTransaTest_THRESH ON OraRacTransaTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacTransaTest ON OraRacTransaTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacTransaTest ON OraRacTransaTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE OraRacUseAudTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacUseAudTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
LOGIN_SESSIONS Number(20,4) NOT NULL,
LOGIN_SESSIONS_ST varchar2(32) NOT NULL,
LOCKEDUSERS Number(20,4) NOT NULL,
LOCKEDUSERS_ST varchar2(32) NOT NULL,
LOGOFF_SESSIONS Number(20,4) NOT NULL,
LOGOFF_SESSIONS_ST varchar2(32) NOT NULL,
LOGIN_FAILED_SESSIONS Number(20,4) NOT NULL,
LOGIN_FAILED_SESSIONS_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacUseAudTest ON OraRacUseAudTest(MSMT_TIME);
ALTER TABLE OraRacUseAudTest ADD constraint PK_OraRacUseAudTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacUseAudTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacUseAudTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
LOGIN_SESSIONS_MIN Number(20,4) NOT NULL,
LOGIN_SESSIONS_MAX Number(20,4) NOT NULL,
LOGIN_SESSIONS_STCNT varchar2(32) NOT NULL,
LOCKEDUSERS_MIN Number(20,4) NOT NULL,
LOCKEDUSERS_MAX Number(20,4) NOT NULL,
LOCKEDUSERS_STCNT varchar2(32) NOT NULL,
LOGOFF_SESSIONS_MIN Number(20,4) NOT NULL,
LOGOFF_SESSIONS_MAX Number(20,4) NOT NULL,
LOGOFF_SESSIONS_STCNT varchar2(32) NOT NULL,
LOGIN_FAILED_SESSIONS_MIN Number(20,4) NOT NULL,
LOGIN_FAILED_SESSIONS_MAX Number(20,4) NOT NULL,
LOGIN_FAILED_SESSIONS_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacUseAudTest_TREND ADD constraint PK_OraRacUseAudTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacUseAudTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacUseAudTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
LOGIN_SESSIONS_MIN VARCHAR2(256) NOT NULL,
LOGIN_SESSIONS_MAX VARCHAR2(256) NOT NULL,
LOCKEDUSERS_MIN VARCHAR2(256) NOT NULL,
LOCKEDUSERS_MAX VARCHAR2(256) NOT NULL,
LOGOFF_SESSIONS_MIN VARCHAR2(256) NOT NULL,
LOGOFF_SESSIONS_MAX VARCHAR2(256) NOT NULL,
LOGIN_FAILED_SESSIONS_MIN VARCHAR2(256) NOT NULL,
LOGIN_FAILED_SESSIONS_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacUseAudTest_THRESH ADD constraint PK_OraRacUseAudTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacUseAudTest_THRESH ON OraRacUseAudTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacUseAudTest ON OraRacUseAudTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacUseAudTest ON OraRacUseAudTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE OraRacUptimeTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacUptimeTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
REBOOTED Number(20,4) NOT NULL,
REBOOTED_ST varchar2(32) NOT NULL,
DIFFUPTIME Number(20,4) NOT NULL,
DIFFUPTIME_ST varchar2(32) NOT NULL,
UPTIME Number(20,4) NOT NULL,
UPTIME_ST varchar2(32) NOT NULL,
DB_OPEN_MODE Number(20,4) NOT NULL,
DB_OPEN_MODE_ST varchar2(32) NOT NULL,
NOOFMOUNTEDNODES Number(20,4) NOT NULL,
NOOFMOUNTEDNODES_ST varchar2(32) NOT NULL,
NOOFREADWRITENODES Number(20,4) NOT NULL,
NOOFREADWRITENODES_ST varchar2(32) NOT NULL,
NOOFREADONLYNODES Number(20,4) NOT NULL,
NOOFREADONLYNODES_ST varchar2(32) NOT NULL,
NOOFREADONLYAPPLYNODES Number(20,4) NOT NULL,
NOOFREADONLYAPPLYNODES_ST varchar2(32) NOT NULL,
TOTALNOOFNODES Number(20,4) NOT NULL,
TOTALNOOFNODES_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacUptimeTest ON OraRacUptimeTest(MSMT_TIME);
ALTER TABLE OraRacUptimeTest ADD constraint PK_OraRacUptimeTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacUptimeTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacUptimeTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
REBOOTED_MIN Number(20,4) NOT NULL,
REBOOTED_MAX Number(20,4) NOT NULL,
REBOOTED_STCNT varchar2(32) NOT NULL,
DIFFUPTIME_MIN Number(20,4) NOT NULL,
DIFFUPTIME_MAX Number(20,4) NOT NULL,
DIFFUPTIME_STCNT varchar2(32) NOT NULL,
UPTIME_MIN Number(20,4) NOT NULL,
UPTIME_MAX Number(20,4) NOT NULL,
UPTIME_STCNT varchar2(32) NOT NULL,
DB_OPEN_MODE_MIN Number(20,4) NOT NULL,
DB_OPEN_MODE_MAX Number(20,4) NOT NULL,
DB_OPEN_MODE_STCNT varchar2(32) NOT NULL,
NOOFMOUNTEDNODES_MIN Number(20,4) NOT NULL,
NOOFMOUNTEDNODES_MAX Number(20,4) NOT NULL,
NOOFMOUNTEDNODES_STCNT varchar2(32) NOT NULL,
NOOFREADWRITENODES_MIN Number(20,4) NOT NULL,
NOOFREADWRITENODES_MAX Number(20,4) NOT NULL,
NOOFREADWRITENODES_STCNT varchar2(32) NOT NULL,
NOOFREADONLYNODES_MIN Number(20,4) NOT NULL,
NOOFREADONLYNODES_MAX Number(20,4) NOT NULL,
NOOFREADONLYNODES_STCNT varchar2(32) NOT NULL,
NOOFREADONLYAPPLYNODES_MIN Number(20,4) NOT NULL,
NOOFREADONLYAPPLYNODES_MAX Number(20,4) NOT NULL,
NOOFREADONLYAPPLYNODES_STCNT varchar2(32) NOT NULL,
TOTALNOOFNODES_MIN Number(20,4) NOT NULL,
TOTALNOOFNODES_MAX Number(20,4) NOT NULL,
TOTALNOOFNODES_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacUptimeTest_TREND ADD constraint PK_OraRacUptimeTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacUptimeTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacUptimeTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
REBOOTED_MIN VARCHAR2(256) NOT NULL,
REBOOTED_MAX VARCHAR2(256) NOT NULL,
DIFFUPTIME_MIN VARCHAR2(256) NOT NULL,
DIFFUPTIME_MAX VARCHAR2(256) NOT NULL,
UPTIME_MIN VARCHAR2(256) NOT NULL,
UPTIME_MAX VARCHAR2(256) NOT NULL,
DB_OPEN_MODE_MIN VARCHAR2(256) NOT NULL,
DB_OPEN_MODE_MAX VARCHAR2(256) NOT NULL,
NOOFMOUNTEDNODES_MIN VARCHAR2(256) NOT NULL,
NOOFMOUNTEDNODES_MAX VARCHAR2(256) NOT NULL,
NOOFREADWRITENODES_MIN VARCHAR2(256) NOT NULL,
NOOFREADWRITENODES_MAX VARCHAR2(256) NOT NULL,
NOOFREADONLYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFREADONLYNODES_MAX VARCHAR2(256) NOT NULL,
NOOFREADONLYAPPLYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFREADONLYAPPLYNODES_MAX VARCHAR2(256) NOT NULL,
TOTALNOOFNODES_MIN VARCHAR2(256) NOT NULL,
TOTALNOOFNODES_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacUptimeTest_THRESH ADD constraint PK_OraRacUptimeTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacUptimeTest_THRESH ON OraRacUptimeTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacUptimeTest ON OraRacUptimeTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacUptimeTest ON OraRacUptimeTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE MySQLBackupStTest CASCADE CONSTRAINTS;
CREATE TABLE MySQLBackupStTest(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
SUCCESSBACKUP Number(20,4) NOT NULL,
SUCCESSBACKUP_ST varchar2(32) NOT NULL,
FAILEDBACKUP Number(20,4) NOT NULL,
FAILEDBACKUP_ST varchar2(32) NOT NULL,
RUNNINGBACKUP Number(20,4) NOT NULL,
RUNNINGBACKUP_ST varchar2(32) NOT NULL,
MAXSUCCESSBACKUPDURATION Number(20,4) NOT NULL,
MAXSUCCESSBACKUPDURATION_ST varchar2(32) NOT NULL,
NUMBEROFBACKUPS Number(20,4) NOT NULL,
NUMBEROFBACKUPS_ST varchar2(32) NOT NULL);
CREATE INDEX IDX_MySQLBackupStTest ON MySQLBackupStTest(MSMT_TIME);
ALTER TABLE MySQLBackupStTest ADD constraint PK_MySQLBackupStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE MySQLBackupStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MySQLBackupStTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
SUCCESSBACKUP_MIN Number(20,4) NOT NULL,
SUCCESSBACKUP_MAX Number(20,4) NOT NULL,
SUCCESSBACKUP_STCNT varchar2(32) NOT NULL,
FAILEDBACKUP_MIN Number(20,4) NOT NULL,
FAILEDBACKUP_MAX Number(20,4) NOT NULL,
FAILEDBACKUP_STCNT varchar2(32) NOT NULL,
RUNNINGBACKUP_MIN Number(20,4) NOT NULL,
RUNNINGBACKUP_MAX Number(20,4) NOT NULL,
RUNNINGBACKUP_STCNT varchar2(32) NOT NULL,
MAXSUCCESSBACKUPDURATION_MIN Number(20,4) NOT NULL,
MAXSUCCESSBACKUPDURATION_MAX Number(20,4) NOT NULL,
MAXSUCCESSBACKUPDURATION_STCNT varchar2(32) NOT NULL,
NUMBEROFBACKUPS_MIN Number(20,4) NOT NULL,
NUMBEROFBACKUPS_MAX Number(20,4) NOT NULL, 
NUMBEROFBACKUPS_STCNT varchar2(32) NOT NULL);
ALTER TABLE MySQLBackupStTest_TREND ADD constraint PK_MySQLBackupStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MySQLBackupStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MySQLBackupStTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
SUCCESSBACKUP_MIN varchar2(256) NOT NULL,
SUCCESSBACKUP_MAX varchar2(256) NOT NULL,
FAILEDBACKUP_MIN varchar2(256) NOT NULL,
FAILEDBACKUP_MAX varchar2(256) NOT NULL,
RUNNINGBACKUP_MIN varchar2(256) NOT NULL,
RUNNINGBACKUP_MAX varchar2(256) NOT NULL,
MAXSUCCESSBACKUPDURATION_MIN varchar2(256) NOT NULL,
MAXSUCCESSBACKUPDURATION_MAX varchar2(256) NOT NULL,
NUMBEROFBACKUPS_MIN varchar2(256) NOT NULL, 
NUMBEROFBACKUPS_MAX varchar2(256) NOT NULL);
ALTER TABLE MySQLBackupStTest_THRESH ADD constraint PK_MySQLBackupStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MySQLBackupStTest_THRESH ON MySQLBackupStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MySQLBackupStTest ON MySQLBackupStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MySQLBackupStTest ON MySQLBackupStTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE MongoExtCluNdStTest CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNdStTest(
	TRGT_HOST       varchar2(32),
	PORT_NO         varchar2(32),
	SITE_NAME       varchar2(64),
	INFO            varchar2(128),
	MSMT_HOST       varchar2(32),
	MSMT_TIME       date,
	IS_PRIMARY 		Number(20,4) NOT NULL,
	IS_PRIMARY_ST 	varchar2(32) NOT NULL,
	NODE_HEALTH 	Number(20,4) NOT NULL,
	NODE_HEALTH_ST 	varchar2(32) NOT NULL,
	NODE_STATE 		Number(20,4) NOT NULL,
	NODE_STATE_ST 	varchar2(32) NOT NULL,
	TOT_NODE 		Number(20,4) NOT NULL,
	TOT_NODE_ST 	varchar2(32) NOT NULL,
	PRIM_NODE 	Number(20,4) NOT NULL,
	PRIM_NODE_ST 	varchar2(32) NOT NULL,
	SEC_NODE 		Number(20,4) NOT NULL,
	SEC_NODE_ST 	varchar2(32) NOT NULL,
	AVA_NODE 		Number(20,4) NOT NULL,
	AVA_NODE_ST 	varchar2(32) NOT NULL,
	UNAVA_NODE 		Number(20,4) NOT NULL,
	UNAVA_NODE_ST 	varchar2(32) NOT NULL,
	IS_PRIMARY_SWITCHED 		Number(20,4) NOT NULL,
	IS_PRIMARY_SWITCHED_ST 	varchar2(32) NOT NULL,
	READWRITE_NODE 	Number(20,4) NOT NULL,
	READWRITE_NODE_ST 	varchar2(32) NOT NULL,
	STARTUP_NODE 		Number(20,4) NOT NULL,
	STARTUP_NODE_ST 	varchar2(32) NOT NULL,
	REC_NODE 		Number(20,4) NOT NULL,
	REC_NODE_ST 	varchar2(32) NOT NULL,
	STARTUP2_NODE 	Number(20,4) NOT NULL,
	STARTUP2_NODE_ST 	varchar2(32) NOT NULL,
	UNKNOWN_NODE 		Number(20,4) NOT NULL,
	UNKNOWN_NODE_ST 	varchar2(32) NOT NULL,
	ARB_NODE 	Number(20,4) NOT NULL,
	ARB_NODE_ST 	varchar2(32) NOT NULL,
	DOWN_NODE 		Number(20,4) NOT NULL,
	DOWN_NODE_ST 	varchar2(32) NOT NULL,
	ROLLBACK_NODE 		Number(20,4) NOT NULL,
	ROLLBACK_NODE_ST 	varchar2(32) NOT NULL,
	REMOVE_NODE 	Number(20,4) NOT NULL,
	REMOVE_NODE_ST 	varchar2(32) NOT NULL,
	NOREADWRITE_NODE Number(20,4) NOT NULL,
	NOREADWRITE_NODE_ST 	varchar2(32) NOT NULL,
	NOREADONLY_NODE Number(20,4) NOT NULL,
	NOREADONLY_NODE_ST 	varchar2(32) NOT NULL,
	HEALTHST Number(20,4) NOT NULL,
	HEALTHST_ST 	varchar2(32) NOT NULL
	);
CREATE INDEX IDX_MongoExtCluNdStTest ON MongoExtCluNdStTest(MSMT_TIME);
ALTER TABLE MongoExtCluNdStTest ADD constraint PK_MongoExtCluNdStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE MongoExtCluNdStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNdStTest_TREND(
	TRGT_HOST       	varchar2(32),
	PORT_NO         	varchar2(32),
	SITE_NAME       	varchar2(64),
	INFO            	varchar2(128),
	MSMT_HOST       	varchar2(32),
	MSMT_TIME       	date,
	PERIOD       		varchar2(32),
	IS_PRIMARY_MIN 		Number(20,4) NOT NULL,
	IS_PRIMARY_MAX 		Number(20,4) NOT NULL,
	IS_PRIMARY_STCNT 	varchar2(32) NOT NULL,
	NODE_HEALTH_MIN 	Number(20,4) NOT NULL,
	NODE_HEALTH_MAX 	Number(20,4) NOT NULL,
	NODE_HEALTH_STCNT 	varchar2(32) NOT NULL,
	NODE_STATE_MIN 		Number(20,4) NOT NULL,
	NODE_STATE_MAX 		Number(20,4) NOT NULL,
	NODE_STATE_STCNT 	varchar2(32) NOT NULL,
	TOT_NODE_MIN 		Number(20,4) NOT NULL,
	TOT_NODE_MAX 		Number(20,4) NOT NULL,
	TOT_NODE_STCNT 	    varchar2(32) NOT NULL,
	PRIM_NODE_MIN 	    Number(20,4) NOT NULL,
	PRIM_NODE_MAX 	    Number(20,4) NOT NULL,
	PRIM_NODE_STCNT 	varchar2(32) NOT NULL,
	SEC_NODE_MIN 		Number(20,4) NOT NULL,
	SEC_NODE_MAX 		Number(20,4) NOT NULL,
	SEC_NODE_STCNT 	    varchar2(32) NOT NULL,
	AVA_NODE_MIN 		Number(20,4) NOT NULL,
	AVA_NODE_MAX 		Number(20,4) NOT NULL,
	AVA_NODE_STCNT 	    varchar2(32) NOT NULL,
	UNAVA_NODE_MIN 		Number(20,4) NOT NULL,
	UNAVA_NODE_MAX 		Number(20,4) NOT NULL,
	UNAVA_NODE_STCNT 	varchar2(32) NOT NULL,
	IS_PRIMARY_SWITCHED_MIN 		Number(20,4) NOT NULL,
	IS_PRIMARY_SWITCHED_MAX 		Number(20,4) NOT NULL,
	IS_PRIMARY_SWITCHED_STCNT 	varchar2(32) NOT NULL,
	READWRITE_NODE_MIN 	Number(20,4) NOT NULL,
	READWRITE_NODE_MAX 	Number(20,4) NOT NULL,
	READWRITE_NODE_STCNT 	varchar2(32) NOT NULL,
	STARTUP_NODE_MIN 		Number(20,4) NOT NULL,
	STARTUP_NODE_MAX 		Number(20,4) NOT NULL,
	STARTUP_NODE_STCNT 	varchar2(32) NOT NULL,
	REC_NODE_MIN 		Number(20,4) NOT NULL,
	REC_NODE_MAX 		Number(20,4) NOT NULL,
	REC_NODE_STCNT 	    varchar2(32) NOT NULL,
	STARTUP2_NODE_MIN 	    Number(20,4) NOT NULL,
	STARTUP2_NODE_MAX 	    Number(20,4) NOT NULL,
	STARTUP2_NODE_STCNT 	varchar2(32) NOT NULL,
	UNKNOWN_NODE_MIN 		Number(20,4) NOT NULL,
	UNKNOWN_NODE_MAX 		Number(20,4) NOT NULL,
	UNKNOWN_NODE_STCNT 	varchar2(32) NOT NULL,
	ARB_NODE_MIN 	Number(20,4) NOT NULL,
	ARB_NODE_MAX 	Number(20,4) NOT NULL,
	ARB_NODE_STCNT 	varchar2(32) NOT NULL,
	DOWN_NODE_MIN 		Number(20,4) NOT NULL,
	DOWN_NODE_MAX 		Number(20,4) NOT NULL,
	DOWN_NODE_STCNT 	varchar2(32) NOT NULL,
	ROLLBACK_NODE_MIN 		Number(20,4) NOT NULL,
	ROLLBACK_NODE_MAX 		Number(20,4) NOT NULL,
	ROLLBACK_NODE_STCNT 	    varchar2(32) NOT NULL,
	REMOVE_NODE_MIN 	    Number(20,4) NOT NULL,
	REMOVE_NODE_MAX 	    Number(20,4) NOT NULL,
	REMOVE_NODE_STCNT 	varchar2(32) NOT NULL,
	NOREADWRITE_NODE_MIN    Number(20,4) NOT NULL,
	NOREADWRITE_NODE_MAX 	Number(20,4) NOT NULL,
	NOREADWRITE_NODE_STCNT 	varchar2(32) NOT NULL,
	NOREADONLY_NODE_MIN     Number(20,4) NOT NULL,
	NOREADONLY_NODE_MAX 	Number(20,4) NOT NULL,
	NOREADONLY_NODE_STCNT 	varchar2(32) NOT NULL,
	HEALTHST_MIN     Number(20,4) NOT NULL,
	HEALTHST_MAX 	Number(20,4) NOT NULL,
	HEALTHST_STCNT 	varchar2(32) NOT NULL);
ALTER TABLE MongoExtCluNdStTest_TREND ADD constraint PK_MongoExtCluNdStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE MongoExtCluNdStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNdStTest_THRESH(
	TRGT_HOST       varchar2(32),
	PORT_NO         varchar2(32),
	SITE_NAME       varchar2(64),
	INFO            varchar2(128),
	MSMT_HOST       varchar2(32),
	MSMT_TIME_START date,
	MSMT_TIME_END   date,
	IS_PRIMARY_MIN 	VARCHAR2(256) NOT NULL,
	IS_PRIMARY_MAX 	VARCHAR2(256) NOT NULL,
	NODE_HEALTH_MIN VARCHAR2(256) NOT NULL,
	NODE_HEALTH_MAX VARCHAR2(256) NOT NULL,
	NODE_STATE_MIN 	VARCHAR2(256) NOT NULL,
	NODE_STATE_MAX 	VARCHAR2(256) NOT NULL,
	TOT_NODE_MIN 	VARCHAR2(256) NOT NULL,
	TOT_NODE_MAX 	VARCHAR2(256) NOT NULL,
	PRIM_NODE_MIN VARCHAR2(256) NOT NULL,
	PRIM_NODE_MAX VARCHAR2(256) NOT NULL,
	SEC_NODE_MIN 	VARCHAR2(256) NOT NULL,
	SEC_NODE_MAX 	VARCHAR2(256) NOT NULL,
	AVA_NODE_MIN 	VARCHAR2(256) NOT NULL,
	AVA_NODE_MAX 	VARCHAR2(256) NOT NULL,
	UNAVA_NODE_MIN 	VARCHAR2(256) NOT NULL,
	UNAVA_NODE_MAX 	VARCHAR2(256) NOT NULL,
	IS_PRIMARY_SWITCHED_MIN 	VARCHAR2(256) NOT NULL,
	IS_PRIMARY_SWITCHED_MAX 	VARCHAR2(256) NOT NULL,
	READWRITE_NODE_MIN VARCHAR2(256) NOT NULL,
	READWRITE_NODE_MAX VARCHAR2(256) NOT NULL,
	STARTUP_NODE_MIN 	VARCHAR2(256) NOT NULL,
	STARTUP_NODE_MAX 	VARCHAR2(256) NOT NULL,
	REC_NODE_MIN 	VARCHAR2(256) NOT NULL,
	REC_NODE_MAX 	VARCHAR2(256) NOT NULL,
	STARTUP2_NODE_MIN VARCHAR2(256) NOT NULL,
	STARTUP2_NODE_MAX VARCHAR2(256) NOT NULL,
	UNKNOWN_NODE_MIN 	VARCHAR2(256) NOT NULL,
	UNKNOWN_NODE_MAX 	VARCHAR2(256) NOT NULL,
	ARB_NODE_MIN VARCHAR2(256) NOT NULL,
	ARB_NODE_MAX VARCHAR2(256) NOT NULL,
	DOWN_NODE_MIN 	VARCHAR2(256) NOT NULL,
	DOWN_NODE_MAX 	VARCHAR2(256) NOT NULL,
	ROLLBACK_NODE_MIN 	VARCHAR2(256) NOT NULL,
	ROLLBACK_NODE_MAX 	VARCHAR2(256) NOT NULL,
	REMOVE_NODE_MIN VARCHAR2(256) NOT NULL,
	REMOVE_NODE_MAX VARCHAR2(256) NOT NULL,
	NOREADWRITE_NODE_MIN    VARCHAR2(256) NOT NULL,
	NOREADWRITE_NODE_MAX 	VARCHAR2(256) NOT NULL,
	NOREADONLY_NODE_MIN     VARCHAR2(256) NOT NULL,
	NOREADONLY_NODE_MAX 	VARCHAR2(256) NOT NULL,
	HEALTHST_MIN     VARCHAR2(256) NOT NULL,
	HEALTHST_MAX 	VARCHAR2(256) NOT NULL);
ALTER TABLE MongoExtCluNdStTest_THRESH ADD constraint PK_MongoExtCluNdStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MongoExtCluNdStTest_THRESH ON MongoExtCluNdStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MongoExtCluNdStTest ON MongoExtCluNdStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MongoExtCluNdStTest ON MongoExtCluNdStTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE MongoExtClRepStTest CASCADE CONSTRAINTS;
CREATE TABLE MongoExtClRepStTest(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date,
IS_NODE_RUNNING NUMBER(20,4) NOT NULL,
IS_NODE_RUNNING_ST varchar2(32) NOT NULL,
CURRENT_STATUS NUMBER(20,4) NOT NULL,
CURRENT_STATUS_ST varchar2(32) NOT NULL,
IS_PRIMARY_SWITCHED NUMBER(20,4) NOT NULL,
IS_PRIMARY_SWITCHED_ST varchar2(32) NOT NULL,
UPTIME NUMBER(20,4) NOT NULL,
UPTIME_ST varchar2(32) NOT NULL,
LAST_HEARTBEAT_TIME NUMBER(20,4) NOT NULL,
LAST_HEARTBEAT_TIME_ST varchar2(32) NOT NULL,
IS_PRIMARY NUMBER(20,4) NOT NULL,
IS_PRIMARY_ST varchar2(32) NOT NULL,
RepLag NUMBER(20,4) NOT NULL,
RepLag_ST varchar2(32) NOT NULL,
maxRepLag NUMBER(20,4) NOT NULL,
maxRepLag_ST varchar2(32) NOT NULL,
minRepLag NUMBER(20,4) NOT NULL,
minRepLag_ST varchar2(32) NOT NULL,
maxUPTIME NUMBER(20,4) NOT NULL,
maxUPTIME_ST varchar2(32) NOT NULL,
NoOper NUMBER(20,4) NOT NULL,
NoOper_ST varchar2(32) NOT NULL
);
CREATE INDEX IDX_MongoExtClRepStTest ON MongoExtClRepStTest(MSMT_TIME);
ALTER TABLE MongoExtClRepStTest ADD constraint PK_MongoExtClRepStTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE MongoExtClRepStTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MongoExtClRepStTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date,
PERIOD       	varchar2(32) NOT NULL,
IS_NODE_RUNNING_MIN NUMBER(20,4) NOT NULL,
IS_NODE_RUNNING_MAX NUMBER(20,4) NOT NULL,
IS_NODE_RUNNING_STCNT varchar2(32) NOT NULL,
CURRENT_STATUS_MIN NUMBER(20,4) NOT NULL,
CURRENT_STATUS_MAX NUMBER(20,4) NOT NULL,
CURRENT_STATUS_STCNT varchar2(32) NOT NULL,
IS_PRIMARY_SWITCHED_MIN NUMBER(20,4) NOT NULL,
IS_PRIMARY_SWITCHED_MAX NUMBER(20,4) NOT NULL,
IS_PRIMARY_SWITCHED_STCNT varchar2(32) NOT NULL,
UPTIME_MIN NUMBER(20,4) NOT NULL,
UPTIME_MAX NUMBER(20,4) NOT NULL,
UPTIME_STCNT varchar2(32) NOT NULL,
LAST_HEARTBEAT_TIME_MIN NUMBER(20,4) NOT NULL,
LAST_HEARTBEAT_TIME_MAX NUMBER(20,4) NOT NULL,
LAST_HEARTBEAT_TIME_STCNT varchar2(32) NOT NULL,
IS_PRIMARY_MIN NUMBER(20,4) NOT NULL,
IS_PRIMARY_MAX NUMBER(20,4) NOT NULL,
IS_PRIMARY_STCNT varchar2(32) NOT NULL,
RepLag_MIN NUMBER(20,4) NOT NULL,
RepLag_MAX NUMBER(20,4) NOT NULL,
RepLag_STCNT varchar2(32) NOT NULL,
maxRepLag_MIN NUMBER(20,4) NOT NULL,
maxRepLag_MAX NUMBER(20,4) NOT NULL,
maxRepLag_STCNT varchar2(32) NOT NULL,
minRepLag_MIN NUMBER(20,4) NOT NULL,
minRepLag_MAX NUMBER(20,4) NOT NULL,
minRepLag_STCNT varchar2(32) NOT NULL,
maxUPTIME_MIN NUMBER(20,4) NOT NULL,
maxUPTIME_MAX NUMBER(20,4) NOT NULL,
maxUPTIME_STCNT varchar2(32) NOT NULL,
NoOper_MIN NUMBER(20,4) NOT NULL,
NoOper_MAX NUMBER(20,4) NOT NULL,
NoOper_STCNT varchar2(32) NOT NULL
);
ALTER TABLE MongoExtClRepStTest_TREND ADD constraint PK_MongoExtClRepStTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE MongoExtClRepStTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MongoExtClRepStTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL
,MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date,
MSMT_TIME_END   date,
IS_NODE_RUNNING_MIN varchar2(256) NOT NULL,
IS_NODE_RUNNING_MAX varchar2(256) NOT NULL,
CURRENT_STATUS_MIN varchar2(256) NOT NULL,
CURRENT_STATUS_MAX varchar2(256) NOT NULL,
IS_PRIMARY_SWITCHED_MIN varchar2(256) NOT NULL,
IS_PRIMARY_SWITCHED_MAX varchar2(256) NOT NULL,
UPTIME_MIN varchar2(256) NOT NULL,
UPTIME_MAX varchar2(256) NOT NULL,
LAST_HEARTBEAT_TIME_MIN varchar2(256) NOT NULL,
LAST_HEARTBEAT_TIME_MAX varchar2(256) NOT NULL,
IS_PRIMARY_MIN varchar2(256) NOT NULL,
IS_PRIMARY_MAX varchar2(256) NOT NULL,
RepLag_MIN varchar2(256) NOT NULL,
RepLag_MAX varchar2(256) NOT NULL,
maxRepLag_MIN varchar2(256) NOT NULL,
maxRepLag_MAX varchar2(256) NOT NULL,
minRepLag_MIN varchar2(256) NOT NULL,
minRepLag_MAX varchar2(256) NOT NULL,
maxUPTIME_MIN varchar2(256) NOT NULL,
maxUPTIME_MAX varchar2(256) NOT NULL,
NoOper_MIN varchar2(256) NOT NULL,
NoOper_MAX varchar2(256) NOT NULL
);
ALTER TABLE MongoExtClRepStTest_THRESH ADD constraint PK_MongoExtClRepStTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MongoExtClRepStTest_THRESH ON MongoExtClRepStTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MongoExtClRepStTest ON MongoExtClRepStTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MongoExtClRepStTest ON MongoExtClRepStTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE MongoExtCluAvaTest CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluAvaTest(
	TRGT_HOST       			varchar2(32),
	PORT_NO         			varchar2(32),
	SITE_NAME       			varchar2(64),
	INFO            			varchar2(128),
	MSMT_HOST       			varchar2(32),
	MSMT_TIME       			date,
	IS_CLUSTER 					Number(20,4) NOT NULL,
	IS_CLUSTER_ST 				varchar2(32) NOT NULL,
	CLUSTER_TYPE 				Number(20,4) NOT NULL,
	CLUSTER_TYPE_ST 			varchar2(32) NOT NULL,
	IS_BALANCER_ENABLED 		Number(20,4) NOT NULL,
	IS_BALANCER_ENABLED_ST 		varchar2(32) NOT NULL,
	IS_BALANCER_RUNNING 		Number(20,4) NOT NULL,
	IS_BALANCER_RUNNING_ST 		varchar2(32) NOT NULL,
	FAIL_BALANCER_COUNT 		Number(20,4) NOT NULL,
	FAIL_BALANCER_COUNT_ST 		varchar2(32) NOT NULL,
	SUCC_MIGRATION_COUNT 		Number(20,4) NOT NULL,
	SUCC_MIGRATION_COUNT_ST 	varchar2(32) NOT NULL,
	FAILED_MIGRATION_COUNT 		Number(20,4) NOT NULL,
	FAILED_MIGRATION_COUNT_ST 	varchar2(32) NOT NULL,
	SHARDS_COUNT 				Number(20,4) NOT NULL,
	SHARDS_COUNT_ST 			varchar2(32) NOT NULL);
CREATE INDEX IDX_MongoExtCluAvaTest ON MongoExtCluAvaTest(MSMT_TIME);
ALTER TABLE MongoExtCluAvaTest ADD constraint PK_MongoExtCluAvaTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE MongoExtCluAvaTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluAvaTest_TREND(
	TRGT_HOST       				varchar2(32),
	PORT_NO         				varchar2(32),
	SITE_NAME       				varchar2(64),
	INFO            				varchar2(128),
	MSMT_HOST       				varchar2(32),
	MSMT_TIME       				date,
	PERIOD       					varchar2(32),
	IS_CLUSTER_MIN 					Number(20,4) NOT NULL,
	IS_CLUSTER_MAX 					Number(20,4) NOT NULL,
	IS_CLUSTER_STCNT 				varchar2(32) NOT NULL,
	CLUSTER_TYPE_MIN 				Number(20,4) NOT NULL,
	CLUSTER_TYPE_MAX 				Number(20,4) NOT NULL,
	CLUSTER_TYPE_STCNT 				varchar2(32) NOT NULL,
	IS_BALANCER_ENABLED_MIN 		Number(20,4) NOT NULL,
	IS_BALANCER_ENABLED_MAX 		Number(20,4) NOT NULL,
	IS_BALANCER_ENABLED_STCNT 		varchar2(32) NOT NULL,
	IS_BALANCER_RUNNING_MIN 		Number(20,4) NOT NULL,
	IS_BALANCER_RUNNING_MAX 		Number(20,4) NOT NULL,
	IS_BALANCER_RUNNING_STCNT 		varchar2(32) NOT NULL,
	FAIL_BALANCER_COUNT_MIN 		Number(20,4) NOT NULL,
	FAIL_BALANCER_COUNT_MAX 		Number(20,4) NOT NULL,
	FAIL_BALANCER_COUNT_STCNT 		varchar2(32) NOT NULL,
	SUCC_MIGRATION_COUNT_MIN 		Number(20,4) NOT NULL,
	SUCC_MIGRATION_COUNT_MAX 		Number(20,4) NOT NULL,
	SUCC_MIGRATION_COUNT_STCNT 		varchar2(32) NOT NULL,
	FAILED_MIGRATION_COUNT_MIN 		Number(20,4) NOT NULL,
	FAILED_MIGRATION_COUNT_MAX 		Number(20,4) NOT NULL,
	FAILED_MIGRATION_COUNT_STCNT 	varchar2(32) NOT NULL,
	SHARDS_COUNT_MIN 				Number(20,4) NOT NULL,
	SHARDS_COUNT_MAX 				Number(20,4) NOT NULL,
	SHARDS_COUNT_STCNT 				varchar2(32) NOT NULL);
ALTER TABLE MongoExtCluAvaTest_TREND ADD constraint PK_MongoExtCluAvaTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE MongoExtCluAvaTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluAvaTest_THRESH(
	TRGT_HOST       			varchar2(32),
	PORT_NO         			varchar2(32),
	SITE_NAME       			varchar2(64),
	INFO            			varchar2(128),
	MSMT_HOST       			varchar2(32),
	MSMT_TIME_START 			date,
	MSMT_TIME_END   			date,
	IS_CLUSTER_MIN 				VARCHAR2(256) NOT NULL,
	IS_CLUSTER_MAX 				VARCHAR2(256) NOT NULL,
	CLUSTER_TYPE_MIN 			VARCHAR2(256) NOT NULL,
	CLUSTER_TYPE_MAX 			VARCHAR2(256) NOT NULL,
	IS_BALANCER_ENABLED_MIN 	VARCHAR2(256) NOT NULL,
	IS_BALANCER_ENABLED_MAX 	VARCHAR2(256) NOT NULL,
	IS_BALANCER_RUNNING_MIN 	VARCHAR2(256) NOT NULL,
	IS_BALANCER_RUNNING_MAX 	VARCHAR2(256) NOT NULL,
	FAIL_BALANCER_COUNT_MIN 	VARCHAR2(256) NOT NULL,
	FAIL_BALANCER_COUNT_MAX 	VARCHAR2(256) NOT NULL,
	SUCC_MIGRATION_COUNT_MIN 	VARCHAR2(256) NOT NULL,
	SUCC_MIGRATION_COUNT_MAX 	VARCHAR2(256) NOT NULL,
	FAILED_MIGRATION_COUNT_MIN 	VARCHAR2(256) NOT NULL,
	FAILED_MIGRATION_COUNT_MAX 	VARCHAR2(256) NOT NULL,
	SHARDS_COUNT_MIN 			VARCHAR2(256) NOT NULL,
	SHARDS_COUNT_MAX 			VARCHAR2(256) NOT NULL);
ALTER TABLE MongoExtCluAvaTest_THRESH ADD constraint PK_MongoExtCluAvaTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MongoExtCluAvaTest_THRESH ON MongoExtCluAvaTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MongoExtCluAvaTest ON MongoExtCluAvaTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MongoExtCluAvaTest ON MongoExtCluAvaTest_TREND (MSMT_TIME,PERIOD);



DROP TABLE MongoExtCluNetTest CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNetTest(
	TRGT_HOST       			VARCHAR2(32),
	PORT_NO         			VARCHAR2(32),
	SITE_NAME       			VARCHAR2(64),
	INFO            			VARCHAR2(128),
	MSMT_HOST       			VARCHAR2(32),
	MSMT_TIME       			date,
	AVAILABILITY 				Number(20,4) NOT NULL,
	AVAILABILITY_ST 			VARCHAR2(32) NOT NULL,
	RESPONSE_TIME 				Number(20,4) NOT NULL,
	RESPONSE_TIME_ST 			VARCHAR2(32) NOT NULL,
	DOCUMENT_AVAILABILITY 		Number(20,4) NOT NULL,
	DOCUMENT_AVAILABILITY_ST 	VARCHAR2(32) NOT NULL,
	DOC_RESPONSE_TIME 			Number(20,4) NOT NULL,
	DOC_RESPONSE_TIME_ST 		VARCHAR2(32) NOT NULL,
	NUMBER_OF_RECORDS 			Number(20,4) NOT NULL,
	NUMBER_OF_RECORDS_ST 		VARCHAR2(32) NOT NULL,
	CLUSTER_AVAILABILITY        Number(20,4) NOT NULL,
	CLUSTER_AVAILABILITY_ST 	VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_MongoExtCluNetTest ON MongoExtCluNetTest(MSMT_TIME);
ALTER TABLE MongoExtCluNetTest ADD constraint PK_MongoExtCluNetTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE MongoExtCluNetTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNetTest_TREND(
	TRGT_HOST       				VARCHAR2(32),
	PORT_NO         				VARCHAR2(32),
	SITE_NAME       				VARCHAR2(64),
	INFO            				VARCHAR2(128),
	MSMT_HOST       				VARCHAR2(32),
	MSMT_TIME       				date,
	PERIOD       					VARCHAR2(32),
	AVAILABILITY_MIN 				Number(20,4) NOT NULL,
	AVAILABILITY_MAX 				Number(20,4) NOT NULL,
	AVAILABILITY_STCNT 				VARCHAR2(32) NOT NULL,
	RESPONSE_TIME_MIN 				Number(20,4) NOT NULL,
	RESPONSE_TIME_MAX 				Number(20,4) NOT NULL,
	RESPONSE_TIME_STCNT 			VARCHAR2(32) NOT NULL,
	DOCUMENT_AVAILABILITY_MIN 		Number(20,4) NOT NULL,
	DOCUMENT_AVAILABILITY_MAX 		Number(20,4) NOT NULL,
	DOCUMENT_AVAILABILITY_STCNT 	VARCHAR2(32) NOT NULL,
	DOC_RESPONSE_TIME_MIN 			Number(20,4) NOT NULL,
	DOC_RESPONSE_TIME_MAX 			Number(20,4) NOT NULL,
	DOC_RESPONSE_TIME_STCNT 		VARCHAR2(32) NOT NULL,
	NUMBER_OF_RECORDS_MIN 			Number(20,4) NOT NULL,
	NUMBER_OF_RECORDS_MAX 			Number(20,4) NOT NULL,
	NUMBER_OF_RECORDS_STCNT 		VARCHAR2(32) NOT NULL,
	CLUSTER_AVAILABILITY_MIN 		Number(20,4) NOT NULL,
	CLUSTER_AVAILABILITY_MAX 		Number(20,4) NOT NULL,
	CLUSTER_AVAILABILITY_STCNT 		VARCHAR2(32) NOT NULL);
ALTER TABLE MongoExtCluNetTest_TREND ADD constraint PK_MongoExtCluNetTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE MongoExtCluNetTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluNetTest_THRESH(
	TRGT_HOST       				VARCHAR2(32),
	PORT_NO         				VARCHAR2(32),
	SITE_NAME       				VARCHAR2(64),
	INFO            				VARCHAR2(128),
	MSMT_HOST      					VARCHAR2(32),
	MSMT_TIME_START 				date,
	MSMT_TIME_END   				date,
	AVAILABILITY_MIN 				VARCHAR2(256) NOT NULL,
	AVAILABILITY_MAX 				VARCHAR2(256) NOT NULL,
	RESPONSE_TIME_MIN 				VARCHAR2(256) NOT NULL,
	RESPONSE_TIME_MAX 				VARCHAR2(256) NOT NULL,
	DOCUMENT_AVAILABILITY_MIN 		VARCHAR2(256) NOT NULL,
	DOCUMENT_AVAILABILITY_MAX 		VARCHAR2(256) NOT NULL,
	DOC_RESPONSE_TIME_MIN 			VARCHAR2(256) NOT NULL,
	DOC_RESPONSE_TIME_MAX 			VARCHAR2(256) NOT NULL,
	NUMBER_OF_RECORDS_MIN 			VARCHAR2(256) NOT NULL,
	NUMBER_OF_RECORDS_MAX 			VARCHAR2(256) NOT NULL,
	CLUSTER_AVAILABILITY_MIN 		VARCHAR2(256) NOT NULL,
	CLUSTER_AVAILABILITY_MAX 		VARCHAR2(256) NOT NULL);
ALTER TABLE MongoExtCluNetTest_THRESH ADD constraint PK_MongoExtCluNetTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MongoExtCluNetTest_THRESH ON MongoExtCluNetTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MongoExtCluNetTest ON MongoExtCluNetTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MongoExtCluNetTest ON MongoExtCluNetTest_TREND (MSMT_TIME,PERIOD);





DROP TABLE MongoExtCluConnTest CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluConnTest(
	TRGT_HOST       		VARCHAR2(32),
	PORT_NO        			VARCHAR2(32),
	SITE_NAME       		VARCHAR2(64),
	INFO            		VARCHAR2(128),
	MSMT_HOST       		VARCHAR2(32),
	MSMT_TIME       		date,
	TOTAL_CONNECTIONS 		Number(20,4) NOT NULL,
	TOTAL_CONNECTIONS_ST 	VARCHAR2(32) NOT NULL,
	USED_CONNECTIONS 		Number(20,4) NOT NULL,
	USED_CONNECTIONS_ST 	VARCHAR2(32) NOT NULL,
	FREE_CONNECTIONS 		Number(20,4) NOT NULL,
	FREE_CONNECTIONS_ST 	VARCHAR2(32) NOT NULL,
	CONNECTION_USAGE 		Number(20,4) NOT NULL,
	CONNECTION_USAGE_ST 	VARCHAR2(32) NOT NULL);
CREATE INDEX IDX_MongoExtCluConnTest ON MongoExtCluConnTest(MSMT_TIME);
ALTER TABLE MongoExtCluConnTest ADD constraint PK_MongoExtCluConnTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);

DROP TABLE MongoExtCluConnTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluConnTest_TREND(
	TRGT_HOST       			VARCHAR2(32),
	PORT_NO         			VARCHAR2(32),
	SITE_NAME       			VARCHAR2(64),
	INFO            			VARCHAR2(128),
	MSMT_HOST       			VARCHAR2(32),
	MSMT_TIME       			date,
	PERIOD       				VARCHAR2(32),
	TOTAL_CONNECTIONS_MIN 		Number(20,4) NOT NULL,
	TOTAL_CONNECTIONS_MAX 		Number(20,4) NOT NULL,
	TOTAL_CONNECTIONS_STCNT 	VARCHAR2(32) NOT NULL,
	USED_CONNECTIONS_MIN 		Number(20,4) NOT NULL,
	USED_CONNECTIONS_MAX 		Number(20,4) NOT NULL,
	USED_CONNECTIONS_STCNT 		VARCHAR2(32) NOT NULL,
	FREE_CONNECTIONS_MIN 		Number(20,4) NOT NULL,
	FREE_CONNECTIONS_MAX 		Number(20,4) NOT NULL,
	FREE_CONNECTIONS_STCNT 		VARCHAR2(32) NOT NULL,
	CONNECTION_USAGE_MIN 		Number(20,4) NOT NULL,
	CONNECTION_USAGE_MAX 		Number(20,4) NOT NULL,
	CONNECTION_USAGE_STCNT 		VARCHAR2(32) NOT NULL);
ALTER TABLE MongoExtCluConnTest_TREND ADD constraint PK_MongoExtCluConnTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);

DROP TABLE MongoExtCluConnTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE MongoExtCluConnTest_THRESH(
	TRGT_HOST       		VARCHAR2(32),
	PORT_NO         		VARCHAR2(32),
	SITE_NAME       		VARCHAR2(64),
	INFO            		VARCHAR2(128),
	MSMT_HOST       		VARCHAR2(32),
	MSMT_TIME_START 		date,
	MSMT_TIME_END   		date,
	TOTAL_CONNECTIONS_MIN 	VARCHAR2(256) NOT NULL,
	TOTAL_CONNECTIONS_MAX 	VARCHAR2(256) NOT NULL,
	USED_CONNECTIONS_MIN 	VARCHAR2(256) NOT NULL,
	USED_CONNECTIONS_MAX 	VARCHAR2(256) NOT NULL,
	FREE_CONNECTIONS_MIN 	VARCHAR2(256) NOT NULL,
	FREE_CONNECTIONS_MAX 	VARCHAR2(256) NOT NULL,
	CONNECTION_USAGE_MIN 	VARCHAR2(256) NOT NULL,
	CONNECTION_USAGE_MAX 	VARCHAR2(256) NOT NULL);
ALTER TABLE MongoExtCluConnTest_THRESH ADD constraint PK_MongoExtCluConnTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_MongoExtCluConnTest_THRESH ON MongoExtCluConnTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_MongoExtCluConnTest ON MongoExtCluConnTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_MongoExtCluConnTest ON MongoExtCluConnTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE OraRacDgTest CASCADE CONSTRAINTS;
CREATE TABLE OraRacDgTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
IS_DG_ENABLED Number(20,4) NOT NULL,
IS_DG_ENABLED_ST varchar2(32) NOT NULL,
DB_MODE Number(20,4) NOT NULL,
DB_MODE_ST varchar2(32) NOT NULL,
DB_OPEN_MODE Number(20,4) NOT NULL,
DB_OPEN_MODE_ST Varchar2(32) NOT NULL,
IS_SWITCHED Number(20,4) NOT NULL,
IS_SWITCHED_ST varchar2(32) NOT NULL,
NOOFPRIMARYNODES Number(20,4) NOT NULL,
NOOFPRIMARYNODES_ST varchar2(32) NOT NULL,
NOOFPHYSICALSTANDBYNODES Number(20,4) NOT NULL,
NOOFPHYSICALSTANDBYNODES_ST varchar2(32) NOT NULL,
NOOFLOGICALSTANDBYNODES Number(20,4) NOT NULL,
NOOFLOGICALSTANDBYNODES_ST varchar2(32) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES Number(20,4) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_ST varchar2(32) NOT NULL,
TOTALNOOFNODES Number(20,4) NOT NULL,
TOTALNOOFNODES_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_OraRacDgTest ON OraRacDgTest(MSMT_TIME);
ALTER TABLE OraRacDgTest ADD constraint PK_OraRacDgTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE OraRacDgTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE OraRacDgTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
IS_DG_ENABLED_MIN Number(20,4) NOT NULL,
IS_DG_ENABLED_MAX Number(20,4) NOT NULL,
IS_DG_ENABLED_STCNT varchar2(32) NOT NULL,
DB_MODE_MIN Number(20,4) NOT NULL,
DB_MODE_MAX Number(20,4) NOT NULL,
DB_MODE_STCNT varchar2(32) NOT NULL,
DB_OPEN_MODE_MIN Number(20,4) NOT NULL,
DB_OPEN_MODE_MAX Number(20,4) NOT NULL,
DB_OPEN_MODE_STCNT Varchar2(32) NOT NULL,
IS_SWITCHED_MIN Number(20,4) NOT NULL,
IS_SWITCHED_MAX Number(20,4) NOT NULL,
IS_SWITCHED_STCNT varchar2(32) NOT NULL,
NOOFPRIMARYNODES_MIN Number(20,4) NOT NULL,
NOOFPRIMARYNODES_MAX Number(20,4) NOT NULL,
NOOFPRIMARYNODES_STCNT varchar2(32) NOT NULL,
NOOFPHYSICALSTANDBYNODES_MIN Number(20,4) NOT NULL,
NOOFPHYSICALSTANDBYNODES_MAX Number(20,4) NOT NULL,
NOOFPHYSICALSTANDBYNODES_STCNT varchar2(32) NOT NULL,
NOOFLOGICALSTANDBYNODES_MIN Number(20,4) NOT NULL,
NOOFLOGICALSTANDBYNODES_MAX Number(20,4) NOT NULL,
NOOFLOGICALSTANDBYNODES_STCNT varchar2(32) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_MIN Number(20,4) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_MAX Number(20,4) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_STCNT varchar2(32) NOT NULL,
TOTALNOOFNODES_MIN Number(20,4) NOT NULL,
TOTALNOOFNODES_MAX Number(20,4) NOT NULL,
TOTALNOOFNODES_STCNT varchar2(32) NOT NULL);

ALTER TABLE OraRacDgTest_TREND ADD constraint PK_OraRacDgTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE OraRacDgTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE OraRacDgTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
IS_DG_ENABLED_MIN VARCHAR2(256) NOT NULL,
IS_DG_ENABLED_MAX VARCHAR2(256) NOT NULL,
DB_MODE_MIN VARCHAR2(256) NOT NULL,
DB_MODE_MAX VARCHAR2(256) NOT NULL,
DB_OPEN_MODE_MIN Varchar2(256) NOT NULL,
DB_OPEN_MODE_MAX Varchar2(256) NOT NULL,
IS_SWITCHED_MIN VARCHAR2(256) NOT NULL,
IS_SWITCHED_MAX VARCHAR2(256) NOT NULL,
NOOFPRIMARYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFPRIMARYNODES_MAX VARCHAR2(256) NOT NULL,
NOOFPHYSICALSTANDBYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFPHYSICALSTANDBYNODES_MAX VARCHAR2(256) NOT NULL,
NOOFLOGICALSTANDBYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFLOGICALSTANDBYNODES_MAX VARCHAR2(256) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_MIN VARCHAR2(256) NOT NULL,
NOOFSNAPSHOTSTANDBYNODES_MAX VARCHAR2(256) NOT NULL,
TOTALNOOFNODES_MIN VARCHAR2(256) NOT NULL,
TOTALNOOFNODES_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE OraRacDgTest_THRESH ADD constraint PK_OraRacDgTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_OraRacDgTest_THRESH ON OraRacDgTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_OraRacDgTest ON OraRacDgTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_OraRacDgTest ON OraRacDgTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE NutLoginTest_REPORT CASCADE CONSTRAINTS;
CREATE TABLE NutLoginTest_REPORT ( 
	SESSION_KEY VARCHAR2(128), 
	TRGT_HOST VARCHAR2(32),  
	PORT_NO VARCHAR2(32),  
	MSMT_TIME DATE NOT NULL,
	USERNAME VARCHAR2(128) NOT NULL,
	GUESTNAME VARCHAR2(128) NOT NULL,
	LOGIN_TIME DATE NOT NULL,
	DURATION NUMBER (20,4) NOT NULL,
	ACTIVE_TIME NUMBER (20,4) NOT NULL,
	IDLE_TIME NUMBER (20,4) NOT NULL,
	CLIENT_IP_ADDRESS VARCHAR2(128),
	CLIENT_NAME VARCHAR2(128),
	CLIENT_ID VARCHAR2(128),
	CLIENT_CATEGORY VARCHAR2(128),
	CTX_STATE VARCHAR2(128),
	HDX_DISPLAY_MODE VARCHAR2(128),
	HDX_ACTIVE_ENCODER VARCHAR2(128),
	HDX_PROTOCOL VARCHAR2(128),
	ENCRYPTION_LEVEL VARCHAR2(128),
	NETSCALER_RPTNAME VARCHAR2(128),
	NETSCALER_IP_ADDRESS VARCHAR2(128),
	XENAPP_IP_ADDRESS VARCHAR2(128),
	ENDPOINT_IP_ADDRESS VARCHAR2(128),
	COUNTRY_NAME VARCHAR2(128),
	COUNTRY_CODE VARCHAR2(128),
	REGION VARCHAR2(128),
	CITY VARCHAR2(128),
	LATITUDE VARCHAR2(128),
	LONGITUDE VARCHAR2(128),
	LOGON_DURATION NUMBER (20,4) NOT NULL,
	ACTUAL_LOGON_DURATION NUMBER (20,4) NOT NULL,
	PHYSICAL_CPU NUMBER (20,4) NOT NULL,
	MEM_USAGE NUMBER (20,4) NOT NULL,
	STORAGE_IOPS NUMBER (20,4) NOT NULL,
	IO_LATENCY NUMBER (20,4) NOT NULL,
	IO_BWIDTH NUMBER (20,4) NOT NULL,
	DISK_CAPACITY NUMBER (20,4) NOT NULL,
	NUM_RECEIVED NUMBER (20,4) NOT NULL,
	NUM_TRANSMITE NUMBER (20,4) NOT NULL,
	CLIENT_IPADDRESS VARCHAR2(64) NOT NULL,
	CLIENT_VERSION VARCHAR2(32) NOT NULL
);
CREATE INDEX IDX_NutLoginTest_REPORT ON NutLoginTest_REPORT(MSMT_TIME);
CREATE INDEX IDX1_NutLoginTest_REPORT ON NutLoginTest_REPORT (SESSION_KEY, TRGT_HOST);


DROP TABLE NutLoginTest_REPORT_INSIDE CASCADE CONSTRAINTS;
CREATE TABLE NutLoginTest_REPORT_INSIDE ( 
	SESSION_KEY VARCHAR2(128), 
	TRGT_HOST VARCHAR2(32),  
	PORT_NO VARCHAR2(32),  
	MSMT_TIME DATE NOT NULL,
	USERNAME VARCHAR2(128) NOT NULL,
	GUESTNAME VARCHAR2(128) NOT NULL,
	LOGIN_TIME DATE NOT NULL,
	DURATION NUMBER (20,4) NOT NULL,
	ACTIVE_TIME NUMBER (20,4) NOT NULL,
	IDLE_TIME NUMBER (20,4) NOT NULL,
	CLIENT_IP_ADDRESS VARCHAR2(128),
	CLIENT_NAME VARCHAR2(128),
	CLIENT_ID VARCHAR2(128),
	CLIENT_CATEGORY VARCHAR2(128),
	CTX_STATE VARCHAR2(128),
	HDX_DISPLAY_MODE VARCHAR2(128),
	HDX_ACTIVE_ENCODER VARCHAR2(128),
	HDX_PROTOCOL VARCHAR2(128),
	ENCRYPTION_LEVEL VARCHAR2(128),
	NETSCALER_RPTNAME VARCHAR2(128),
	NETSCALER_IP_ADDRESS VARCHAR2(128),
	XENAPP_IP_ADDRESS VARCHAR2(128),
	ENDPOINT_IP_ADDRESS VARCHAR2(128),
	COUNTRY_NAME VARCHAR2(128),
	COUNTRY_CODE VARCHAR2(128),
	REGION VARCHAR2(128),
	CITY VARCHAR2(128),
	LATITUDE VARCHAR2(128),
	LONGITUDE VARCHAR2(128),
	LOGON_DURATION NUMBER (20,4) NOT NULL,
	ACTUAL_LOGON_DURATION NUMBER (20,4) NOT NULL,
	CPU_UTIL NUMBER (20,4) NOT NULL,
	TOTAL_PHY_MEM NUMBER (20,4) NOT NULL,
	PHYSICAL_MEM_UTILZE NUMBER (20,4) NOT NULL,
	PERCENT_BUSY NUMBER (20,4) NOT NULL,
	PERCENT_DISK_READS NUMBER (20,4) NOT NULL,
	PERCENT_DISK_WRITES NUMBER (20,4) NOT NULL,
	INCOMING_TRAFFIC NUMBER (20,4) NOT NULL,
	OUTGOING_TRAFFIC NUMBER (20,4) NOT NULL,
	SESSION_AVG_LATENCY NUMBER (20,4) NOT NULL,
	LAST_RECD_LATENCY NUMBER (20,4) NOT NULL,
	ICA_NWLATENCY NUMBER (20,4) NOT NULL,
	INPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
	OUTPUT_SESSION_BANDWIDTH NUMBER (20,4) NOT NULL,
	BROWSER_COUNT NUMBER (20,4) NOT NULL,
	AVG_CPU_UTIL NUMBER (20,4) NOT NULL,
	MEM_USED NUMBER (20,4) NOT NULL,
	CLIENT_IPADDRESS VARCHAR2(64) NOT NULL,
	CLIENT_VERSION VARCHAR2(32) NOT NULL,
	INPUT_AUDIO_BANDWIDTH NUMBER (20,4) NOT NULL,
	OUTPUT_AUDIO_BANDWIDTH NUMBER (20,4) NOT NULL,
	INPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL,
	OUTPUT_SE_LINE_SPEED NUMBER (20,4) NOT NULL,
	SESSN_PCKT_LOSS NUMBER (20,4) NOT NULL,
	PKT_LOSS_PCT NUMBER (20,4) NOT NULL
);
CREATE INDEX IDX_NutLoginTest_RPT_INSIDE ON NutLoginTest_REPORT_INSIDE(MSMT_TIME);


DROP TABLE COMPONENT_HISTORY;
CREATE TABLE COMPONENT_HISTORY(
	EG_UID VARCHAR2(128) NOT NULL,
	COMP_TYPE VARCHAR2(32) NOT NULL,
	COMP_NAME VARCHAR2(128) NOT NULL,
	REM_AGENT VARCHAR2(32) NOT NULL,
	EXT_AGENT VARCHAR2(256) NOT NULL,
	MANAGED_TIME DATE NOT NULL,
	UNMANAGED_TIME DATE NOT NULL,
	MANAGED_BY VARCHAR2(32) NOT NULL,
	UNMANAGED_BY VARCHAR2(32) NOT NULL,
	USER_NAME BLOB NOT NULL,
	ZONE_NAME BLOB NOT NULL,
	SEGMENT_NAME BLOB NOT NULL,
	SERVICE_NAME BLOB NOT NULL,
	GROUP_NAME BLOB NOT NULL,
	MSMT_TIME DATE NOT NULL
);


DROP TABLE COMPONENT_INFO;
CREATE TABLE COMPONENT_INFO(
	EG_UID VARCHAR2(128) NOT NULL,
	COMP_TYPE VARCHAR2(32) NOT NULL,
	COMP_NAME VARCHAR2(64) NOT NULL,
	USER_NAME VARCHAR2(256) NOT NULL,
	COMP_STATUS VARCHAR2(16) NOT NULL,
	MSMT_TIME DATE NOT NULL
);

DROP TABLE ZoomServStatusTest CASCADE CONSTRAINTS;
CREATE TABLE ZoomServStatusTest( 
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
Status 			NUMBER(20,4) NOT NULL,
Status_ST 		varchar2(32) NOT NULL,
ScheduledMaintenance NUMBER(20,4) NOT NULL,
ScheduledMaintenance_ST varchar2(32) NOT NULL,
ResolvedIncidents NUMBER(20,4) NOT NULL,
ResolvedIncidents_ST varchar2(32) NOT NULL,
UnresolvedIncidents NUMBER(20,4) NOT NULL,
UnresolvedIncidents_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_ZoomServStatusTest ON ZoomServStatusTest(MSMT_TIME);
ALTER TABLE ZoomServStatusTest ADD constraint PK_ZoomServStatusTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE ZoomServStatusTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE ZoomServStatusTest_TREND(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME       date NOT NULL,
PERIOD       	varchar2(32) NOT NULL,
Status_MIN 		NUMBER(20,4) NOT NULL,
Status_MAX 		NUMBER(20,4) NOT NULL,
Status_STCNT 	varchar2(32) NOT NULL,
ScheduledMaintenance_MIN NUMBER(20,4) NOT NULL,
ScheduledMaintenance_MAX NUMBER(20,4) NOT NULL,
ScheduledMaintenance_STCNT varchar2(32) NOT NULL,
ResolvedIncidents_MIN NUMBER(20,4) NOT NULL,
ResolvedIncidents_MAX NUMBER(20,4) NOT NULL,
ResolvedIncidents_STCNT varchar2(32) NOT NULL,
UnresolvedIncidents_MIN NUMBER(20,4) NOT NULL,
UnresolvedIncidents_MAX NUMBER(20,4) NOT NULL,
UnresolvedIncidents_STCNT varchar2(32) NOT NULL);

ALTER TABLE ZoomServStatusTest_TREND ADD constraint PK_ZoomServStatusTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE ZoomServStatusTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE ZoomServStatusTest_THRESH(
TRGT_HOST       varchar2(32) NOT NULL,
PORT_NO         varchar2(32) NOT NULL,
SITE_NAME       varchar2(64) NOT NULL,
INFO            varchar2(128) NOT NULL,
MSMT_HOST       varchar2(32) NOT NULL,
MSMT_TIME_START date NOT NULL,
MSMT_TIME_END   date NOT NULL,
Status_MIN 		varchar2(256) NOT NULL,
Status_MAX 		varchar2(256) NOT NULL,
ScheduledMaintenance_MIN varchar2(256) NOT NULL,
ScheduledMaintenance_MAX varchar2(256) NOT NULL,
ResolvedIncidents_MIN varchar2(256) NOT NULL,
ResolvedIncidents_MAX varchar2(256) NOT NULL,
UnresolvedIncidents_MIN varchar2(256) NOT NULL,
UnresolvedIncidents_MAX varchar2(256) NOT NULL);

ALTER TABLE ZoomServStatusTest_THRESH ADD constraint PK_ZoomServStatusTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_ZoomServStatusTest_THRESH ON ZoomServStatusTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_ZoomServStatusTest ON ZoomServStatusTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_ZoomServStatusTest ON ZoomServStatusTest_TREND (MSMT_TIME,PERIOD);

DROP TABLE GenericLogonSimTest CASCADE CONSTRAINTS;
CREATE TABLE GenericLogonSimTest(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
AVAILABILITY Number(20,4) NOT NULL,
AVAILABILITY_ST varchar2(32) NOT NULL,
TOTAL_ACTIVITY_TIME Number(20,4) NOT NULL,
TOTAL_ACTIVITY_TIME_ST varchar2(32) NOT NULL,
NO_OF_ACTIVITIES Number(20,4) NOT NULL,
NO_OF_ACTIVITIES_ST varchar2(32) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES Number(20,4) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_ST varchar2(32) NOT NULL,
NO_OF_FAILURE_ACTIVITIES Number(20,4) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_ST varchar2(32) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY Number(20,4) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_ST varchar2(32) NOT NULL,
TOTAL_SIMULATION_TIME Number(20,4) NOT NULL,
TOTAL_SIMULATION_TIME_ST varchar2(32) NOT NULL,
IS_SCRIPT_RUNNING Number(20,4) NOT NULL,
IS_SCRIPT_RUNNING_ST varchar2(32) NOT NULL);

CREATE INDEX IDX_GenericLogonSimTest ON GenericLogonSimTest(MSMT_TIME);
ALTER TABLE GenericLogonSimTest ADD constraint PK_GenericLogonSimTest PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME);
DROP TABLE GenericLogonSimTest_TREND CASCADE CONSTRAINTS;
CREATE TABLE GenericLogonSimTest_TREND(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME       date,
PERIOD       	varchar2(32),
AVAILABILITY_MIN Number(20,4) NOT NULL,
AVAILABILITY_MAX Number(20,4) NOT NULL,
AVAILABILITY_STCNT varchar2(32) NOT NULL,
TOTAL_ACTIVITY_TIME_MIN Number(20,4) NOT NULL,
TOTAL_ACTIVITY_TIME_MAX Number(20,4) NOT NULL,
TOTAL_ACTIVITY_TIME_STCNT varchar2(32) NOT NULL,
NO_OF_ACTIVITIES_MIN Number(20,4) NOT NULL,
NO_OF_ACTIVITIES_MAX Number(20,4) NOT NULL,
NO_OF_ACTIVITIES_STCNT varchar2(32) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_MIN Number(20,4) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_MAX Number(20,4) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_STCNT varchar2(32) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_MIN Number(20,4) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_MAX Number(20,4) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_STCNT varchar2(32) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_MIN Number(20,4) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_MAX Number(20,4) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_STCNT varchar2(32) NOT NULL,
TOTAL_SIMULATION_TIME_MIN Number(20,4) NOT NULL,
TOTAL_SIMULATION_TIME_MAX Number(20,4) NOT NULL,
TOTAL_SIMULATION_TIME_STCNT varchar2(32) NOT NULL,
IS_SCRIPT_RUNNING_MIN Number(20,4) NOT NULL,
IS_SCRIPT_RUNNING_MAX Number(20,4) NOT NULL,
IS_SCRIPT_RUNNING_STCNT varchar2(32) NOT NULL);

ALTER TABLE GenericLogonSimTest_TREND ADD constraint PK_GenericLogonSimTest_TREND PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST, MSMT_TIME,PERIOD);
DROP TABLE GenericLogonSimTest_THRESH CASCADE CONSTRAINTS;
CREATE TABLE GenericLogonSimTest_THRESH(
TRGT_HOST       varchar2(32),
PORT_NO         varchar2(32),
SITE_NAME       varchar2(64),
INFO            varchar2(128),
MSMT_HOST       varchar2(32),
MSMT_TIME_START date,
MSMT_TIME_END   date,
AVAILABILITY_MIN VARCHAR2(256) NOT NULL,
AVAILABILITY_MAX VARCHAR2(256) NOT NULL,
TOTAL_ACTIVITY_TIME_MIN VARCHAR2(256) NOT NULL,
TOTAL_ACTIVITY_TIME_MAX VARCHAR2(256) NOT NULL,
NO_OF_ACTIVITIES_MIN VARCHAR2(256) NOT NULL,
NO_OF_ACTIVITIES_MAX VARCHAR2(256) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_MIN VARCHAR2(256) NOT NULL,
NO_OF_SUCCESS_ACTIVITIES_MAX VARCHAR2(256) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_MIN VARCHAR2(256) NOT NULL,
NO_OF_FAILURE_ACTIVITIES_MAX VARCHAR2(256) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_MIN VARCHAR2(256) NOT NULL,
PCT_OF_SUCCESS_ACTIVITY_MAX VARCHAR2(256) NOT NULL,
TOTAL_SIMULATION_TIME_MIN VARCHAR2(256) NOT NULL,
TOTAL_SIMULATION_TIME_MAX VARCHAR2(256) NOT NULL,
IS_SCRIPT_RUNNING_MIN VARCHAR2(256) NOT NULL,
IS_SCRIPT_RUNNING_MAX VARCHAR2(256) NOT NULL);

ALTER TABLE GenericLogonSimTest_THRESH ADD constraint PK_GenericLogonSimTest_THRESH PRIMARY KEY(TRGT_HOST,PORT_NO,SITE_NAME,INFO,MSMT_HOST,MSMT_TIME_START);
CREATE INDEX IDX_GenericLogonSimTest_THRESH ON GenericLogonSimTest_THRESH (MSMT_HOST,MSMT_TIME_START,MSMT_TIME_END);
CREATE INDEX IDX_TH_GenericLogonSimTest ON GenericLogonSimTest_THRESH (MSMT_TIME_START);
CREATE INDEX IDX_TR_GenericLogonSimTest ON GenericLogonSimTest_TREND (MSMT_TIME,PERIOD);


DROP TABLE ALARM_HISTORY_SUMMARY CASCADE CONSTRAINTS;
CREATE TABLE ALARM_HISTORY_SUMMARY
(
EVENT_ID varchar2(128) not null,
SITE_NAME varchar2(64) not null,
COMP_NAME varchar2(1024) not null,
COMP_TYPE varchar2(32) not null,
INFO varchar2(128) not null,
TEST_NAME varchar2(64) not null,
MEASURE varchar2(64) not null,
MSMT_HOST varchar2(32) not null,
EVENT_SEVERITY varchar2(16) not null,
START_TIME date not null,
END_TIME date,
DURATION number(16),
PCT_CRITICAL number(16),
PCT_MAJOR number(16),
PCT_MINOR number(16)
);

alter table alarm_history_summary add constraint PK_alarm_history_summary 
primary key (event_id,site_name,comp_name,comp_type,info,test_name,measure,msmt_host,event_severity,start_time);
ALTER TABLE alarm_history_summary ADD ALARM_ID NUMBER(18) DEFAULT 1 NOT NULL;
ALTER TABLE alarm_history_summary ADD ACCESS_EVENT_ID varchar2(64);
CREATE INDEX IDX2_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY(END_TIME,DURATION) ;
CREATE INDEX IDX3_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY ( EVENT_ID); 
CREATE INDEX IDX4_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY (COMP_NAME, START_TIME, END_TIME);
CREATE INDEX IDX5_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY (START_TIME);
CREATE INDEX IDX6_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY (END_TIME);
CREATE INDEX IDX7_ALARM_HISTORY_SUMMARY ON ALARM_HISTORY_SUMMARY (TEST_NAME, MEASURE, END_TIME,COMP_TYPE);
create index idx8_alarm_history_summary on alarm_history_summary (EVENT_SEVERITY,END_TIME,COMP_TYPE);
