3.8 SDO_TOPO.INITIALIZE_METADATA
Format
SDO_TOPO.INITIALIZE_METADATA( topology IN VARCHAR2);
Description
Initializes the topology metadata: sets sequence information for the node, edge, and face tables, and creates (or re-creates) required indexes on these tables.
Parameters
- topology
-
Name of the topology for which to initialize the sequences. The topology must have been created using the SDO_TOPO.CREATE_TOPOLOGY procedure.
Usage Notes
You should run this procedure after loading data into the node, edge, or face tables, to initialize the sequences for these tables with numeric values 2 higher than the highest ID values stored in those tables. This ensures that no attempt is made to reuse the unique ID values in these tables. (The node, edge, and face tables are described in Topology Data Model Tables.)
This procedure creates spatial indexes on the geometry or MBR geometry columns in the node, edge, and face tables. If the indexes were dropped before a bulk load operation, running this procedure after the bulk load will re-create these indexes.
Examples
The following example initializes the metadata for the topology named CITY_DATA
. (The example refers to definitions and data from Topology Built from Topology Data.)
EXECUTE SDO_TOPO.INITIALIZE_METADATA('CITY_DATA');
Parent topic: SDO_TOPO Package Subprograms