Hi Dieter,
Its happenign all the time,
No, there is no error handling in the SP,
PFB the skeleton of the SP, Please give your thoughts on this
REPLACE PROCEDURE temp
(
IN Temp1 VARCHAR(50)
) SQL SECURITY OWNER
BEGIN
declare TEMp_cnt bigint;
Create Multiset Volatile table
TEMP_temp1 ,NO FALLBACK, NO JOURNAL, NO LOG
(
col1 BIGINT NOT NULL
)
PRIMARY INDEX(col1) on Commit Preserve Rows;
Create Multiset Volatile table
TEMP_temp2 ,NO FALLBACK, NO JOURNAL, NO LOG
(
col1 bigint not null,
/*30 columns*/
) PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_temp3, NO FALLBACK, NO JOURNAL, NO LOG
(
/*8 Columns */
)
PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_temp4 ,NO FALLBACK, NO JOURNAL, NO LOG
(
/*8 Columns */
)
PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_cntry, NO FALLBACK, NO JOURNAL, NO LOG
(
/*2 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
Create Multiset Volatile table TEMP_stte ,NO FALLBACK, NO JOURNAL, NO LOG
(
/*2 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
Create Multiset Volatile table TEMP_zip, NO FALLBACK, NO JOURNAL, NO LOG
(
/*3 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
insert into TEMP_cntry (id, country_cd)
select stmt;
insert into TEMP_stte (id, state_cd)
select stmt;
insert into TEMP_zip (id, cd1,cd2)
select stmt;
insert into TEMP_temp3
select stmt;
insert into TEMP_temp4
select stmt;
insert into TEMP_temp2
select stmt
from tb1 w
and some joins;
end;
And the problem is always with the temp3 & Temp2 table.
Hi Dieter,
Its happenign all the time,
No, there is no error handling in the SP,
PFB the skeleton of the SP, Please give your thoughts on this
REPLACE PROCEDURE temp
(
IN Temp1 VARCHAR(50)
) SQL SECURITY OWNER
BEGIN
declare TEMp_cnt bigint;
Create Multiset Volatile table
TEMP_temp1 ,NO FALLBACK, NO JOURNAL, NO LOG
(
col1 BIGINT NOT NULL
)
PRIMARY INDEX(col1) on Commit Preserve Rows;
Create Multiset Volatile table
TEMP_temp2 ,NO FALLBACK, NO JOURNAL, NO LOG
(
col1 bigint not null,
/*30 columns*/
) PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_temp3, NO FALLBACK, NO JOURNAL, NO LOG
(
/*8 Columns */
)
PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_temp4 ,NO FALLBACK, NO JOURNAL, NO LOG
(
/*8 Columns */
)
PRIMARY INDEX(col1) on commit preserve rows;
Create Multiset Volatile table TEMP_cntry, NO FALLBACK, NO JOURNAL, NO LOG
(
/*2 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
Create Multiset Volatile table TEMP_stte ,NO FALLBACK, NO JOURNAL, NO LOG
(
/*2 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
Create Multiset Volatile table TEMP_zip, NO FALLBACK, NO JOURNAL, NO LOG
(
/*3 Columns */
) PRIMARY INDEX(id) on commit preserve rows;
insert into TEMP_cntry (id, country_cd)
select stmt;
insert into TEMP_stte (id, state_cd)
select stmt;
insert into TEMP_zip (id, cd1,cd2)
select stmt;
insert into TEMP_temp3
select stmt;
insert into TEMP_temp4
select stmt;
insert into TEMP_temp2
select stmt
from tb1 w
and some joins;
end;
And the problem is always with the temp3 & Temp2 table.