Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 86

#!

/bin/sh

# Release 7.2.1.3-P3 [Build 49525]

nzsql -l > /tmp/LPGP_D_ABACUS_schema.sh_$$.sqlout


if egrep -iq '^ +LPGP_D_ABACUS +\|' /tmp/LPGP_D_ABACUS_schema.sh_$$.sqlout; then
echo "Database 'LPGP_D_ABACUS' already exists."
echo "Please verify the purpose and value of the existing database before
proceeding."
rm -f /tmp/LPGP_D_ABACUS_schema.sh_$$.sqlout
exit -1
fi
rm -f /tmp/LPGP_D_ABACUS_schema.sh_$$.sqlout

nzsql system -q <<-EOF

-- Create Database
\echo -n 'Creating "LPGP_D_ABACUS" database...'
create database LPGP_D_ABACUS;
\echo 'done.'

EOF

export NZ_ENCODING=utf8
nzsql LPGP_D_ABACUS -q <<-EOF

-- Number of Schemas = 2
-- Number of Tables = 25
-- Number of Views = 0
-- Number of Sequences = 0
-- Number of Synonyms = 0
-- Number of UDFs = 0
-- Number of Stored Procedures = 2
-- Number of UDAs = 0
-- Number of libraries = 0

-- Schema Definitions

\echo -n 'Creating Schemas...'

CREATE SCHEMA LPGP_D_ABACUS;


\echo -n .

CREATE SCHEMA LPGP_GOV;


\echo -n .

\echo 'done(2 Schemas).'

-- Table Definitions

\echo -n 'Creating Tables'


CREATE TABLE LPGP_D_ABACUS.ABACUS_KEY_DATA ( -- Number of Columns = 6
DOMAIN_NAME NATIONAL CHARACTER VARYING(125) not null,
MODULE_NAME NATIONAL CHARACTER VARYING(125) not null,
PERIOD NATIONAL CHARACTER VARYING(125) not null,
PARTNER_ID NATIONAL CHARACTER VARYING(125) not null,
INSTRUMENT_ID NATIONAL CHARACTER VARYING(125) not null,
POSITION_ID NATIONAL CHARACTER VARYING(125) not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGP_GOV.CTR_INPUT_FILE ( -- Number of Columns = 4


FILENAME NATIONAL CHARACTER VARYING(125) not null,
RECORD_ID INTEGER not null,
RECORD NATIONAL CHARACTER VARYING(3000),
FKEY_RUNID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGP_GOV.CTR_PARAMETER ( -- Number of Columns = 8


PKEY_PARAMETER_CODE CHARACTER VARYING(50) not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
PARAMETER_DESCRIPTION CHARACTER VARYING(500) not null,
PARAMETER_ALLOWED_VALUES CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null,
PRIMARY KEY ( PKEY_PARAMETER_CODE , TMD_EFFECTIVE_START_TIMESTAMP )
) DISTRIBUTE ON (PKEY_PARAMETER_CODE);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION ( -- Number of Columns = 9


PKEY_ERROR_DESCRIPTION_ID INTEGER not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
ERROR_DESCRIPTION CHARACTER VARYING(500) not null,
ERROR_SEVERITY CHARACTER(1) not null,
ERROR_POSSIBLE_ACTIONS CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null,
PRIMARY KEY ( PKEY_ERROR_DESCRIPTION_ID , TMD_EFFECTIVE_START_TIMESTAMP )
) DISTRIBUTE ON (PKEY_ERROR_DESCRIPTION_ID);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_PRC_ERROR_LOG ( -- Number of Columns = 7


FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_RUN_ID INTEGER not null,
FKEY_PRCERROR_ID INTEGER not null,
FKEY_ENTITY CHARACTER(4),
ETL_JOBNAME CHARACTER VARYING(500) not null,
ERROR_TIMESTAMP TIMESTAMP not null,
ERROR_DETAIL CHARACTER VARYING(500)
) DISTRIBUTE ON (FKEY_RUN_ID)
ORGANIZE ON (FKEY_RUN_ID,FKEY_PROCESS_ID,FKEY_PRCERROR_ID,FKEY_ENTITY);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_PROCESS ( -- Number of Columns = 8


PKEY_PROCESS_ID CHARACTER VARYING(50) not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
PROCESS_CANRUN_FLAG CHARACTER(1) not null,
PROCESS_DESCRIPTION CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null,
PRIMARY KEY ( PKEY_PROCESS_ID , TMD_EFFECTIVE_START_TIMESTAMP )
) DISTRIBUTE ON (PKEY_PROCESS_ID);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_PROCESS_PARAMETER ( -- Number of Columns = 9


FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_PARAMETER_CODE CHARACTER VARYING(50) not null,
PARAMETER_CONTEXT CHARACTER VARYING(50) not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
PARAMETER_VALUE CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null,
PRIMARY KEY ( FKEY_PROCESS_ID , FKEY_PARAMETER_CODE )
) DISTRIBUTE ON (FKEY_PROCESS_ID);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_RUN ( -- Number of Columns = 10


PKEY_RUN_ID INTEGER not null,
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_STATUS CHARACTER VARYING(10) not null,
RUN_COMPLETION_STATUS CHARACTER VARYING(20) not null,
RUN_CONTINUATION_STATUS CHARACTER VARYING(20) not null,
RUN_REPORTED_TIMESTAMP TIMESTAMP,
RUN_INVOCATION_SEQUENCE CHARACTER VARYING(500) not null,
RUN_INVOCATION_ID CHARACTER VARYING(500) not null,
PRIMARY KEY ( PKEY_RUN_ID )
) DISTRIBUTE ON (PKEY_RUN_ID)
ORGANIZE ON (PKEY_RUN_ID,FKEY_PROCESS_ID,RUN_START_TIMESTAMP,RUN_STATUS);
\echo -n .

CREATE TABLE LPGP_GOV.CTR_RUN_PARAMETER ( -- Number of Columns = 6


FKEY_RUN_ID INTEGER not null,
FKEY_PARAMETER_CODE CHARACTER VARYING(50) not null,
PARAMETER_CONTEXT CHARACTER VARYING(50) not null,
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
IS_A_STARTUP_PARAMETER CHARACTER(1) not null,
PARAMETER_VALUE CHARACTER VARYING(500) not null,
PRIMARY KEY ( FKEY_RUN_ID , FKEY_PARAMETER_CODE )
) DISTRIBUTE ON (FKEY_RUN_ID)
ORGANIZE ON (FKEY_RUN_ID,FKEY_PARAMETER_CODE,FKEY_PROCESS_ID);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_201710092018367914_21870_0 ( -- Number of


Columns = 7
PARENT_RUN_ID INTEGER not null,
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_21870_nzw_0_0_201710092018367904')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_2017101001571238850_109640_0 ( -- Number


of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_109640_nzw_0_0_2017101001571238840')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .
CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_2017101001571239745_109637_1 ( -- Number
of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_109637_nzw_0_1_2017101001571239735')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010031914560290_430_1 ( -- Number of


Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_430_nzw_0_1_20171010031914560271')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010031914561121_429_0 ( -- Number of


Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_429_nzw_0_0_20171010031914561106')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_2017101003192612504_815_1 ( -- Number of


Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_815_nzw_0_1_2017101003192612488')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_2017101003192620616_814_0 ( -- Number of


Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
STATUS CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_814_nzw_0_0_2017101003192620595')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010043455291421_27128_1 ( -- Number


of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null,
STATUS CHARACTER VARYING(20) not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_27128_nzw_0_1_20171010043455291407')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010043455299798_27129_0 ( -- Number


of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null,
STATUS CHARACTER VARYING(20) not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_27129_nzw_0_0_20171010043455299740')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010043505678316_27505_1 ( -- Number


of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null,
STATUS CHARACTER VARYING(20) not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_27505_nzw_0_1_20171010043505678301')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171010043505678808_27508_0 ( -- Number


of Columns = 7
DOMAIN_NAME CHARACTER VARYING(20) not null,
MODULE CHARACTER VARYING(20) not null,
RUN_START_TIMESTAMP TIMESTAMP not null,
RUN_END_TIMESTAMP TIMESTAMP,
RUN_ID INTEGER not null,
PARENT_RUN_ID INTEGER not null,
STATUS CHARACTER VARYING(20) not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_27508_nzw_0_0_20171010043505678798')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20171015150149999391_95777_0 ( -- Number


of Columns = 9
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_PARAMETER_CODE CHARACTER VARYING(50) not null,
PARAMETER_CONTEXT CHARACTER VARYING(50) not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
PARAMETER_VALUE CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_95777_nzw_0_0_20171015150149999380')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_201710151501502168_95776_1 ( -- Number of


Columns = 9
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_PARAMETER_CODE CHARACTER VARYING(50) not null,
PARAMETER_CONTEXT CHARACTER VARYING(50) not null,
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP not null,
PARAMETER_VALUE CHARACTER VARYING(500) not null,
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP not null,
TMD_CREATED_BY_ID CHARACTER VARYING(10) not null,
TMD_ENDED_BY_ID CHARACTER VARYING(10) not null,
TMD_VERSION_ID SMALLINT not null
) USING (
DATAOBJECT
('/tmp/lpgpds1003.emea.leaseplancorp.net_95776_nzw_0_1_201710151501502134')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/tmp'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_201811081055488105_74088_0 ( -- Number of


Columns = 4
FKEY_RUNID INTEGER not null,
FILENAME NATIONAL CHARACTER VARYING(125) not null,
RECORD_ID INTEGER not null,
RECORD NATIONAL CHARACTER VARYING(3000)
) USING (
DATAOBJECT
('/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/NAMEDPIPE/lpgpds1003.emea.leaseplanc
orp.net_74088_nzw_0_0_201811081055488071')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/LOGFILE'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20190524134658872987_24482_0 ( -- Number


of Columns = 7
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_RUN_ID INTEGER not null,
FKEY_PRCERROR_ID INTEGER not null,
FKEY_ENTITY CHARACTER(4),
ETL_JOBNAME CHARACTER VARYING(500) not null,
ERROR_TIMESTAMP TIMESTAMP not null,
ERROR_DETAIL CHARACTER VARYING(500)
) USING (
DATAOBJECT
('/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/NAMEDPIPE/lpgpds1003.emea.leaseplanc
orp.net_24482_nzw_0_0_20190524134658872958')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/LOGFILE'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

CREATE EXTERNAL TABLE LPGP_D_ABACUS.NZCC_20190524144408761561_43076_0 ( -- Number


of Columns = 7
FKEY_PROCESS_ID CHARACTER VARYING(50) not null,
FKEY_RUN_ID INTEGER not null,
FKEY_PRCERROR_ID INTEGER not null,
FKEY_ENTITY CHARACTER(4),
ETL_JOBNAME CHARACTER VARYING(500) not null,
ERROR_TIMESTAMP TIMESTAMP not null,
ERROR_DETAIL CHARACTER VARYING(500)
) USING (
DATAOBJECT
('/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/NAMEDPIPE/lpgpds1003.emea.leaseplanc
orp.net_43076_nzw_0_0_20190524144408761532')
BOOLSTYLE 'T_F'
COMPRESS 'FALSE'
CTRLCHARS 'true'
DATEDELIM '-'
DATESTYLE 'YMD'
DATETIMEDELIM ' '
DELIM '#'
ENCODING 'INTERNAL'
ESCAPE '\'
FORMAT 'TEXT'
LOGDIR '/data/ProjectData/LPGP_D_ABACUS_DATA/NETEZZA/LOGFILE'
MAXERRORS 1
MERIDIANDELIM ' '
NULLVALUE 'N'
QUOTEDVALUE 'NO'
RECORDDELIM '
'
REMOTESOURCE 'ODBC'
SOCKETBUFSIZE 8388608
TIMEDELIM ':'
TIMESTYLE '24HOUR'
);
\echo -n .

\echo 'done(25 tables).'


-- Stored Procedure Definitions

\echo -n 'Creating Stored Procedures'


CREATE OR REPLACE PROCEDURE LPGP_D_ABACUS.SP_ANWB_EXEC_IMMEDIATELY (TEXT) RETURNS
INTEGER
language nzplsql
EXECUTE AS CALLER
AS
BEGIN_PROC DECLARE sql ALIAS FOR \$1; BEGIN EXECUTE IMMEDIATE sql; RETURN 0; END;
END_PROC;

\echo -n .

CREATE OR REPLACE PROCEDURE LPGP_GOV.SP_GOV_CREATE_NEW_RUN (CHARACTER VARYING(50),


CHARACTER VARYING(500), CHARACTER VARYING(500), TIMESTAMP) RETURNS INTEGER
language nzplsql
EXECUTE AS OWNER
AS
BEGIN_PROC DECLARE p_FKEYProcessID ALIAS FOR \$1; p_RunInvocationSequence ALIAS FOR
\$2; p_RunInvocationID ALIAS FOR \$3; p_Timestamp ALIAS FOR \$4; v_RunID INTEGER;
BEGIN LOCK TABLE LPGP_GOV.CTR_RUN IN ACCESS EXCLUSIVE MODE; SELECT MAX(PKEY_RUN_ID)
+ 1 INTO v_RunID FROM LPGP_GOV.CTR_RUN; IF v_RunID IS NULL THEN v_RunID := 1; END
IF; RAISE NOTICE ' Run ID : %',v_RunID; INSERT INTO LPGP_GOV.CTR_RUN
( PKEY_RUN_ID , FKEY_PROCESS_ID , RUN_START_TIMESTAMP , RUN_STATUS ,
RUN_COMPLETION_STATUS , RUN_CONTINUATION_STATUS , RUN_INVOCATION_SEQUENCE ,
RUN_INVOCATION_ID ) VALUES (v_RunID , p_FKEYProcessID , p_Timestamp , 'IN
PROCESS' , 'IN PROCESS' , 'IN PROCESS' , p_RunInvocationSequence ,
p_RunInvocationID ); COMMIT; RETURN v_RunID; END; END_PROC;

\echo -n .

\echo 'done(2 Stored Procedures).'

-- Load Statistics.
-- Template of stats output, fields are separated by TABs.
-- relname, relrefs, reltuples, relpages, attnum, attname, datatype, attdispersion,
staop, stanullfrac, stacommonfrac, starecent, stacommonval, staloval, stahival
--
\echo -n 'Updating Statistics'

------------- LPGP_D_ABACUS.ABACUS_KEY_DATA -------------

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 1 DOMAIN_NAME


NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 RMRA
RMRA
6 6930 18296836 8948158
\echo -n .

UPDATE _t_class
SET
reltuples = 1155,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'RMRA
', 'RMRA
', 6, 6930
);

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 2 MODULE_NAME


NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85
lad_financial_lease
lad_financial_lease
21 24255 18296836 8948158

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'lad_financial_lease
', 'lad_financial_lease
', 21, 24255
);

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 3 PERIOD


NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 201903
201903
8 9240 18296836 8948158

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'201903
', '201903
', 8, 9240
);

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 4 PARTNER_ID


NATIONAL CHARACTER VARYING(125) 0.0588235 1022 0 0 85
12179378
12183908
10 11550 18296836 8948158

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0588235 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'12179378
', '12183908
', 10, 11550
);

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 5 INSTRUMENT_ID


NATIONAL CHARACTER VARYING(125) 0.000865801 1022 0 0 85
R_FL_117222921_B1
R_FL_83956540_B8
19 21913 18296836 8948158

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000865801 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'R_FL_117222921_B1
', 'R_FL_83956540_B8
', 19, 21913
);

-- LPGP_D_ABACUS.ABACUS_KEY_DATA f 0 1155 1 6 POSITION_ID


NATIONAL CHARACTER VARYING(125) 0.000865801 1022 0 0 85
R_FL_117222921_B1
R_FL_83956540_B8
19 21913 18296836 8948158

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000865801 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^ABACUS_KEY_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGP_D_ABACUS^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'R_FL_117222921_B1
', 'R_FL_83956540_B8
', 19, 21913
);

------------- LPGP_GOV.CTR_INPUT_FILE -------------

-- LPGP_GOV.CTR_INPUT_FILE f 0 318 1 1 FILENAME NATIONAL


CHARACTER VARYING(125) 1 1022 0 0 85
qnt_loans_deposits_gl_acf.dat
qnt_loans_deposits_gl_acf.dat
31 9858 14510169 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 318,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'qnt_loans_deposits_gl_acf.dat
', 'qnt_loans_deposits_gl_acf.dat
', 31, 9858
);

-- LPGP_GOV.CTR_INPUT_FILE f 0 318 1 2 RECORD_ID INTEGER


0.00628931 97 0 0 85 1 159
0 0 14510169 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00628931 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '159 ', 0, 0
);

-- LPGP_GOV.CTR_INPUT_FILE f 0 318 1 3 RECORD NATIONAL


CHARACTER VARYING(3000) 0.00581395 1022 0 0 85 10289,EUR,
(1452.03),04/07/2018,1.0000000000000,-1452.03,SE,A1441551,Mox Esp,ES,LPFIN,ICINV
FIX,A1441551Mox España

DEALS_deal_no,DEALS_ccy,Local_Accr_Amt,Report_Date,EUR_Rate,DEALS_accr_amt,Trans_Ty
pe,GL_account,CPARTY_code,CPARTY_country,ENTITY_name,SECTYPE_code,GLCodes
158 34689 14510169 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00581395 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'10289,EUR,(1452.03),04/07/2018,1.0000000000000,-1452.03,SE,A1441551,Mox
Esp,ES,LPFIN,ICINV FIX,A1441551Mox España
',
'DEALS_deal_no,DEALS_ccy,Local_Accr_Amt,Report_Date,EUR_Rate,DEALS_accr_amt,Trans_T
ype,GL_account,CPARTY_code,CPARTY_country,ENTITY_name,SECTYPE_code,GLCodes
', 158, 34689
);

-- LPGP_GOV.CTR_INPUT_FILE f 0 318 1 4 FKEY_RUNID INTEGER


0.5 97 0 0 85 11 22
0 0 14510169 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_INPUT_FILE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'11 ', '22 ', 0, 0
);

------------- LPGP_GOV.CTR_PARAMETER -------------

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 1 PKEY_PARAMETER_CODE
CHARACTER VARYING(50) 1 1066 0 0 85 MAIL_TO
MAIL_TO
9 9 8955269 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'MAIL_TO
', 'MAIL_TO
', 9, 9
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 2
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2017-09-28 15:34:22
2017-09-28 15:34:22
0 0 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-09-28 15:34:22
', '2017-09-28 15:34:22
', 0, 0
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 3 PARAMETER_DESCRIPTION
CHARACTER VARYING(500) 1 1066 0 0 85 Mail recipient(s)
delimited by comma''s
Mail recipient(s) delimited by comma''s
40 40 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Mail recipient(s) delimited by comma''s
', 'Mail recipient(s) delimited by comma''s
', 40, 40
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 4 PARAMETER_ALLOWED_VALUES
CHARACTER VARYING(500) 1 1066 0 0 85 Any valid email
addresses
Any valid email addresses
27 27 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Any valid email addresses
', 'Any valid email addresses
', 27, 27
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 5
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 6 TMD_CREATED_BY_ID
CHARACTER VARYING(10) 1 1066 0 0 85 DIEPJ
DIEPJ
7 7 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'DIEPJ
', 'DIEPJ
', 7, 7
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 7 TMD_ENDED_BY_ID
CHARACTER VARYING(10) 1 1066 0 0 85

2 2 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 2
);

-- LPGP_GOV.CTR_PARAMETER f 0 1 1 8 TMD_VERSION_ID
SMALLINT 1 95 0 0 85 1
1 0 0 8955269 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PARAMETER^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
8, 95, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '1 ', 0, 0
);

------------- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION -------------

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 1
PKEY_ERROR_DESCRIPTION_ID INTEGER 0.0769231 97 0 0 85
1003 1025 0 0
8955283 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 13,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1003 ', '1025 ', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 2
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2017-09-28 15:38:26
2017-09-28 15:38:26
0 0 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-09-28 15:38:26
', '2017-09-28 15:38:26
', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 3
ERROR_DESCRIPTION CHARACTER VARYING(500) 0.0833333 1066 0 0 85
Error creating new run
Run id not found in CTR_RUN table
57 471 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error creating new run
', 'Run id not found in CTR_RUN table
', 57, 471
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 4
ERROR_SEVERITY CHARACTER(1) 0.5 1058 0 0 85 E
W
0 0 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'E
', 'W
', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 5
ERROR_POSSIBLE_ACTIONS CHARACTER VARYING(500) 0.5 1066 0 0 85

Review DataStage job design


29 53 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Review DataStage job design
', 29, 53
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 6
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 7
TMD_CREATED_BY_ID CHARACTER VARYING(10) 1 1066 0 0 85
DIEPJ
DIEPJ
7 91 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'DIEPJ
', 'DIEPJ
', 7, 91
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 8
TMD_ENDED_BY_ID CHARACTER VARYING(10) 1 1066 0 0 85

2 26 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
8, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 26
);

-- LPGP_GOV.CTR_PRC_ERROR_DESCRIPTION f 0 13 1 9
TMD_VERSION_ID SMALLINT 1 95 0 0 85 1
1 0 0 8955283 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_DESCRIPTION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
9, 95, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '1 ', 0, 0
);

------------- LPGP_GOV.CTR_PRC_ERROR_LOG -------------

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 1 FKEY_PROCESS_ID
CHARACTER VARYING(50) 0.0526316 1066 0 0 85
S_GEN_Master_Anacredit_ETL
S_QNT_LOANSANDDEPOSITS
41 1253 8955298 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 49,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0526316 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_GEN_Master_Anacredit_ETL
', 'S_QNT_LOANSANDDEPOSITS
', 41, 1253
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 2 FKEY_RUN_ID INTEGER


0.04 97 0 0 85 0 210
0 0 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.04 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '210 ', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 3 FKEY_PRCERROR_ID
INTEGER 0.142857 97 0 0 85 1001
1239 0 0 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1001 ', '1239 ', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 4 FKEY_ENTITY CHARACTER(4)


1 1058 0 0 85

0 0 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 5 ETL_JOBNAME CHARACTER


VARYING(500) 0.0625 1066 0 0 85
S_QNT_LOANSANDDEPOSITS
41 1398 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'S_QNT_LOANSANDDEPOSITS
', 41, 1398
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 6 ERROR_TIMESTAMP
TIMESTAMP 0.0204082 1322 0 0 85 2017-09-28 15:42:03
2022-01-18 13:06:44
0 0 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-09-28 15:42:03
', '2022-01-18 13:06:44
', 0, 0
);

-- LPGP_GOV.CTR_PRC_ERROR_LOG f 0 49 1 7 ERROR_DETAIL
CHARACTER VARYING(500) 0.0625 1066 0 0 85
test hans
245 2029 8955298 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PRC_ERROR_LOG^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'test hans
', 245, 2029
);

------------- LPGP_GOV.CTR_PROCESS -------------

-- LPGP_GOV.CTR_PROCESS f 0 10 1 1 PKEY_PROCESS_ID CHARACTER


VARYING(50) 0.1 1066 0 0 85 S_GEN_Master_Anacredit_ETL
S_GEN_Master_Template12
41 312 8955312 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 10,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_GEN_Master_Anacredit_ETL
', 'S_GEN_Master_Template12
', 41, 312
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 2 TMD_EFFECTIVE_START_TIMESTAMP
TIMESTAMP 0.2 1322 0 0 85 2018-09-25 00:00:00
2019-04-23 00:00:00
0 0 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-09-25 00:00:00
', '2019-04-23 00:00:00
', 0, 0
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 3 PROCESS_CANRUN_FLAG
CHARACTER(1) 1 1058 0 0 85 Y
Y
0 0 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Y
', 'Y
', 0, 0
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 4 PROCESS_DESCRIPTION
CHARACTER VARYING(500) 0.142857 1066 0 0 85 Abacus ETL
is a Master Workflow that triggers the Regulatory Reporting ETL process flows that
culminate into XML files in the target folder.
Template12: is a Master Workflow that triggers jobs to extract RMRA and Risk
data and to create the template 12 required for manual upload into Abacus. This is
an essential first step in the Abacus 360 Regulatory Reporting.
225 1473 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Abacus ETL is a Master Workflow that triggers the Regulatory Reporting ETL
process flows that culminate into XML files in the target folder.
', 'Template12: is a Master Workflow that triggers jobs to extract RMRA and Risk
data and to create the template 12 required for manual upload into Abacus. This is
an essential first step in the Abacus 360 Regulatory Reporting.
', 225, 1473
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 5 TMD_EFFECTIVE_END_TIMESTAMP
TIMESTAMP 0.333333 1322 0 0 85 2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 6 TMD_CREATED_BY_ID CHARACTER


VARYING(10) 0.333333 1066 0 0 85 ADMBOEKH
lingv
10 76 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'ADMBOEKH
', 'lingv
', 10, 76
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 7 TMD_ENDED_BY_ID CHARACTER


VARYING(10) 1 1066 0 0 85

2 20 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 20
);

-- LPGP_GOV.CTR_PROCESS f 0 10 1 8 TMD_VERSION_ID SMALLINT


1 95 0 0 85 1 1
0 0 8955312 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
8, 95, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '1 ', 0, 0
);

------------- LPGP_GOV.CTR_PROCESS_PARAMETER -------------

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 1 FKEY_PROCESS_ID
CHARACTER VARYING(50) 0.0909091 1066 0 0 85 S_DAILY
S_GEN_Master_Template12
41 1569 8955326 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 51,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_DAILY
', 'S_GEN_Master_Template12
', 41, 1569
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 2
FKEY_PARAMETER_CODE CHARACTER VARYING(50) 0.2 1066 0 0 85
BUSINESS_MAIL_TO
MAIL_TO
29 889 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'BUSINESS_MAIL_TO
', 'MAIL_TO
', 29, 889
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 3 PARAMETER_CONTEXT
CHARACTER VARYING(50) 1 1066 0 0 85

2 102 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 102
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 4
TMD_EFFECTIVE_START_TIMESTAMP TIMESTAMP 0.1 1322 0 0 85
2018-09-25 00:00:00
2022-06-14 16:00:11
0 0 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-09-25 00:00:00
', '2022-06-14 16:00:11
', 0, 0
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 5 PARAMETER_VALUE
CHARACTER VARYING(500) 0.0416667 1066 0 0 85 Abacus360-
ETL@noreply.leaseplan.local
lpc-bi@leaseplancorp.com
62 1891 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0416667 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Abacus360-ETL@noreply.leaseplan.local
', 'lpc-bi@leaseplancorp.com
', 62, 1891
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 6
TMD_EFFECTIVE_END_TIMESTAMP TIMESTAMP 0.25 1322 0 0 85
2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 7 TMD_CREATED_BY_ID
CHARACTER VARYING(10) 0.25 1066 0 0 85 ADMBOEKH
LINGV
10 387 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'ADMBOEKH
', 'LINGV
', 10, 387
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 8 TMD_ENDED_BY_ID
CHARACTER VARYING(10) 1 1066 0 0 85

2 102 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
8, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 102
);

-- LPGP_GOV.CTR_PROCESS_PARAMETER f 0 51 1 9 TMD_VERSION_ID
SMALLINT 1 95 0 0 85 1
1 0 0 8955326 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_PROCESS_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
9, 95, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '1 ', 0, 0
);

------------- LPGP_GOV.CTR_RUN -------------

-- LPGP_GOV.CTR_RUN f 0 593 6 1 PKEY_RUN_ID INTEGER -1


97 0 0 85 1 593
0 0 8955341 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 593,
relrefs = 0,
relpages = 6
WHERE
oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '593 ', 0, 0
);

-- LPGP_GOV.CTR_RUN f 0 593 6 2 FKEY_PROCESS_ID CHARACTER


VARYING(50) 0.0909091 1066 0 0 85 S_GEN_Master_Anacredit_ETL
S_GEN_PreETL
41 18318 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_GEN_Master_Anacredit_ETL
', 'S_GEN_PreETL
', 41, 18318
);
-- LPGP_GOV.CTR_RUN f 0 593 6 3 RUN_START_TIMESTAMP
TIMESTAMP 0.00168634 1322 0 0 85 2018-06-14 11:43:16
2022-06-23 16:30:56
0 0 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00168634 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-06-14 11:43:16
', '2022-06-23 16:30:56
', 0, 0
);

-- LPGP_GOV.CTR_RUN f 0 593 6 4 RUN_END_TIMESTAMP TIMESTAMP


0.00175131 1322 0.0370995 0 85 2018-06-14 11:43:22
2022-06-23 16:55:14
0 0 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00175131 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1322, (CAST(0.0370995 as float)),
(CAST(0 as float)), '85', '',
'2018-06-14 11:43:22
', '2022-06-23 16:55:14
', 0, 0
);

-- LPGP_GOV.CTR_RUN f 0 593 6 5 RUN_STATUS CHARACTER


VARYING(10) 0.5 1066 0 0 85 COMPLETED
IN PROCESS
12 6545 8955341 8955268
UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'COMPLETED
', 'IN PROCESS
', 12, 6545
);

-- LPGP_GOV.CTR_RUN f 0 593 6 6 RUN_COMPLETION_STATUS


CHARACTER VARYING(20) 0.333333 1066 0 0 85 ABORT
OK
12 2899 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'ABORT
', 'OK
', 12, 2899
);

-- LPGP_GOV.CTR_RUN f 0 593 6 7 RUN_CONTINUATION_STATUS


CHARACTER VARYING(20) 0.333333 1066 0 0 85 ABORT
OK
12 2899 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
7, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'ABORT
', 'OK
', 12, 2899
);

-- LPGP_GOV.CTR_RUN f 0 593 6 8 RUN_REPORTED_TIMESTAMP


TIMESTAMP 0.00854701 1322 0.802698 0 85 2018-06-14
11:43:34
2022-05-31 17:23:57
0 0 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00854701 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
8, 1322, (CAST(0.802698 as float)),
(CAST(0 as float)), '85', '',
'2018-06-14 11:43:34
', '2022-05-31 17:23:57
', 0, 0
);

-- LPGP_GOV.CTR_RUN f 0 593 6 9 RUN_INVOCATION_SEQUENCE


CHARACTER VARYING(500) 0.0769231 1066 0 0 85
S_GEN_Master_Anacredit_ETL
S_GEN_PreETL
41 18354 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
9, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_GEN_Master_Anacredit_ETL
', 'S_GEN_PreETL
', 41, 18354
);

-- LPGP_GOV.CTR_RUN f 0 593 6 10 RUN_INVOCATION_ID CHARACTER


VARYING(500) 0.5 1066 0 0 85
TESTHB
8 1192 8955341 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
10, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'TESTHB
', 8, 1192
);

------------- LPGP_GOV.CTR_RUN_PARAMETER -------------

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 1 FKEY_RUN_ID INTEGER


0.00169779 97 0 0 85 1 593
0 0 8955360 8955268
\echo -n .

UPDATE _t_class
SET
reltuples = 3728,
relrefs = 0,
relpages = 19
WHERE
oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00169779 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '593 ', 0, 0
);

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 2 FKEY_PARAMETER_CODE


CHARACTER VARYING(50) 0.125 1066 0 0 85 BUSINESS_MAIL_TO
PERIOD_ID
29 59377 8955360 8955268
UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
2, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'BUSINESS_MAIL_TO
', 'PERIOD_ID
', 29, 59377
);

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 3 PARAMETER_CONTEXT


CHARACTER VARYING(50) 0.0227273 1066 0 0 85
yyyymm
33 21525 8955360 8955268
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0227273 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'yyyymm
', 33, 21525
);

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 4 FKEY_PROCESS_ID


CHARACTER VARYING(50) 0.0909091 1066 0 0 85
S_GEN_Master_Anacredit_ETL
S_GEN_PreETL
41 114465 8955360 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
4, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'S_GEN_Master_Anacredit_ETL
', 'S_GEN_PreETL
', 41, 114465
);

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 5 IS_A_STARTUP_PARAMETER


CHARACTER(1) 0.5 1058 0 0 85 N
Y
0 0 8955360 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGP_GOV.CTR_RUN_PARAMETER f 0 3728 19 6 PARAMETER_VALUE


CHARACTER VARYING(500) 0.012987 1066 0 0 85 201803
yyyymm
62 115719 8955360 8955268

UPDATE _t_attribute
SET
attdispersion = (CAST (0.012987 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CTR_RUN_PARAMETER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname = ^LPGP_GOV^
and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ABACUS^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'201803
', 'yyyymm
', 62, 115719
);
\echo 'done.'

-- Environment Settings:
set SPU_COUNT = 120;
set HOST_CPU_SPEED = 20;
set SPU_AVAIL_MEMORY = 262144;
set HOST_AVAIL_MEMORY = 66080696;
set SPU_DISK_READ = 100;
set SPU_DISK_WRITE = 25;
set HOST_DISK_READ = 200;
set HOST_DISK_WRITE = 155;
set SPU_TO_HOST_SEND = 1382.6;
set SPU_TO_SPU_BROADCAST = 92;
set HOST_TO_SPU_BROADCAST = 92;
set SPU_TO_SPU_DISTRIBUTE = 2760;
set HOST_TO_SPU_DISTRIBUTE = 1565.21;
set SPU_FABRIC_JOIN_COST = 30;
set SPU_FABRIC1_JOIN_COST = 20;
set CANONICAL_QUALS_HINT = 0;
set FACTREL_MOVEMENT_COST = 1200;
set ENABLE_ABT = 0;
set ENABLE_SEQSCAN = 1;
set ENABLE_INDEXSCAN = 1;
set ENABLE_MVIEW_SCAN = 1;
set ENABLE_MVIEW_INDEXSCAN = 1;
set ENABLE_ALTBASERELSCAN = 1;
set ENABLE_CHUNKRELSCAN = 1;
set ENABLE_THINTABLE = 0;
set ENABLE_MVIEW = 1;
set ENABLE_TIDSCAN = 1;
set ENABLE_SORT = 1;
set ENABLE_NESTLOOP = 1;
set ENABLE_MERGEJOIN = 1;
set ENABLE_HASHJOIN = 1;
set ENABLE_FPGAJOIN = 0;
set ENABLE_LEFT_EXISTSJOIN = 1;
set ENABLE_RIGHT_EXISTSJOIN = 1;
set ENABLE_LEFT_OUTERJOIN = 1;
set ENABLE_RIGHT_OUTERJOIN = 1;
set ENABLE_PROJECTEXPR = 1;
set ENABLE_NDE_OPTIMIZER = 1;
set ENABLE_PUSHDOWN_RELS = 0;
set ENABLE_STAR_PLANNER = 1;
set NUM_STAR_PLANNER_RELS = 8;
set ENABLE_ADAPTIVE_PLANNER = 0;
set ENABLE_AGGKEY_DISTINCT_AGG = 1;
set ENABLE_GROUP_DISTINCT_AGG = 1;
set NUM_DISTINCTAGG_GROUPS = 1000;
set ENABLE_PRINT_PLAN_TEXT = 0;
set ENABLE_PRINT_PLAN_HTML = 0;
set ENABLE_UNIQUE_DISTINCTION = 0;
set ENABLE_INLIST_JOIN = 1;
set INLIST_THRESHOLD = 5;
set ENABLE_TRANSFORM_JOINEXPR = 1;
set ENABLE_TRANSFORM_OUTERJOIN = 1;
set ENABLE_ONCLAUSE_TRANSITIVITY = 1;
set ENABLE_FACTREL_PLANNER = 1;
set FACTREL_SIZE_THRESHOLD = 1e+08;
set FACTREL_LIST = '';
set ENABLE_AGGKEY2_DISTINCT_PLANNER = 1;
set ENABLE_TRANSFORM_SETOPS = 1;
set ENABLE_TRANSFORM_DISTINCT = 1;
set ENABLE_TRANSFORM_NULL_EQUALITY = 1;
set ENABLE_ORDERBY_OPTIMIZATION = 1;
set ENABLE_SNOWFLAKE_PLANNER = 1;
set ENABLE_EXPRESS_DISPERSION = 1;
set ENABLE_SEQUENCE_CACHESIZE = 0;
set ENABLE_RESTORE_MODE = 0;
set ENABLE_JIT_STATS = 1;
set FORCE_JIT_STATS = 0;
set ENABLE_JITSTATS_ON_MVIEWS = 1;
set JIT_STATS_MIN_ROWS = 5000000;
set STATS_COL_GRP_LIMIT = 10;
set EXPRESS_STATS_COL_GRP_LIMIT = 30;
set CTAS_AUTOSTATS_MIN_ROWS = 10000;
set DISPERSION_SPU_MAX_MEMPCT = 4;
set DISTQUALS_MAX_COST = 100;
set DISTQUALS_MAX_JOINS = 2;
set DISTQUALS_MAX_SUBQUERY_LEVELS = 2;
set ENABLE_2PHASE_PLANNER = 1;
set ENABLE_COMPACT_SUBQ_TLIST = 1;
set ENABLE_DISPERSION_ADJUSTMENT = 1;
set ENABLE_DSID_JOINS = 0;
set ENABLE_EXISTS_SELECTIVITY = 1;
set ENABLE_FILTER_NULLS = 1;
set ENABLE_FULLPARTITION_REWRITE = 1;
set ENABLE_JIT_DISPERSION = 1;
set ENABLE_JIT_JOIN = 1;
set ENABLE_SIMPLE_JIT_AVOIDANCE = 1;
set SIMPLE_JIT_AVOIDANCE_EXTRA_CHECK = 1;
set ENABLE_IGNORE_SUSPECT_JIT = 1;
set SUSPECT_JIT_MIN_PAGES = 160;
set ENABLE_ORDERBY_IN_INSERT = 1;
set ENABLE_ORLIST_MERGE = 1;
set ENABLE_PROJECT_JOINEXPR = 1;
set ENABLE_PUSHDOWN_EXISTS_TO_SUBQUERY = 1;
set ENABLE_PUSHDOWN_EXISTS_TO_SUBQUERY_LOG = 0;
set ENABLE_PUSHDOWN_RELS_GROUPBY = 1;
set ENABLE_RANDOM_TABLE_DISTRIBUTE = 1;
set ENABLE_SMALL_CTAS_AUTOSTATS = 1;
set ENABLE_SPECIALS_IN_GENSTATS = 0;
set JIT_SAMPLE_GROWTH_POWER = 0.4;
set JIT_DISP_MIN_ROWS = 5e+08;
set PREBROADCAST_LIMIT = 10;
set PREBROADCAST_ROWS_PER_UNIQUE_VAL = 3;
set SAMPLED_STATS_COL_GRP_LIMIT = 50;
set MAX_STATS_COL_GRP_LIMIT = 100;
set SAMPLED_STATS_MIN_ROWS = 0;
set SCHEDULE_JIT_IN_LONG_QUEUE = 0;
set SNOWFLAKE_GROUP_SIZE = 120;
set SNOWFLAKE_MIN_FACT_SIZE = 1000000;
set SNOWFLAKE_MIN_RATIO = 10;
set SPU_FABRIC2_JOIN_COST = 0;
set STATS_COLUMN_MEMORY_LIMIT = 2048;
set WINDOWAGG_METHOD = 0;
set FORCE_PG_EVAL = 0;
set ROWSETLIMIT_LEVEL = 1;
set CPU_OPERATOR_COST = 0.0005;
set CPU_TUPLE_COST = 5e-05;
set AVG_HASH_COLLISIONS = 4;
set HASH_COLLISION_SAMEAS_DISTRIBUTE = 1;
set HASH_COLLISION_SAMEAS_DISTRIBUTE_MIN_ROWS = 1e+06;
set TRANSFORM_EXPR_SUBLINK_TO_EXISTS_JOIN = 0;
set DBHJ_MEMORY_THRESHOLD = 1;
set ENABLE_ALT_DBHJ_COSTS = 0;
set ENABLE_2PHASE_COST_ADJ = 1;
set ENABLE_CAP_JOIN_NDV = 0;
set ENABLE_CAP_JOIN_SEL = 1;
set ENABLE_CALC_COMPLEX_COLWIDTH = 1;
set ENABLE_USE_SUBPLAN_AVGWIDTH = 1;
set FACTREL_TAG_METHOD = 0;
set FACTREL_LIST_SUBQUERY_SCOPE = 1;
set SWAP_SMALL_MB_THRESH = 10;
set FORCE_TRANSFORM_WINDOWAGG_LAST_VALUE = 0;
set ENABLE_OPT_DELUPD_RESTRICTS = 1;
set COST_JOIN_AS_MULTICOL_HASH = 0;
set DISABLE_GENC_GCC_OPTIMIZATION = 0;
set PROPAGATE_IMPLIED_ENUMERATED_OR_CLAUSES = 1;
set AVOID_COST_MAGNITUDE = 5;
set ENABLE_SP_ESCAPE_QUOTE_PROCESSING = 1;
set ENABLE_NOTIN_OPTIMIZATION = 1;
set ENABLE_NOTIN_TRANSFORMATION = 0;
set ENABLE_OUTERJOIN_EXISTS_PUSHDOWN = 1;
set ENABLE_UNION_STRING_NONSTRING_TYPES = 0;
set ENABLE_RANGECLAUSE_SEL_OPT = 1;
set ENABLE_PB_HASHJOINABLE_RESTRICT = 1;
set ENABLE_EXTEND_MAX_SEGMENT_SIZE = 1;
set EXTEND_MAX_SEGMENT_SIZE = 20971520;
set ENABLE_SETOP_DISPERSION_ADJ = 1;
set ENABLE_DATASLICE_FILTER = 0;
set VALIDATE_DATASLICE_FILTER = 0;
set ENABLE_USERTYPECAST_FOR_VIEW = 1;
set ENABLE_RANDOM_DIST_CHUNK = 1;
set ENABLE_HOST_CHUNK_DIST = 0;
set ENABLE_RST_PARALLEL_INSERT = 0;
set ENABLE_PULLUP_NOTEXISTS_SUBLINK = 1;
set ENABLE_USERNAME_DOMAIN = 0;
set FIXUP_VAR_INSIDE_VAR_CLAUSE = 1;
set ENABLE_DATETIME_MERIDIAN_DELIM = 0;
set MAX_TRANSFORM_SETOPS = 0;

EOF

You might also like