Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sql tuning quandry
The developer in question has been publicly humiliated. And since he lurks
on this list...humiliated again here. =)
Steve
-----Original Message-----
Jared.Still_at_radisys.com
Sent: Wednesday, May 14, 2003 4:00 PM
To: Multiple recipients of list ORACLE-L
Steve,
Why aren't the developers using table.column%type ?
Jared
"Steve McClure" <smcclure_at_usscript.com>
Sent by: root_at_fatcity.com
05/14/2003 11:21 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Subject: RE: sql tuning quandry
OK after spending a good chunk of each day for three days playing with
tkprof, and pondering the possibilities of why a query withing a PL/SQL
function would perform SO differently than when it is run from sqlplus, I
finally actually read the PL/SQL code. The data type of one of the cursor
variables was mismatched. As a result, the proper index was unused,
resulting in either a full table scan(if I used the developer's +0 code)
or
a range scan on a poor index. Thanks again for all the helpful hints, and
guidance.
Steve McClure
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Thu May 15 2003 - 12:06:51 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Steve McClure INET: smcclure_at_usscript.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).