If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Temp table (reset.tcuabu2) already exists in session.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-03, 03:50
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Temp table (reset.tcuabu2) already exists in session.

Hi,

I am runing a program that create a temp table, and to go out of the program, when I runing the program the next time the program give me the followind error:

Program error at "prcuabul.4gl", line number 650.
SQL statement error number -958.
Temp table (reset.tcuabu2) already exists in session.


Thank you.
Reply With Quote
  #2 (permalink)  
Old 02-21-03, 04:29
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
Are you sure that the program disconnects from
the databaseserver, so that the session is
destroyed ?

Normally all temp tables will be destroyed as soon as
the database session terminates.

Check your database session with "onstat -u" and
"onstat -g ses <ses_id>" when running the program.

After terminating the program, check this again to be sure
that the session is destroyed.
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
  #3 (permalink)  
Old 02-24-03, 03:48
manny_er manny_er is offline
Registered User
 
Join Date: Feb 2003
Posts: 24
Temp table (reset.tcuabu2) already exists in session.

After using the temporary table, try to drop the table by issuing a SQL statement DROP TABLE <Temporary Table Name>. Be careful in dropping tables. Temporary table are only drop after disconnection/session if not dropped explicitly.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On