Steve,
Welcome back.. saw your message after a while
Have a nice weekend
Regards
Rafiq


MOHAMMAD RAFIQ



Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Date: Fri, 07 Sep 2001 12:10:36 -0800

Hi Christopher, Silvina and list,

The 8.1 version of cached_blocks.sql script on the Ixora web site does not 
have the incorrect +1, but it did once for a
period of a week or so. The 8.0 version had it until a few minutes ago. I 
got some strange results once and concluded
incorrectly that the file numbers in X$BH were offset thus, as those in 
X$KCBFWAIT are. But when I started using the
"corrected" script I got even more strange results and backed out the fix, 
but it seems that I overlooked the 8.0
version. Sorry.

@   Regards,
@   Steve Adams
@   http://www.ixora.com.au/
@   http://www.christianity.net.au/


-----Original Message-----
Sent: Saturday, 8 September 2001 2:27
To: Multiple recipients of list ORACLE-L


That looks like Steve Adam's script, he is pretty busy now it seems.
I guess his is right, but I haven't looked at what your talking about to
closely.

I have one on my site that does something similar.


"Do not criticize someone until you walked a mile in their shoes, that way
when you criticize them, you are a mile a way and have their shoes."

Christopher R. Spence
Oracle DBA
Phone: (978) 322-5744
Fax:    (707) 885-2275

Fuelspot
73 Princeton Street
North, Chelmsford 01863




-----Original Message-----
Sent: Friday, September 07, 2001 11:27 AM
To: Multiple recipients of list ORACLE-L


 > I get the cache_blocks.sql from this site.  While I was executing this
 > scripts I found a mistake.
 >
 > select
 >   e.owner||'.'||e.segment_name  segment_name,
 >   sum(cur)  cur_buffers,
 >   sum(cr)  cr_buffers
 > from
 >   ( select
 >       min(file#||'.'||dbablk)  fb,
 >       sum(decode(state, 1, 1, 0))  cur,
 >       sum(decode(state, 3, 1, 0))  cr
 >     from
 >       sys.x_$bh
 >     where
 >       inst_id = userenv('Instance') and
 >       state in (1, 3)
 >     group by
 >       obj,
 >       class
 >   )  b,
 >   sys.apt_extents  e
 > where
 >   e.file_id = substr(b.fb, 1, instr(b.fb, '.') - 1) +1
 >     ----------  This line is comparing the file# wrongly, it should be
like
 > this
 >
 > e.file_id = substr(b.fb, 1, instr(b.fb, '.') - 1)   (without +1)
 >   substr(b.fb, instr(b.fb, '.') + 1) between e.block_id and e.block_id
 > + e.blocks - 1 group by
 >   e.owner||'.'||e.segment_name
 > order by
 >   2
 > /
 >
 >
 > I notice this mistake becouse I have another script that shows the
 > buffers cached in memory and the results of both of them was so
 > different.  The problem is that when it gets the segment_name, it
 > looks the block in other file.
 >
 > I hope you mail me to answer if I am wrong.
 >
 > Thank you.
 >
 > Silvina Botindari.
 >
 >

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Silvina Botindari
   INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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.com
--
Author: Christopher Spence
   INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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.com
--
Author: Steve Adams
   INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mohammad Rafiq
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to