Query Tuning Help

2003-10-27 Thread David Wagoner
Title: Query Tuning Help 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

Re: Query Tuning Help

2003-10-27 Thread ryan_oracle
because its not always faster to use an index. try using a hint for the index and see which runs better. From: David Wagoner [EMAIL PROTECTED] Date: 2003/10/27 Mon AM 10:34:26 EST To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Query Tuning Help I'm trying to tune

RE: Query Tuning Help

2003-10-27 Thread Mercadante, Thomas F
Title: Query Tuning Help David, The calculation "( SYSDATE - 35)" is not causing the problem. The To_Date(a2.file_dts, 'mmddyyhh24miss') is. You said you created a function based index. I think you also need to set: Query_ReWrite_Integrity = TRUSTEDQuery_ReWrite_Enabl

RE: Query Tuning Help

2003-10-27 Thread David Wagoner
Title: Query Tuning Help Tom, Thanks for the init.ora parameter tips, I consulted the docs and did that first :-). It just seems that the CBO would rather use an index, even though I know that's not always the case. Best regards, David B. Wagoner Database Administrator Arsenal Digital

Re: Query Tuning Help

2003-10-27 Thread Mladen Gogala
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

RE: Query Tuning Help

2003-10-27 Thread David Wagoner
Title: Query Tuning Help The FILE_DTS column is VARCHAR2(12) NOT NULL and has data in the following format: 07220301. Best regards, David B. Wagoner Database Administrator Arsenal Digital Solutions Phone: 919-466-6723 Cell: 919-412-8462 Pager: [EMAIL PROTECTED] Fax: 919-466-6783 E

RE: Query Tuning Help

2003-10-27 Thread Stephane Faroult
David, I would probably not try to tune a query to make it use an index but tune a query to make it run faster - I have had recently a nice example, a join between a 500K row table and two 2K row tables (returning about 2K rows too) was running faster with FTS (followed by hash joins) on

RE: Query Tuning Help

2003-10-27 Thread David Wagoner
Title: RE: Query Tuning Help 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

RE: Query Tuning Help

2003-10-27 Thread Niall Litchfield
PMFJI How about optimizer parameters (optimizer_index_caching,optimizer_index_cost_adj)? optimizer_index_caching=0 Are these reasonable values? optimizer_index_cost_adj=100 sorry for the space everyone ms outlook 101 is a class I *badly* need like how do I reply in plain text with

Query tuning stumper

2003-07-15 Thread Meng, Dennis
Hi all, I have been struggling with the follwing query for hours with no avail. This is oracle 8.1.7.4 on Tru64 unix with a data warehouse setup. Invc_line is the fact table with about 267 mil records. There is a bitmap index on shipto_key(invc_line_bix04) and another bitmap index on

Re: Query tuning stumper

2003-07-15 Thread Mark Richard
] inal.comcc: Sent by: Subject: Query tuning stumper [EMAIL PROTECTED

Re: Query tuning stumper

2003-07-15 Thread Ryan
[EMAIL PROTECTED] inal.comcc: Sent by: Subject: Query tuning stumper [EMAIL PROTECTED] .com 16/07/2003 06:49 Please respond

RE: Query Tuning Question - new discovery

2003-06-13 Thread Meng, Dennis
PROTECTED] Subject: Query Tuning Question Hi fellow DBAs, This is kind of the follow-up of my last E-mail on wait event. I have a query that is taking hours to complete and the plan looks ok. While one of the tables is huge (267mil rows) it is being accessed using one of its indexes. I recorded

RE: Query Tuning Question - new discovery

2003-06-13 Thread Barbara Baker
[EMAIL PROTECTED] Date: 2003/06/12 Thu PM 03:54:59 EDT To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Query Tuning Question Hi fellow DBAs, This is kind of the follow-up of my last E-mail on wait event. I have a query that is taking hours to complete

RE: Query Tuning Question - new discovery

2003-06-13 Thread Jamadagni, Rajendra
Title: RE: Query Tuning Question - new discovery A Ha ... it is refers to _B_TREE_BITMAP_PLANS variable ... it is true by default and what you see is the side effect. If you are not using BMI, set it to false. http://tinyurl.com/e8ws for more info Raj

Query Tuning Question

2003-06-12 Thread Meng, Dennis
Hi fellow DBAs, This is kind of the follow-up of my last E-mail on wait event. I have a query that is taking hours to complete and the plan looks ok. While one of the tables is huge (267mil rows) it is being accessed using one of its indexes. I recorded some stats from v$session_wait

Re: Query Tuning Question

2003-06-12 Thread rgaffuri
PROTECTED] Date: 2003/06/12 Thu PM 03:54:59 EDT To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Subject: Query Tuning Question Hi fellow DBAs, This is kind of the follow-up of my last E-mail on wait event. I have a query that is taking hours to complete and the plan looks ok. While

Re: Query Tuning Question

2003-06-12 Thread Gudmundur Bjarni Josepsson
What could be the cause of this wait? At the risk of asking the bleeding obvious, have you tried doing a 10046 trace on the query? Gudmundur -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Gudmundur Bjarni Josepsson INET: [EMAIL PROTECTED] Fat City Network Services

Query Tuning urgent

2003-03-22 Thread manoj . gurnani
BDY.RTF Description: RTF file

Re: Query Tuning urgent

2003-03-22 Thread Stephane Faroult
[EMAIL PROTECTED] wrote: The following qry takes large amt of time to retrieve data on production database. Reason being for a single row in psd, there are multiple records in piar_fr_psd representing diff parties. How to optimise this qry . Select CUST_BAS_NO,BR_COD,CUST_NAM,BR_NAM

Slow query tuning

2003-02-02 Thread Krishnaswamy, Ranganath
Hi Listers, I have the below query which is taking almost 3 min. to execute. Can anybody help me in rewriting the query and/or reducing the query execution time. Please note that V_SHIP is a view created the source for which is as as follows: View Source CREATE OR REPLACE VIEW V_SHIP (

Query Tuning Documentation

2003-01-23 Thread rgaffuri
I have the Oracle Performance Tuning 101 book and I have been reading the Performance Tuning Guide on OTN, however, I found its explanation of when to use messages and how to write queries extremely terse. Are there any websites or books which focus strictly on query tuning that provide more

RE: Query Tuning Documentation

2003-01-23 Thread Farnsworth, Dave
found its explanation of when to use messages and how to write queries extremely terse. Are there any websites or books which focus strictly on query tuning that provide more in depth explanations and examples? -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: [EMAIL

RE: Query Tuning Documentation

2003-01-23 Thread DENNIS WILLIAMS
to use messages and how to write queries extremely terse. Are there any websites or books which focus strictly on query tuning that provide more in depth explanations and examples? -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: [EMAIL PROTECTED] INET: [EMAIL

RE: Query Tuning Documentation

2003-01-23 Thread Deshpande, Kirti
encoded content removed -- binaries not allowed by ListGuru The previous attachment was filtered out by the ListGuru mailing software at fatcity.com because binary attachments are not appropriate for mailing lists. If you want a copy of the attachment which was removed, contact the sender

Query tuning with tablename alias

2002-11-20 Thread Hopper, Wendy S
Title: Message Hello list. I have recently been tasked with trying to optimize some slow performing queries (Oracle 8.1.7) for an applicationthat generates reports in a data warehouse type environment. I have noticed in most of the queries that the table names have been aliased, but not

RE: Query tuning with tablename alias

2002-11-20 Thread DENNIS WILLIAMS
Wendy - I think the difference between using an alias or not is negligible. My reasoning is that this would be easy to test (good idea if you have a moment) and there are enough picky Oracle developers that if this was not negligible, people would have been bragging about this as their secret

Re: Query tuning with tablename alias

2002-11-20 Thread Mark Richard
Subject: Query tuning with tablename alias Sent by: [EMAIL PROTECTED

RE: Query tuning with tablename alias

2002-11-20 Thread Jamadagni, Rajendra
Title: RE: Query tuning with tablename alias but if you provide hints on such statements, you better be using aliases for hints . Aliases are used for readability ... you either use the aliases or user tablename.column but not both ... world is already confusing enough ... Raj

RE: Query tuning with tablename alias

2002-11-20 Thread Hopper, Wendy S
. Hopper, Wendy S To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] wendy.hopper@ cc: eds.com Subject: Query tuning with tablename alias

RE: Query tuning with tablename alias

2002-11-20 Thread Khedr, Waleed
: "DUAL"."DUMMY": invalid identifier SQL select dual.dummy from dual; D-X Waleed -Original Message-From: Hopper, Wendy S [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 20, 2002 1:13 PMTo: Multiple recipients of list ORACLE-LSubject: Query tuning with tab

RE: Query tuning with tablename alias

2002-11-20 Thread DENNIS WILLIAMS
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] wendy.hopper@ cc: eds.com Subject: Query tuning with tablename alias Sent by: [EMAIL PROTECTED

RE: Query tuning with tablename alias

2002-11-20 Thread Hopper, Wendy S
this properly). Regards, Mark. Hopper, Wendy S To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] wendy.hopper@ cc: eds.com Subject: Query tuning

RE: Query tuning with tablename alias

2002-11-20 Thread Deshpande, Kirti
S To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] wendy.hopper@ cc: eds.com Subject: Query tuning with tablename alias Sent

RE: SQL Query tuning help

2002-09-12 Thread DENNIS WILLIAMS
Thank you Stephane! Your final idea of FIRST_ROWS as a winner! Oracle slapped the data back in just a second. Thanks everyone for the ideas to try.   Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- Sent: Tuesday, September 10, 2002 3:42

SQL Query tuning help

2002-09-10 Thread DENNIS WILLIAMS
I am trying to tune a SQL query on Oracle 8.1.6. I have tried several optimizations, but so far have made no improvements. I would appreciate any suggestions. SELECT am.lid, am.name FROM am, so, sa WHERE so.lid = am.lid AND so.key_ = sa.so_key AND am.active = 1 AND so.code = 11 AND sa.ret = 'SB'

RE: SQL Query tuning help

2002-09-10 Thread Nicoll, Iain \(Calanais\)
Dennis, If you use the ordered hint and have sa then so then am and also hint to use the index on sa(ret) then I think that would be about the best as you'd be starting with the best filter ie 1.3m/281 giving less than 5000 on average (assuming ret is indexed). I don't know if you'd have to

Re: SQL Query tuning help

2002-09-10 Thread Stephane Faroult
DENNIS WILLIAMS wrote: I am trying to tune a SQL query on Oracle 8.1.6. I have tried several optimizations, but so far have made no improvements. I would appreciate any suggestions. SELECT am.lid, am.name FROM am, so, sa WHERE so.lid = am.lid AND so.key_ = sa.so_key AND am.active = 1

Re: SQL Query tuning help

2002-09-10 Thread Jared . Still
: Subject:SQL Query tuning help I am trying to tune a SQL query on Oracle 8.1.6. I have tried several optimizations, but so far have made no improvements. I would appreciate any suggestions. SELECT am.lid, am.name FROM am, so, sa WHERE so.lid = am.lid AND so.key_ = sa.so_key

RE: SQL Query tuning help

2002-09-10 Thread Carle, William T (Bill), ALCAS
:SQL Query tuning help I am trying to tune a SQL query on Oracle 8.1.6. I have tried several optimizations, but so far have made no improvements. I would appreciate any suggestions. SELECT am.lid, am.name FROM am, so, sa WHERE so.lid = am.lid AND so.key_ = sa.so_key AND am.active = 1

RE: SQL Query tuning help

2002-09-10 Thread DENNIS WILLIAMS
Thanks everyone for your wonderful suggestions. And thanks for leaving the hey stupid off your reply header :-) Rachel - Thanks for the bitmapped idea. These tables don't change often, so that may be a good alternative. Iain - Thanks so much for the detailed suggestions. Rick - Good sanity

RE: SQL Query tuning help

2002-09-10 Thread Cary Millsap
Just in case anyone out there is interested, we use the term Mickey Mouse schema to refer to a very specific design tactic. We're *not* using the term's slang meaning of unimportant or uninspired. (...Which always seemed odd to me, because MM is a really strong, high quality brand.)

RE: SQL Query tuning help

2002-09-10 Thread John Kanagaraj
Subject: RE: SQL Query tuning help Thanks everyone for your wonderful suggestions. And thanks for leaving the hey stupid off your reply header :-) Rachel - Thanks for the bitmapped idea. These tables don't change often, so that may be a good alternative. Iain - Thanks so much

Query Tuning

2002-06-20 Thread Rajesh . Rao
Hello Folks, Given an Oracle 7.3.4 database, how would you tune a query as under, other than suggesting a migration to a higher version. This query is currently performing a lot of I/O, obviously doing a full tablescan on CAMPMAIN. SELECT CAMPNAME,ASGNMTTYPE,CAMPRTGNUM, LTRIM(RTRIM(CAMPTYPE))

Re: Query Tuning

2002-06-20 Thread Stephane Faroult
[EMAIL PROTECTED] wrote: Hello Folks, Given an Oracle 7.3.4 database, how would you tune a query as under, other than suggesting a migration to a higher version. This query is currently performing a lot of I/O, obviously doing a full tablescan on CAMPMAIN. SELECT

Re: Query Tuning

2002-06-20 Thread Rajesh . Rao
] sfaroult@oricc: ole.com Subject: Re: Query Tuning Sent

RE: SQL query tuning problem

2001-11-19 Thread Hallas John
: SQL query tuning problem Well Greg..I just ordered the SQL Tuning book by Guy Harrison from Amazon hope it is real good as u recommend :) Thanks and Cheers !! Samir Sarkar Oracle DBA - Lennon Team SchlumbergerSema Email : [EMAIL PROTECTED] [EMAIL PROTECTED

FW: SQL query tuning problem

2001-11-19 Thread Henry Poras
]]Sent: Monday, November 19, 2001 5:45 AMTo: Multiple recipients of list ORACLE-LSubject: RE: SQL query tuning problem I have the first edition which is an excellent book but I cannot justify buying the later version - pity really -Original Message-From: SARKAR

RE: SQL query tuning problem

2001-11-16 Thread SARKAR, Samir
EPABX : +44 (0) 115 - 957 6418 Ext. 76217 Fax : +44 (0) 115 - 957 6018 -Original Message-From: Greg Moore [mailto:[EMAIL PROTECTED]]Sent: 08 November 2001 18:28To: SARKAR, SamirSubject: Re: SQL query tuning problem syntax for having multiple tables in the hint

Re: Oracle Query Tuning

2001-09-06 Thread Arich Henneman
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Arich Henneman INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists

RE: Oracle Query Tuning

2001-09-06 Thread Thomas, Kevin
good knowledge about SQL query tuning in Oracle. Please let me know any books are available on it also. Makarand -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Makarand Kurkure INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538

Oracle Query Tuning

2001-09-05 Thread Makarand Kurkure
Hi All, I want to know what are the sources on Internet which gives me good knowledge about SQL query tuning in Oracle. Please let me know any books are available on it also. Makarand -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Makarand Kurkure INET

Re: Oracle Query Tuning

2001-09-05 Thread Arich Henneman
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Arich Henneman INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists

QUERY TUNING

2001-08-09 Thread Harvinder Singh
Hi, We have a query which is taking a long time as compared to time taken last month.. this query does a select on view1..this view1 is based on join oof 2 views view2 and view3.. view2 is based on join of 6 tables while view3 is based on 9 tables..with each table have significant number or

RE: Imedia query tuning

2001-05-17 Thread Henrik Ekenberg
Title: RE: Imedia query tuning Hello, Thanks Lisa for your comment but. I try to always use an index hint to return the rows in the required order. This avoids a sort if it's possible to use an index which can avoid both sort and table access - and it often won't be possible

Imedia query tuning

2001-05-16 Thread Ranganath K
Dear DBA Gurus, I have the following two queries along with execution plan and statistics. The first one is taking a long time to execute. The second query is taking a long time to execute when I use the order by clause. I am also sending the table details. Is there any way I can

Imedia query tuning

2001-05-16 Thread Ranganath K
Dear DBA Gurus, I have the following two queries along with execution plan and statistics. The first one is taking a long time to execute. The second query is taking a long time to execute when I use the order by clause. Is there any way I can reduce the execution time as these queries

RE: Imedia query tuning

2001-05-16 Thread Daemen, Remco
- Van: Ranganath K [mailto:[EMAIL PROTECTED]] Verzonden: woensdag 16 mei 2001 13:56 Aan: Multiple recipients of list ORACLE-L Onderwerp: Imedia query tuning Dear DBA Gurus, I have the following two queries along with execution plan and statistics. The first one is taking a long time

Re: Imedia query tuning

2001-05-16 Thread Henrik Ekenberg
Hello, I'm not a guru : I just try to help you. :- Hint for Query 2 : Have you try to hint so you run on the editor_choice index. If it works. Can you remove the Order command. Because the index is already ordered. Regards Henrik E. On Wed, 16 May 2001, Ranganath K wrote: Dear DBA Gurus,

RE: Imedia query tuning

2001-05-16 Thread Koivu, Lisa
Title: RE: Imedia query tuning Henrik, FYI The ordered hint refers to the order in which the tables are accessed in the query. It has nothing to do with an index. Lisa Rutland Koivu Oracle Database Administrator Certified Self-Important Database Deity Slayer of Unix Administrators Wanton

RE: Imedia query tuning

2001-05-16 Thread Riyaj_Shamsudeen
Riyaj Re-yas Shamsudeen Certified Oracle DBA i2 technologies www.i2.com Koivu, Lisa [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/16/01 09:36 AM Please respond to ORACLE-L To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED] cc: Subject:RE: Imedia query

Impact of query tuning

2001-05-11 Thread Boivin, Patrice J
I just thought I should advertise this... usually people just complain. Hi Patrice, I have added indexes on the foreign keys in the [schema_name] tables. Also, I tuned the SQL statements I was using to perform the desired deletes. Results: The one delete job that ran for