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 > DB2 Access Plan-EXPLAIN TABLE ERROR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-25-07, 05:06
abhi.ram abhi.ram is offline
Registered User
 
Join Date: Jul 2007
Posts: 3
Question DB2 Access Plan-EXPLAIN TABLE ERROR

Hi

I am working from a DB2 windows client(V 8.1), accessing the server(V 8.2) on AIX.

When I am trying to display an access plan for any query I am getting the following Error

SQL0220N The Explain table "DB2INST1.EXPLAIN_INSTANCE", column "EXPLAIN_OPTION"
does not have the proper definition or is missing. SQLSTATE=55002


I have checked the Explain Tables, all the definition is correct. But still I am getting this error..?
Reply With Quote
  #2 (permalink)  
Old 07-25-07, 07:34
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
it looks like you have migrated from v7 to v8 with backup database / restore database operation. Explain tables have been changed from v7 to v8. So you need to drop explain tables manually with drop table commands. Then recreate explain tables with EXPLAIN.DLL script. This script is by default on the following directory: home/db2inst1/sqllib/misc on server site.
This script creates new tables compatible on v8.
Hope this helps,
Grofaty

Last edited by grofaty; 07-25-07 at 07:38.
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