My Oracle Support Banner

How To Maintain Spatial Metadata On Views After Datapump Import (Doc ID 2844761.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Spatial and Graph - Version 19.13.0.0.0 and later
Information in this document applies to any platform.

Goal

When performing a database migration using datapump, using schema export/import like this:

export from 11g database
expdp system/ SCHEMAS=schema_name directory=U03_PUMP_DIR dumpfile=file.dmp logfile=log_file.log flashback_time=systimestamp

import into 19c PDB
impdp system/@machinevm:<port>/gisibt DIRECTORY=PUMP_DIR DUMPFILE=file.dmp LOGFILE=log_file.log

After import it seems some spatial data is missing for views using the SDO_GEOMETRY datatype. In PL/SQL developer there is an option 'Update Spatial Metadata' - when right clicking on the view and performing this action, the issue is resolved.
How to avoid this time consuming task, if there are hundreds of views that need to be processed.
 

Solution

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
Goal
Solution


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