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

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - 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


TOPOLOGY_ID in the feature tables after transportable tbs is not adjusting to the same TOPOLOGY_ID of the topology they are associated with.

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.

We have users:

topo1
topo

Both have a topology called CITY_DATA.

We transport just the topo schema not topo1.

In the source we have:


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.


Previous select shows that the TOPOLOGY_ID in the feature tables is 2
----------------------------------------

In the target after transportable tablespace we have:


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

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms