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 > access plan in command editor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-10, 09:38
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
access plan in command editor

Hi ,
In my command editor, i don't see the access plan icon.
i have just the execute button.

How can i create / disply it ?

Tks,
Eli

Last edited by Elin; 12-15-10 at 09:46.
Reply With Quote
  #2 (permalink)  
Old 12-15-10, 09:59
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to create the explain tables.

Andy
Reply With Quote
  #3 (permalink)  
Old 12-15-10, 10:28
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Hi Endy,
I had ran the EXPLAIN.DDL file to create the explain tables in db ,but i still don't see the access plan icon in my remote client.

Tks,
Eli
Reply With Quote
  #4 (permalink)  
Old 12-15-10, 10:35
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you look at EXPLAIN.DDL, there is no schema on any of the objects. So the schema defaults to the user who creates them. To see the explain in Command Editor, you have to be connected as the user that created the explain tables.

Andy
Reply With Quote
  #5 (permalink)  
Old 12-15-10, 10:41
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Hi Andy ,
that's what i do , but still i don't get the icon

Tks,
eli
Reply With Quote
  #6 (permalink)  
Old 12-16-10, 02:25
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Hi, I don't get the button , the problem is not on the explain tables

If irun the explain manualy , it works OK.

Something wrong in my command editor sheet.
Reply With Quote
  #7 (permalink)  
Old 12-16-10, 05:05
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Hi ,
More deatil:

When i try to use db2exfmt,

i get this error:

No Explain instances (plans) were found for database MERLIN, source pattern: %.% for explain table schema "DB2INST1

Maybe it tell you sum more information about the problem .

The explain tables are exists in the db:

$ db2 list tables for all |grep EXPLAIN

EXPLAIN_ARGUMENT DB2INST1 T 2010-12-15-17.05.00.553209
EXPLAIN_DIAGNOSTIC DB2INST1 T 2010-12-15-17.05.20.301618
EXPLAIN_DIAGNOSTIC_DATA DB2INST1 T 2010-12-15-17.05.25.426265
EXPLAIN_INSTANCE DB2INST1 T 2010-12-15-17.03.05.584184
EXPLAIN_OBJECT DB2INST1 T 2010-12-15-17.05.06.728447
EXPLAIN_OPERATOR DB2INST1 T 2010-12-15-17.05.11.129463
EXPLAIN_PREDICATE DB2INST1 T 2010-12-15-17.05.14.243679
EXPLAIN_STATEMENT DB2INST1 T 2010-12-15-17.04.47.788480
EXPLAIN_STREAM DB2INST1 T 2010-12-15-17.05.17.096144

EXPLAIN_ARGUMENT MAXIMO T 2010-12-15-17.17.00.334363
EXPLAIN_DIAGNOSTIC MAXIMO T 2010-12-15-17.17.08.931425
EXPLAIN_DIAGNOSTIC_DATA MAXIMO T 2010-12-15-17.17.12.140079
EXPLAIN_INSTANCE MAXIMO T 2010-12-15-17.16.46.879700
EXPLAIN_OBJECT MAXIMO T 2010-12-15-17.17.02.371373
EXPLAIN_OPERATOR MAXIMO T 2010-12-15-17.17.03.270327
EXPLAIN_PREDICATE MAXIMO T 2010-12-15-17.17.04.403945
EXPLAIN_STATEMENT MAXIMO T 2010-12-15-17.16.54.875207
EXPLAIN_STREAM MAXIMO T 2010-12-15-17.17.06.778140

Pls,
help
Reply With Quote
  #8 (permalink)  
Old 12-16-10, 21:48
stiruvee stiruvee is offline
Registered User
 
Join Date: May 2010
Location: India
Posts: 34
Did you migrate your database from previous version of DB2? I had similar problems after upgrading to new version. You have to run db2exmig command to migrate explain tables. The command needs to be executed individually for all schemas with explain tables.

db2exmig syntax:
db2exmig -d dbname -e explain_schema [-u userid password]

Satya...
Reply With Quote
  #9 (permalink)  
Old 12-19-10, 06:05
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
I tried to ran this command , still not working .

Tks,
Eli
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