Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: New Extent Allocation of Segments

Re: New Extent Allocation of Segments

From: Markus Korn <markus.korn_at_at.siemens.de>
Date: Mon, 12 Jul 1999 09:30:36 +0200
Message-ID: <3789999C.8C2E57AF@at.siemens.de>


  In order to get the exact number of blocks that contain data for a
particular table you need to issue the following query:

   select count(distinct(substr(rowid,1,8))) from <table name>;

  This will bring back the number of distinct blocks for the table.

Jon Blake wrote:
>
> I want a method of determining when a segment such as a data table is
> about to acquire a new extent because all existing extents are almost
> full. This method should ideally involve querying the dictionary or
> executing an Oracle-provided package, and could for example identify the
> remaining number of average-sized records that can be inserted into the
> table before another extent will be required.
Received on Mon Jul 12 1999 - 02:30:36 CDT

Original text of this message

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