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 > DB2 > Orphaned table in systables?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-09, 14:44
robbay robbay is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
Orphaned table in systables?

We had a table create in both upper case and lower case (temp_rob and TEMP_ROB). We did a drop able on TEMP_ROB. temp_rob still shows in the systables and syscat.columns.

This causes issues in another applicaiton that reads these tables and looks for permissions on those tables. It failts because any attempt at a drop or select on temp_rob results in

"Error 09/01/2009 13:43:17 0:00:00.000 DB2 Database Error: ERROR [42704] [IBM][DB2/NT64] SQL0204N "LYNX.TEMP_ROB" is an undefined name. SQLSTATE=42704"

Any thoughts on how we can remove temp_rob from system tables?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-01-09, 14:53
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by robbay
any attempt at a drop or select on temp_rob results in

"Error 09/01/2009 13:43:17 0:00:00.000 DB2 Database Error: ERROR [42704] [IBM][DB2/NT64] SQL0204N "LYNX.TEMP_ROB" is an undefined name. SQLSTATE=42704"
I see an attempt to access "TEMP_ROB", not "temp_rob". Case sensitive object names should be enclosed in double quotation marks.
Reply With Quote
  #3 (permalink)  
Old 09-01-09, 14:58
robbay robbay is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
Nick.

I noticed that as well. Your suggestion worked perfectly. Using drop table "temp_rob" allowed me to drop the table.

Life is wonderful.

Thanks very much.
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