Re: Varied block density for fixed length row tables
From: Rich Jesse <rjoralist2_at_society.servebeer.com>
Date: Wed, 14 Sep 2011 12:42:15 -0500 (CDT)
Message-ID: <86892f46c56952131780b15b51cca1ea.squirrel_at_society.servebeer.com>
Hi David,
Date: Wed, 14 Sep 2011 12:42:15 -0500 (CDT)
Message-ID: <86892f46c56952131780b15b51cca1ea.squirrel_at_society.servebeer.com>
Hi David,
> Why are you not using the DBMS_ROWID functions?
>
> select dbms_rowid.rowid_block_number(rowid), count(*)
> from <table_name>
> group by dbms_rowid.rowid_block_number(rowid)
> order by 1;
I have it stuck in my head that the above returns the block number relative to the datafile, so I would get duplicates with multiple datafiles per tablespace. I have run that (before I even posted), and the empirical evidence seems to back that up.
However, the documentation says it returns "database block number", but I'm not exactly sure what that means. This might call for more research!
Thanks!
Rich
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Sep 14 2011 - 12:42:15 CDT