Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Query Tuning Help

RE: Query Tuning Help

From: David Wagoner <dwagoner_at_arsenaldigital.com>
Date: Mon, 27 Oct 2003 13:04:26 -0800
Message-ID: <F001.005D4B45.20031027130426@fatcity.com>


Mladen,

Thanks for your response. Comments are in-line.

>>Do you have "query rewrite" privilege? Yes.

>>What is the query_reqrite_inegrity set to? TRUSTED. >>How about optimizer parameters
(optimizer_index_caching,optimizer_index_cost_adj)? optimizer_index_caching=0 <<Are these reasonable values? optimizer_index_cost_adj=100

>>Is everything analyzed?
Yes, I used ANALYZE TABLE CLASS_CONFIG COMPUTE STATISTICS FOR ALL COLUMNS FOR ALL INDEXES after creating the function-based index.

Best regards,

David B. Wagoner
Database Administrator
Arsenal Digital Solutions
Web: http://www.arsenaldigital.com

"the most trusted source for

            STORAGE MANAGEMENT SERVICES" The contents of this e-mail message may be privileged and/or confidential. If you are not the intended recipient, any review, dissemination, copying, distribution or other use of the contents of this message or any attachment by you is strictly prohibited. If you receive this communication in error, please notify us immediately by return e-mail or by telephone (919-466-6700), and please delete this message and all attachments from your system.
Thank you.

-----Original Message-----
Sent: Monday, October 27, 2003 11:10 AM
To: Multiple recipients of list ORACLE-L

Do you have "query rewrite" privilege? What is the query_reqrite_inegrity set to? How about optimizer parameters (optimizer_index_caching,optimizer_index_cost_adj)? Is everything analyzed?
On 10/27/2003 10:34:26 AM, David Wagoner wrote:
> I'm trying to tune the following query to use an index on the
> FILE_DTS
> column, rather than a FTS on the CLASS_CONFIG table (~350,000 rows).
>
> SELECT a2.class_config_id, a1.schedule_name
> FROM class_config a2, class_schedule a1
> WHERE a2.class_config_id = a1.class_config_id
> AND to_date(a2.file_dts, 'mmddyyhh24miss') > SYSDATE - 35
>
>
> I created a function-based index on FILE_DTS, like this:
>
> CREATE INDEX CLASS_CONFIG_FILE_DTS_FX_IDX ON CLASS_CONFIG
> to_date(file_dts,
> 'mmddyyhh24miss')
>
> and analyzed the table, but the explain plan still shows a FTS. I
> can
> change the query to something simpler and get it to use the new
> index,
> but I
> assume the calculation (> SYSDATE - 35) is causing the problem. Any
> suggestions?
>
>
> Best regards,
>
> David B. Wagoner
> Database Administrator
> Arsenal Digital Solutions
> Web: http://www.arsenaldigital.com
>
> <<...OLE_Obj...>>
>
>
> The contents of this e-mail message may be privileged and/or
> confidential.
> If you are not the intended recipient, any review, dissemination,
> copying,
> distribution or other use of the contents of this message or any
> attachment
> by you is strictly prohibited. If you receive this communication in
> error,
> please notify us immediately by return e-mail or by telephone
> (919-466-6700), and please delete this message and all attachments
> from your
> system.
> Thank you.
>

>

Mladen Gogala
Oracle DBA

Note:
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mladen_at_wangtrading.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: David Wagoner
  INET: dwagoner_at_arsenaldigital.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).
Received on Mon Oct 27 2003 - 15:04:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US