Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Temporary table not dropped after terminate

$
0
0
Hi

I am working on DB2 9.7 and below is the DDL for temporary table

Code:

CREATE GLOBAL TEMPORARY TABLE SESSION.TEST_1 (TGT_EMP_SKEY BIGINT,TGT_WRKD_SHFT_SKEY BIGINT,TGT_TSITEM_SKEY BIGINT,MEAL_ORDER_FCT_PAYCD SMALLINT,MEAL_ORDER_TMISC SMALLINT,SHORT_MEAL_IND CHAR(1), LATE_MEAL_IND CHAR(1),MISSED_MEAL_IND CHAR(1),EXCP_DESC VARCHAR(11), CURRENT_BRK_CNT INTEGER,MEAL_ORDER INTEGER, LATEMEALEXCPHIST VARCHAR(200)) ON COMMIT PRESERVE ROWS NOT LOGGED
If I open a different session on another putty window and hit describe SESSION.TEST_1 the above definition shows up (but always has 0 records when queried from other session), Confused here as I was having an understanding that these tables are local only to the session.

More over the above with couple more are used in a stored procedure and each time before invoking the procedure even from another DB2 session I am forced to drop them.

Viewing all articles
Browse latest Browse all 13329

Trending Articles