Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle internals.
"Thomas Kyte" <tkyte_at_us.oracle.com> wrote in message
news:9v0hvn01qac_at_drn.newsguy.com...
> In article <3c13bffb$0$2579$afc38c87_at_news.optusnet.com.au>, "Howard
says...
> >
> >Comments below.
> >HJR
> >--
> >----------------------------------------------
> >Resources for Oracle: http://www.hjrdba.com
> >===============================
> >
> >
> >"Andrej" <andrej611_at_wp.pl> wrote in message
> >news:9v0dag$9a1$1_at_korweta.task.gda.pl...
> >> Hello,
> >>
> >> I am looking for the following info concering Oracle internals:
> >> - how does Oracle know what blocks are assigned to what tables ? does
is
> >> blindly scan throug all the blocks ?
> >
> >No, it holds that information in data dictionary tables. Specifically,
UET$
> >records what extents exist, and who owns them. Tables such as OBJ$ and
TAB$
> >also come into play. In locally managed tablespace, a bitmap at the
header
> >of the tablespace indicates whether a block is reserved for use or not.
> >Data dictionary entries still say which object owns which block.
> >
> >> - I know a single block can hold data for different segments.
> >
> >No it can't.
>
A cluster (we're talking index clusters here, naturally) is a segment. Therefore, the block still holds entries relating to one segment.
If you create a cluster called BLAH_CLU, and create an emp and a dept table within that cluster, a select from dba_segments will list BLAH_CLU, buit not sight nor sound of an EMP or DEPT table.
Regards
HJR
> >
> >>So where is a
> >> glue that holds a blocks/extents of a segment toegether ?
> >
> >There is no such substance.
>
> the data dictionary for dictionary managed tablespaces (uet/fet) and the
bitmap
> header for LMTs does this.
> >> >
> >
>
>
>> >
> >Regards
> >HJR
> >
> >
> >
> >>
> >> Just beeing courious,
> >> Andrej
> >>
> >>
>> Expert one on one Oracle, programming techniques and solutions for Oracle.
> --
> Thomas Kyte (tkyte@us.oracle.com) http://asktom.oracle.com/