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: Statspack recomendations.

RE: Statspack recomendations.

From: Freeman Robert - IL <FREEMANR_at_tusc.com>
Date: Thu, 23 Jan 2003 14:16:40 -0800
Message-ID: <F001.0053910F.20030123141640@fatcity.com>


It's a bug in 9i as well, I finally found the entry for it. I ended up building this code to do what I wanted:

select /*+ FULL(a) FULL(b) FULL(c) */ 'Temp Files', substr(c.fnnam,1,6), sum(b.kcftiopyr),
sum(b.kcftioprt/100) "Time/Reading",
round((sum(b.kcftioprt)/100)/decode(sum(kcftiopyr),0,1,sum(kcftiopyr) ),3) "Average RdTm/IO",
sum(b.kcftiopwt), sum(b.kcftiopwt/100) "Time/Writing", round((sum(b.kcftiopwt)/100)/decode(sum(kcftiopyw),0,1,sum(kcftiopyw)),3) "Average WrtTm/IO",
0 "Average IO/Seconds"
from x$kccfn c, x$kcftio b
where
b.kcftiofno (+) =c.fnfno
and c.fntyp=7
and c.fnnam is not null
group by substr(c.fnnam,1,6);

Works fine, but you have to do the full table scans or you might still get the ora-600.

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (It's everywhere that I am!) Author of several books you can find on Amazon.com!

-----Original Message-----
Sent: Thursday, January 23, 2003 3:25 PM To: Multiple recipients of list ORACLE-L

I get the same results. Strange!?!?

-----Original Message-----
Sent: Thursday, January 23, 2003 1:14 PM To: Multiple recipients of list ORACLE-L

Anyone know a work around to joining v$tempfile and dba_temp_files by file#? I'm using 9.2.0.1.0 on XP and I'm issuing the statement:

select a.file_name
from dba_temp_files a, v$tempstat b
where b.file#=a.file_id;

I get an ora-0600 on this with a [ktfthcf-1] [202]

Argument. I looked this up on Metalink and this appears to have been a bug discovered in 8i and fixed in 9i but alas, it's still here. I tried to implement the work around, issuing the RULE hint, which removes the error message but gives me no results.

Anyone experience this?

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (it's everywhere that I am!) Author of several books you can find on Amazon.com!

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Freeman Robert - IL
  INET: FREEMANR_at_tusc.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: Eberhard, Jeff
  INET: Jeff.Eberhard_at_Rolls-RoyceGS.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: Freeman Robert - IL
  INET: FREEMANR_at_tusc.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 Thu Jan 23 2003 - 16:16:40 CST

Original text of this message

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