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: "Bad" object ids in x$bh?

Re: "Bad" object ids in x$bh?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 01 Dec 2003 14:29:26 -0800
Message-ID: <F001.005D8589.20031201142926@fatcity.com>

You should be joining the obj column
to the dataobj# column of obj$.
(that's data_object_id in dba_objects
rather than object_id). Unfortunately it is a non-indexed join, so can be a little inefficient.

This is also going to give you some funny numbers because logical objects (obj#) can share the same physical object (dataobj#), for example tables in a cluster,

Other reasons why the obj# and dataobj#
may differ are - truncation or moving of tables, and probably some of the maintenance operations on partitioned tables.

Some of the other funny numbers ca. 2^32 will be rollback segments, some will be internally generated temporary tables from temp table transformations.

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person   who can answer the questions, but the   person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html ____UK___November

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

>
> Anybody know what the blocks in x$bh are that don't map to rows in
> DBA_OBJECTS? I have 172 objects in x$bh that I can't account for.
>
> SQL> SELECT count(obj), count(object_id)
> 2 FROM (SELECT DISTINCT bh.obj, ob.object_id
> 3 FROM sys.x_$bh bh,
> 4 dba_objects ob
> 5 WHERE bh.obj = ob.object_id(+));
>
> COUNT(OBJ) COUNT(OBJECT_ID)
> ---------- ----------------
> 2243 2071
>
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Steve Rospo
> INET: srospo_at_watchmark.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: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

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 Dec 01 2003 - 16:29:26 CST

Original text of this message

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