Oracle8i Spatial User's Guide and Reference
Release 8.1.5

A67295-01

Library

Product

Contents

Index

Prev Next

8
Migration Procedures

The procedures described in this chapter let you upgrade geometry tables from previous releases of Spatial Cartridge or Spatial Data Option.

This chapter contains descriptions of the migration procedures shown in Table 8-1.

Table 8-1 Migration Procedures
Procedure  Description 

SDO_MIGRATE.TO_734  

Migrate tables from Spatial Data Option 7.3.3 to Spatial Data Option 7.3.4 and Spatial Cartridge 8.0.4 format.  

SDO_MIGRATE.TO_81X  

Migrate tables from Spatial Data Option 7.3.4 or Spatial Cartridge 8.0.4 to Oracle8i Spatial.  

SDO_MIGRATE.OGIS_METADATA_FROM  

Generate a temporary table used when migrating OGIS metadata tables.  

SDO_MIGRATE.OGIS_METADATA_TO  

Read a temporary table used when migrating OGIS metadata tables.  


SDO_MIGRATE.TO_734

Purpose

This procedure migrates data from a previous release of Spatial Data Option to release 7.3.4.

Syntax

SDO_MIGRATE.TO_734 (schema_name, layername, tessellation, param)

Keywords and Parameters

schema_name  

Specifies the schema name of the owner of the layer.
Data type is VARCHAR2.  

layername  

Specifies the name of the layer.
Data type is VARCHAR2.  

tessellation  

Specifies the type of indexing used, either FIXED or VARIABLE.
Data type is VARCHAR2.  

param  

Specifies the SDO_LEVEL or SDO_NUMTILES value.
Data type is NUMBER.  

Usage Notes

The value of the param argument is evaluated relative to the value of the tessellation argument. If tessellation is FIXED, then param is the SDO_LEVEL value. If tessellation is VARIABLE, then param is the SDO_NUMTILES value.

Examples

For fixed-size tessellation:

SQL> execute sdo_migrate.to_734('HERMAN', 'ROADS', 'FIXED', 10);

For variable-sized tessellation:

SQL> execute sdo_migrate_to_734('HERMAN', 'ROADS', 'VARIABLE',4);

SDO_MIGRATE.TO_81X

Purpose

This procedure migrates data from a previous release of Spatial Cartridge or Spatial Data Option to Oracle8i Spatial (release 8.1.5.)

Syntax

SDO_MIGRATE.TO_81X (old_layername, new_tablename geom_column, GID_column,
layer_gtype, update_flag
)

Keywords and Parameters

old_layername  

Specifies the name of the old layer.
Data type is VARCHAR2.  

new_tablename  

Specifies the name of the new table to which you are migrating the data.
Data type is VARCHAR2.  

GID_column  

Specifies the name of the column in which to store the GID from the old table.
Data type is NUMBER.  

geom_column  

Specifies the column name in the new table where the geometry object will be inserted.
Data type is SDO_GEOMETRY.  

layer_gtype  

If the layer you are migrating is composed soley of point data, set this parameter to 'POINT' for optimal performance.
Data type is VARCHAR2.
Default is 'NOTPOINT'.  

update_flag  

Specifies special processing for point data.

If you are migrating the layer into an existing populated attribute table, set this parameter to 'UPDATE'.
Data type is VARCHAR2.
Default is 'INSERT'.  

Usage Notes

Consider the following when using this procedure:

Examples

Insert point-only data into new rows:

execute sdo_migrate.to_81x('raptor', 'raptor', 'sdo_gid', 'feature', 'point'); 

Insert nonpoint data into new rows:

execute sdo_migrate.to_81x('BTU', 'BTU', 'sdo_gid', 'feature'); 

Update point-only data into existing rows:

execute sdo_migrate.to_81x('raptor', 'raptor', 'sdo_gid', 'feature',  
'point', 'update');

Update nonpoint data into existing rows:

execute sdo_migrate.to_81x('BTU', 'BTU', 'sdo_gid', 'feature',  
'notpoint', 'update');

SDO_MIGRATE.OGIS_METADATA_FROM

Purpose

This procedure is called at the source database when migrating from one 8.1.5 database to another 8.1.5 database. The procedure migrates OGIS metadata entries from schemas owned by mdsys.

Syntax

SDO_MIGRATE.OGIS_METADATA_FROM

Keywords and Parameters

None.

Usage Notes

Consider the following when using this procedure:


SDO_MIGRATE.OGIS_METADATA_TO

Purpose

This procedure is used at the destination database when migrating from one 8.1.5 database to another 8.1.5 database. The procedure migrates OGIS metadata entries from schemas owned by mdsys.

Syntax

SDO_MIGRATE.OGIS_METADATA_TO

Keywords and Parameters

None.

Usage Notes

Consider the following when using this procedure:




Prev

Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index