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 ----- Original Message ----- To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: Monday, December 01, 2003 9:29 PM > > 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: [EMAIL PROTECTED] > > 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: [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.net -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] 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: [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).
