IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Run the EXPLAn query pointing to existing PLAN_TABLE


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Fri Mar 23, 2007 2:15 pm
Reply with quote

Hi,

When I run the following SQL statement

EXPLAIN PLAN SET QUERYNO = 100 FOR
SELECT * FROM TABLE;

it says

MYID.PLAN_TABLE doesn't exist.

The creator for PLAN_TABLE is something WGH.

How can I run the EXPLAn query pointing to existing PLAN_TABLE?
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Fri Mar 23, 2007 4:44 pm
Reply with quote

Yes, you need to be the owner of a plan table to explain the access strategies.

Check if you have the required privieges to use the existing plan table.

SET CURRENT SQLID = 'WGH';
EXPLAIN PLAN SET QUERYNO = 100 FOR
SELECT * FROM TABLE;
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top