Oracle Spatial User's Guide and Reference
Release 8.1.7

Part Number A85337-01

Library

Product

Contents

Index

Go to previous page Go to next page

10
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 10-1.

Table 10-1 Migration Procedures
Procedure  Description 

SDO_MIGRATE.FROM_815_TO_81X 

Migrates data from Spatial release 8.1.5 to the current release. 

SDO_MIGRATE.TO_734 

Migrates data from a previous release of Spatial Data Option to release 7.3.4. 

SDO_MIGRATE.TO_81X 

Migrates tables from Spatial Data Option 7.3.4 or Spatial Cartridge 8.0.4 to Oracle Spatial. 

SDO_MIGRATE.OGIS_METADATA_FROM 

Generates a temporary table used when migrating OGIS (OpenGIS) metadata tables.  

SDO_MIGRATE.OGIS_METADATA_TO 

Reads a temporary table used when migrating OGIS metadata tables. 


SDO_MIGRATE.FROM_815_TO_81X

Format

SDO_MIGRATE.FROM_815_TO_81X(

Description

Migrates data from Spatial release 8.1.5 to the current release.

Parameters

tabname

Table with geometry objects.

Usage Notes

See Section B.5 for important information about migrating from Spatial release 8.1.5.

All geometry objects in tabname will be migrated so that their SDO_GTYPE and SDO_ETYPE values are in the release 8.1.6 format.

Examples

The following example changes the definitions of geometry objects in the ROADS table from the release 8.1.5 format to the format of the current release.

SQL> execute sdo_migrate.from_815_to_81x('ROADS');

SDO_MIGRATE.TO_734

Format

SDO_MIGRATE.TO_734(

Description

Migrates data from a previous release of Spatial Data Option to release 7.3.4.

Parameters

sn

Schema name of the owner of layer.

layer

Name of the layer to be migrated.

tess_type

Type of tessellation (indexing) to be used: FIXED or VARIABLE.

param

Parameter whose significance depends on tess_type:

Usage Notes

None.

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

Format

SDO_MIGRATE.TO_81X(

Description

Migrates data from a previous release of Spatial Cartridge or Spatial Data Option to the current release of Oracle Spatial.

Parameters

layer

Name of the layer to be migrated.

newtabname

Name of the new table to which you are migrating the data.

gidcolumn

The name of the column in which to store the GID from the old table.

geocolname

Name of the column in the new table where the geometry objects will be inserted.

layer_gtype

One of the following values: POINT or NOTPOINT (default).

If the layer you are migrating is composed solely of point data, set this parameter to POINT for optimal performance; otherwise, set this parameter to NOTPOINT.

updateflag

One of the following values: UPDATE or INSERT (default).

If you are migrating the layer into an existing populated attribute table, set this parameter to UPDATE; otherwise, set this parameter to 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

Format

SDO_MIGRATE.OGIS_METADATA_FROM

Description

Called at the source database when migrating from one 8.1.5 database to another 8.1.5 database. The procedure migrates OGIS (OpenGIS) metadata entries from schemas owned by MDSYS.

Parameters

None.

Usage Notes

Consider the following when using this procedure:


SDO_MIGRATE.OGIS_METADATA_TO

Format

SDO_MIGRATE.OGIS_METADATA_TO

Description

Used at the destination database when migrating from one 8.1.5 database to another 8.1.5 database. The procedure migrates OGIS (OpenGIS) metadata entries from schemas owned by MDSYS.

Parameters

None.

Usage Notes

Consider the following when using this procedure:


Go to previous page Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index