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 > OPTHINT in OS/390

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-04, 07:10
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
OPTHINT in OS/390

DB2 7.1 on OS/390

I am trying to use OPTHINT by making it use a different index.

So I changed the ACCESSNAME(from X to Y) and MATCHCOL(from 2 to 1) with a HINT.

When I bind with the OPTHINT, it uses the new index Y but MATCHCOL becomes 0. The bind ended with SQLCODE 394 and HINTUSED in PLAN_TABLE says it used the hint.

How can it then apply the HINT partially? I thought either it should apply it completely or reject it with code 395.

Has anyone come across such a thing?

Thanks in advance.
xamar
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