My Oracle Support Banner

Topology_Id In The Feature Tables After Transportable Tablespace Is Not Adjusting (Doc ID 1294690.1)

Last updated on FEBRUARY 19, 2019

Applies to:

Oracle Spatial and Graph - Version 10.2.0.4 to 11.2.0.2 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

After Transportable Tablespace the TOPOLOGY_ID in the feature tables does not match the TOPOLOGY_ID in ALL_SDO_TOPO_INFO. This happens when more than one user has topologies.

For example, consider 2 users:

topo1
topo

Both users have a topology called CITY_DATA.

IF you transport just the topo schema but not topo1.

In the source:

col owner format a14
col table_name format a20
select owner, table_name, topology, topology_id from all_sdo_topo_info;

OWNER TABLE_NAME TOPOLOGY TOPOLOGY_ID
-------------- -------------------- -------------------- -----------
TOPO LAND_PARCELS CITY_DATA 2
TOPO TRAFFIC_SIGNS CITY_DATA 2
TOPO CITY_STREETS CITY_DATA 2
TOPO1 LAND_PARCELS CITY_DATA 1
TOPO1 TRAFFIC_SIGNS CITY_DATA 1
TOPO1 CITY_STREETS CITY_DATA 1

 

set pagesize 10000
select feature from topo.land_parcels
union
select feature from topo.traffic_signs
union
select feature from topo.city_streets;

FEATURE(TG_TYPE, TG_ID, TG_LAYER_ID, TOPOLOGY_ID)
-----------------------------------------------------------------------------
SDO_TOPO_GEOMETRY(3, 1, 1, 2)
SDO_TOPO_GEOMETRY(3, 2, 1, 2)
SDO_TOPO_GEOMETRY(3, 3, 1, 2)
SDO_TOPO_GEOMETRY(3, 4, 1, 2)
SDO_TOPO_GEOMETRY(3, 5, 1, 2)
SDO_TOPO_GEOMETRY(1, 1, 2, 2)
SDO_TOPO_GEOMETRY(1, 2, 2, 2)
SDO_TOPO_GEOMETRY(1, 3, 2, 2)
SDO_TOPO_GEOMETRY(1, 4, 2, 2)
SDO_TOPO_GEOMETRY(2, 1, 3, 2)
SDO_TOPO_GEOMETRY(2, 2, 3, 2)
SDO_TOPO_GEOMETRY(2, 3, 3, 2)
SDO_TOPO_GEOMETRY(2, 4, 3, 2)

13 rows selected.

The previous select shows that the TOPOLOGY_ID in the feature tables is 2
----------------------------------------
In the target database after transportable tablespace the TOPOLOGY_ID is different:

col owner format a14
col table_name format a20
select owner, table_name, topology, topology_id from all_sdo_topo_info;
-- NOTE THAT TOPOLOGY_ID is 1
OWNER TABLE_NAME TOPOLOGY TOPOLOGY_ID
-------------- -------------------- -------------- -----------
TOPO LAND_PARCELS CITY_DATA 1
TOPO TRAFFIC_SIGNS CITY_DATA 1
TOPO CITY_STREETS CITY_DATA 1


set pagesize 10000
select feature from topo.land_parcels
union
select feature from topo.traffic_signs
union
select feature from topo.city_streets;

FEATURE(TG_TYPE, TG_ID, TG_LAYER_ID, TOPOLOGY_ID)
-----------------------------------------------------------------------------
SDO_TOPO_GEOMETRY(3, 1, 1, 2)
SDO_TOPO_GEOMETRY(3, 2, 1, 2)
SDO_TOPO_GEOMETRY(3, 3, 1, 2)
SDO_TOPO_GEOMETRY(3, 4, 1, 2)
SDO_TOPO_GEOMETRY(3, 5, 1, 2)
SDO_TOPO_GEOMETRY(1, 1, 2, 2)
SDO_TOPO_GEOMETRY(1, 2, 2, 2)
SDO_TOPO_GEOMETRY(1, 3, 2, 2)
SDO_TOPO_GEOMETRY(1, 4, 2, 2)
SDO_TOPO_GEOMETRY(2, 1, 3, 2)
SDO_TOPO_GEOMETRY(2, 2, 3, 2)
SDO_TOPO_GEOMETRY(2, 3, 3, 2)
SDO_TOPO_GEOMETRY(2, 4, 3, 2)

13 rows selected.

Previous query shows TOPOLOGY_ID 2

The topology_id in the feature tables does not match the topology_id in all_sdo_topo_info

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.