Oracle7 Spatial Data Option User's Guide and Reference | Library |
Product |
Contents |
Index |
Also see Appendix A, "Sample SQL Scripts" for additional administrative tools useful for working with partitioned point data.
SDO_ADMIN.ALTER_HIGH_WATER_MARK
Purpose
This procedure alters the high water mark of a partitioned spatial table. The high water mark defines how many records can be stored in a partition before it subdivides. The table must exist and be registered in the Spatial Data Option data dictionary. Syntax
SDO_ADMIN.ALTER_HIGH_WATER_MARK (tablename, high_water_mark) Keywords and Parameters
tablename
|
Specifies the name of the partitioned table. Datatype is VARCHAR2.
|
high_water_mark
|
Specifies the new high water mark for the table. Datatype is INTEGER.
|
SQL> EXECUTE SDO_ADMIN.ALTER_HIGH_WATER_MARK('table1', 5000);
tablename
|
Specifies the name of the partitioned table. Datatype is VARCHAR2.
|
This procedure does not drop the spatial table and its associated partition tables from the user's schema. For a description of how to remove a partitioned spatial table from the user's schema, see the droppart.sql sample SQL script file described in Section A.3.
SQL> EXECUTE SDO_ADMIN.DROP_PARTITION_INFO('table1');
SQL> EXECUTE SDO_ADMIN.PARTITION('source1','table1',1,10,FALSE);
Use this procedure to generate a fixed number of tiles.
SQL> EXECUTE SDO_ADMIN.POPULATE_INDEX('layer1', 4, FALSE);
Use this procedure to tessellate the geometries into fixed-size tiles.
Consider the following when using this procedure:
SQL> EXECUTE SDO_ADMIN.POPULATE_INDEX_FIXED('layer1', 4, TRUE);
tablename
|
Specifies the name of the partitioned table. Datatype is VARCHAR2.
|
This procedure is used after calls to SDO_ADMIN.PARTITION() or SDO_ADMIN.REPARTITION(). It must be called by the owner of the partition.
This procedure must be compiled prior to use. See Section A.4, "sdogrant.sql Script".
SQL> EXECUTE SDO_ADMIN.PROPAGATE_GRANTS('TABLE1');
The SQL CREATE TABLE command is used to create the partitioned spatial table, with the partition key column defined as RAW(255), prior to calling this procedure.
SQL> EXECUTE SDO_ADMIN.REGISTER_PARTITION_INFO('table1',
2> 'hhcolumn', 1000);
SQL> EXECUTE SDO_ADMIN.REPARTITION('table1', 1);
layername
|
Specifies the name of the data set layer. Datatype is VARCHAR2.
|
You should always set the SDO_MAXCODE column to one greater than the SDO_CODE column.
SQL> EXECUTE SDO_ADMIN.UPDATE_INDEX('layer1', 25, 4, TRUE);
SQL> EXECUTE SDO_ADMIN.UPDATE_INDEX('layer1', 25, 4, FALSE);
If this procedure does not find the geometry and spatial index tables, it generates the following error: SDO 13113 (Oracle table does not exist)
SQL> EXECUTE SDO_ADMIN.VERIFY_LAYER('layer1');
tablename
|
Specifies the name of the table. Datatype is VARCHAR2.
|
This procedure can generate the following errors depending on the results of the verification:
SQL> EXECUTE SDO_ADMIN.VERIFY_PARTITIONS('table1');
Prev Next |
Copyright © 1996 Oracle Corporation. All Rights Reserved. |
Library |
Product |
Contents |
Index |