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 > Error While Dropping the table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-05, 02:46
dinesh80 dinesh80 is offline
Registered User
 
Join Date: Dec 2005
Posts: 1
Error While Dropping the table

HI,
I am getting the following error while running the drop commnd on the DB2 databse.
the command i am firing is

DROP TABLE REFERENCE.HC_TREAT_DIAG;

and the error i am getting is:-

[IBM][CLI Driver][DB2/6000] SQL0969N There is no message text corresponding to SQL error "-20241" in the message file on this workstation. The error was returned from module "SQLRLDRT" with original tokens "REFERENCE.HC_TREAT_DIAG". SQLSTATE=560C2

DROP TABLE REFERENCE.HC_TREAT_DIAG
did not complete successfully.
Reply With Quote
  #2 (permalink)  
Old 12-14-05, 02:57
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Google for sql20241

Check your db2diag.log

But mentioning your db2 client and server versions may have helped to guess the problem

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-14-05, 04:21
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
drop table

is it a local or remote table or nickname ?
what target platform ? local platform : aix ?
what about authority - can you select from this table - do you have control authority on this table ?
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #4 (permalink)  
Old 12-14-05, 05:20
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
SQL20241 in short is 'writing history file entry failed':

So you might have an authorization problem. Platforms and Versions would be good to know as well. Also file system might be full.

Solutions: disable 'dropped table recovery' for the tablespace if you don't care
__________________
Juliane
Reply With Quote
  #5 (permalink)  
Old 12-14-05, 05:56
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Workaround, not the solution

Quote:
Originally Posted by juliane26
Solutions: disable 'dropped table recovery' for the tablespace if you don't care
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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