Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id g8UHfQV28154
 for <oracle-l@orafaq.net>; Mon, 30 Sep 2002 12:41:26 -0500
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id g8UHfQH28143
 for <oracle-l@orafaq.net>; Mon, 30 Sep 2002 12:41:26 -0500
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id IAA14403;
 Mon, 30 Sep 2002 08:24:23 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004DC6D6; Mon, 30 Sep 2002 07:03:33 -0800
Message-ID: <F001.004DC6D6.20020930070333@fatcity.com>
Date: Mon, 30 Sep 2002 07:03:33 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Adams, Matthew (GEA, MABG, 088130)" <MATT.ADAMS@APPL.GE.COM>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Adams, Matthew (GEA, MABG, 088130)" <MATT.ADAMS@APPL.GE.COM>
Subject: RE: extremely long parse time
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed;	boundary="----=_NextPartTM-000-fc639092-dfc7-4e87-872c-0ba5d227cfcd"
from all_tables
where table_name = 'INDEXENTRIES'
union 
select null as table_cat, i.owner as table_schem, i.table_name, 
decode (i.uniqueness, 'UNIQUE', 0, 1), null as index_qualifier, 
i.index_name, 1 as type, c.column_position as ordinal_position, 
c.column_name, null as asc_or_desc, i.distinct_keys as cardinality,
 i.leaf_blocks as pages, null as filter_condition
from all_indexes i,
all_ind_columns c
where i.table_name = 'INDEXENTRIES' and
i.index_name = c.index_name and
i.table_owner = c.table_owner and
i.table_name = c.table_name and
i.owner = c.index_owner
order by non_unique, type, index_name, ordinal_position

----
Matt Adams - GE Appliances - matt.adams@appl.ge.com
Their fundamental design flaws are completely
hidden by their superficial design flaws.
          - Douglas Adams 

 
-----Original Message-----
[mailto:Alexander.Feinstein@mitchell1.com]
Sent: Friday, September 27, 2002 4:28 PM
To: Multiple recipients of list ORACLE-L


Matt,
 
Is it Oracle 9?
If yes, time is in microseconds.
 
Alex.
 

-----Original Message-----
Sent: Thursday, September 26, 2002 10:30 AM
To: Multiple recipients of list ORACLE-L



why would a query take 148 seconds to 
parse?  It is a two way union 
where the first half is going against all_tables 
and the second half is a join 
between all_indexes and all_ind_columns. 

The shared pool has 50M large parts of it are 
free.  I generated a 10046 (level 12) trace, and I just 
don't see anything out of whack, except of the 
c=14868 in the PARSE #1 line. 



---- 
Matt Adams - GE Appliances - matt.adams@appl.ge.com 
Their fundamental design flaws are completely 
hidden by their superficial design flaws. 
          - Douglas Adams 


------_=_NextPart_001_01C26888.B30E1722
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>extremely long parse time</TITLE>

<META content="MSHTML 5.00.3105.105" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN 
class=530315513-30092002>Nope, Oracle 8.1.7.2 on HP-UX 11.&nbsp; 148 
seconds</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN 
class=530315513-30092002>on the wall clock to parse:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN 
class=530315513-30092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2><SPAN 
class=530315513-30092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2>select </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>null as table_cat, owner as 
table_schem, table_name, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>0 as NON_UNIQUE, null as 
index_qualifier, null as index_name, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>0 as type, 0 as ordinal_position, 
null as column_name, null as asc_or_desc, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>num_rows as cardinality, blocks as 
pages, null as filter_condition</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>from all_tables</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>where table_name = 
'INDEXENTRIES'</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>union </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>select null as table_cat, i.owner as 
table_schem, i.table_name, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>decode (i.uniqueness, 'UNIQUE', 0, 
1), null as index_qualifier, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>i.index_name, 1 as type, 
c.column_position as ordinal_position, </FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>c.column_name, null as asc_or_desc, 
i.distinct_keys as cardinality,</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>&nbsp;i.leaf_blocks as pages, null as 
filter_condition</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>from all_indexes i,</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>all_ind_columns c</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>where i.table_name = 'INDEXENTRIES' 
and</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>i.index_name = c.index_name 
and</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>i.table_owner = c.table_owner 
and</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>i.table_name = c.table_name 
and</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>i.owner = c.index_owner</FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2>order by non_unique, type, 
index_name, ordinal_position</FONT></DIV>
<P><FONT size=2><FONT face="Courier New">----</FONT><BR>Matt Adams - GE 
Appliances - matt.adams@appl.ge.com<BR>Their fundamental design flaws are 
completely<BR>hidden by their superficial design 
flaws.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Douglas 
Adams</FONT> </P>
<DIV>&nbsp;</DIV>
<DIV class=OutlookMessageHeader><FONT face="Times New Roman" 
size=2>-----Original Message-----<BR><B>From:</B> 
Alexander.Feinstein@mitchell1.com 
[mailto:Alexander.Feinstein@mitchell1.com]<BR><B>Sent:</B> Friday, September 27, 
2002 4:28 PM<BR><B>To:</B> Multiple recipients of list 
ORACLE-L<BR><B>Subject:</B> RE: extremely long parse time<BR><BR></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=781062519-27092002>Matt,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=781062519-27092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=781062519-27092002>Is it 
Oracle 9?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=781062519-27092002>If 
yes, time is in microseconds.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=781062519-27092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=781062519-27092002>Alex.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=781062519-27092002></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Adams, Matthew (GEA, MABG, 
  088130) [mailto:MATT.ADAMS@APPL.GE.COM]<BR><B>Sent:</B> Thursday, September 
  26, 2002 10:30 AM<BR><B>To:</B> Multiple recipients of list 
  ORACLE-L<BR><B>Subject:</B> extremely long parse time<BR><BR></DIV></FONT>
  <P><FONT size=2>why would a query take 148 seconds to </FONT><BR><FONT 
  size=2>parse?&nbsp; It is a two way union </FONT><BR><FONT size=2>where the 
  first half is going against all_tables</FONT> <BR><FONT size=2>and the second 
  half is a join </FONT><BR><FONT size=2>between all_indexes and 
  all_ind_columns.</FONT> </P>
  <P><FONT size=2>The shared pool has 50M large parts of it are</FONT> <BR><FONT 
  size=2>free.&nbsp; I generated a 10046 (level 12) trace, and I just 
  </FONT><BR><FONT size=2>don't see anything out of whack, except of the 
  </FONT><BR><FONT size=2>c=14868 in the PARSE #1 line.</FONT> </P><BR><BR>
  <P><FONT size=2>----</FONT> <BR><FONT size=2>Matt Adams - GE Appliances - 
  matt.adams@appl.ge.com</FONT> <BR><FONT size=2>Their fundamental design flaws 
  are completely</FONT> <BR><FONT size=2>hidden by their superficial design 
  flaws.</FONT> <BR><FONT 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Douglas 
  Adams</FONT> </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C26888.B30E1722--

------=_NextPartTM-000-fc639092-dfc7-4e87-872c-0ba5d227cfcd--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Adams, Matthew (GEA, MABG, 088130)
  INET: MATT.ADAMS@APPL.GE.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@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).

