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 > Non existing table showing in syscat.tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-05, 11:43
toby25 toby25 is offline
Registered User
 
Join Date: Sep 2003
Posts: 63
Non existing table showing in syscat.tables

Hi,

This is for version 8.1 on 4 logical partition system on AIX.
I have this tables called DB.TAB_usrt that show up in syscat.tables and sysibm.systables. Also db2 list tables for all shows this table exist.
This is not a view. Its a table.

But when I try to drop this table it give me following error :
SQL0204N "DB.TAB_usrt" is an undefined name. SQLSTATE=42704

Also db2look doesn't generate any ddl for this table.
I have updated stats on all tables including system tables. But problem still exists.

Is anything currupt here? Why syscat.tables show up this non existing table?

Thanks for help,
toby
Reply With Quote
  #2 (permalink)  
Old 12-05-05, 09:43
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Could you supply the entire script that produce suche error?...
Reply With Quote
  #3 (permalink)  
Old 12-05-05, 12:17
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
If you used

CREATE TABLE "DB.TAB_usrt"
...

you also have to use

DROP TABLE "DB.TAB_usrt"

DROP TABLE DB.TAB_usrt or Select * from db.tab_usrt would not be matched since internally it will look for DB.TAB_USRT.

Otherwise: if the table was created using

CREATE TABLE DB.TAB_USRT (capital or small characters don't matter as long as "" is not used)

then also drop it this way:

DROP TABLE DB.TAB_USRT

Advice: don't mix large and small characters using ""
__________________
Juliane
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