Skip to main content
Question

Copy two geometries from Oracle to Oracle

  • December 4, 2013
  • 4 replies
  • 16 views

I have an Oracle table with two geometry fields, POLYGON_GEOMETRY and CENTROID_GEOMETRY. I want to copy the table to a new Oracle Spatial database but I have to specify one or the other geometry column names in the reader. How can I copy both geometry fields to the new table?

 

 

Thanks

4 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 4, 2013
Hi,

 

 

Have you tried setting the handle multiple spatial columns parameter to yes under the reader and writer parameters> advanced?

 

 

Itay

  • December 4, 2013
I set both reader and writer parameters for "handle multiple spatial columns" to Yes, but you cannot specify the geometry column names in this case in the reader, and you have to choose one name in the writer. The writer took the polygon geometry, which has an SDO_GTYPE number of 3003 (3D polygon) and wrote it as 2004 (2D heterogeneous). I would like to preserve both geometry names and their geometry types.

 

 

Thanks

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 4, 2013
I see, any luck with a dynamic translation?

david_r
Evangelist
  • December 5, 2013
Hi,

 

 

If you're moving data from one Oracle Spatial instance to another, it might be worthwhile to consider the exp and imp tools from Oracle. They are also very fast.

 

 

Here is a blog post explaining how to use the exp and imp tools.

 

 

David

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings