Oracle8(TM) Server Spatial Cartridge User's Guide and Reference Release 8.0.3 A53264_01 |
|
Spatial Cartridge provides the essential functions, procedures, and scripts for using and managing both spatially indexed data and partitioned point data. The information in this chapter is only relevant to users utilizing table partitioning for very large quantities of point data.
Partitioning is a technique where data is loaded into tables that automatically subdivide when a predefined maximum size is reached. During subdivision, data is moved from the parent partition to the child partitions and the parent partition is dropped. Storage parameters for child partitions are inherited from the root partition and can be changed at any time.
A partitioned table has a partition key that is an HHCODE column created by encoding multidimensional point data using the SDO_ENCODE()
function. In the partitioning process, at each subdivision data is subdivided into 2n partitions where n is the number of dimensions encoded in the HHCODE. You can encode up to 32 dimensions using Spatial Cartridge.
This manual does not attempt to provide the information necessary for fully utilizing table partitioning for point data. The following is a high-level description of the partitioning process:
An HHCODE column is a new data type used to encode multiple dimensions into a unique orderable value. HHCODE is not a point, but rather a bounded cell representing an object space in as many dimensions as have been defined. An HHCODE data type is defined as RAW(255).
SDO_ENCODE()
function. The HHCODE data type will be used as the partition key.
SDO_ADMIN.REGISTER_PARTITION_INFO()
procedure. This procedure takes the name of a table, the name of the partition key column, and the maximum number of records you want stored in a partition before it subdivides.
SDO_ADMIN.PARTITION()
procedure with the name of the table or view containing the partition key column and the tablespace in which the partitions should be created. In this step, the data is partitioned based on dimensions encoded in the HHCODE.
SDO_ADMIN.PROPAGATE_GRANTS()
procedure to set those properties on the partitions.
SDO_ADMIN.PARTITION()
again. The dimensions encoded in the HHCODE column must have the same boundaries to be loaded into the existing partitioned table.
SDO_ADMIN.REPARTITION()
procedure to reorganize the partitioned table. Repartitioning is a computation intensive task that should be performed only when necessary.
See the following sections for details of the functions supporting partitioned point data: