SQL Performance (MOSC)

MOSC Banner

why the execution plan can't be changed?

edited Mar 25, 2015 10:02AM in SQL Performance (MOSC) 4 commentsAnswered

Hi,all:

There is a sql can't use a correct execution plan:

----------------------------------------------------

select id, splorderid, agtorderid, resid, resroomstayid, resroomtypeid, oldresid, vendorcode, vendorname, hotelcode, hotelname, province, citycode, cityname, channelcode, officecode, officename, rateplancode, rateplanname, roomtypecode, roomtypename, roomrateplanname, payment, status, bookdate, checkindate, checkoutdate, roomnumber, roomnight, roomrate, totalrate, totalbalrate, currency, exchangerate, roomratecny, totalratecny, totalbalratecny, guests, roomnos, confirmnos, comments, opname, updatetime, audittype

from chk_roomstay c

where c.resid=:resid;

User_B running the sql via synonym 'chk_roomstay',and the base table is owned by User_A.on the column "resid" has a unique index,but the execution plan is  "table access full",i try to change the execution plan via "grant" command  on the base table but it can't be changed,also because this i can't generate 10053 trace.why the execution plan can't be changed?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center