10.12.2012 Views

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Usage Notes<br />

SDO_TUNE.ESTIMATE_RTREE_INDEX_SIZE<br />

partname<br />

Name of a partition containing geometries from colname. If you specify this<br />

parameter, the value returned by the function is the estimated size for an R-tree<br />

index table on geometries in that partition. If you do not specify this parameter, the<br />

value is the estimated size for an R-tree index table on all geometries in colname.<br />

number_of_geoms<br />

Approximate number of geometries in the spatial geometry table.<br />

db_block_size<br />

Database block size (in bytes).<br />

sdo_rtr_pctfree<br />

Minimum percentage of slots in each index tree node to be left empty when the<br />

index is created. Slots that are left empty can be filled later when new data is<br />

inserted into the table. The value can range from 0 to 50. The default value (10) is<br />

best for most applications; however, a value of 0 is recommended if no updates will<br />

be performed to the geometry column.<br />

num_dimensions<br />

Number of dimensions to be indexed. The default value is 2. If you plan to specify<br />

the sdo_indx_dims parameter in the CREATE INDEX statement, the num_<br />

dimensions value should match the sdo_indx_dims value.<br />

is_geodetic<br />

A value indicating whether or not the spatial index will be a geodetic index: 1 for a<br />

geodetic index, or 0 (the default) for a non-geodetic index. (Section 4.1.2 explains<br />

geodetic indexes.)<br />

The function returns the estimated maximum number of megabytes needed for the<br />

spatial index table (described in Section 2.5.2) for an R-tree spatial index to be<br />

created. The value returned is the maximum number of megabytes needed after<br />

index creation. During index creation, approximately three times this value of<br />

megabytes will be needed in the tablespace, to ensure that there is enough space for<br />

temporary tables while the index is being created.<br />

This function has two formats:<br />

■ Use the format with character string parameters (schemaname, tabname,<br />

colname, <strong>and</strong> optionally partname) in most cases when the spatial geometry<br />

table already exists, you do not plan to add substantially more geometries to it<br />

<strong>Spatial</strong> Tuning Subprograms 18-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!