RE: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql - Mailing list pgsql-general

From Ko, Christina
Subject RE: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql
Date
Msg-id 3146d3b20f3840a2abb5c16223154d76@lmco.com
Whole thread Raw
In response to Re: Loading Oracle Spatial Data to Postgresql  (Gilles Darold <gilles@darold.net>)
Responses Re: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql
List pgsql-general

 

 

From: Gilles Darold <gilles@darold.net>
Sent: Thursday, August 20, 2020 10:54 AM
To: Ko, Christina (US) <christina.ko@lmco.com>; pgsql-general@lists.postgresql.org
Cc: Ho, Chuong <chuongho@amazon.com>
Subject: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql

 

Le 20/08/2020 à 16:30, Ko, Christina a écrit :

Hi All,

 

I am running into issue using DMS to load oracle spatial data (oracle 11.2.0.3) to postgresql.

 

Oracle table:

 

CREATE TABLE Spatial_Tbl

 ID        NUMBER(38,9),

  P_ID      NUMBER(38,9),

  GEOMETRY  MDSYS.SDO_GEOMETRY

 

 

AWS DMS calls the SDO2GEOJSON custom function trying to load the data, but it failed and the Geometry columns in Postgresql was empty

I also tried using SDO_UTIL.TO_GEOJSON utility and didn’t work either.

 

I am looking for suggestions of how to load the geometry data from oracle 11.2.0.3 to oracle.

 

Thanks in advanced for your help!

 

Christina



 

Hi,

 

You can either use oracle_fdw or Ora2Pg. The first is a FDW extension that will allow you to use a foreign table to upload the data into your destination table and the second tool export data from the Oracle database to plain text file or to your PostgreSQL table directly.

 

Best regards,

-- 
Gilles Darold
http://www.darold.net/
 
I have just installed ora2pg and will see if it works.  I believe I have to specify my setting in the config,  do you have any suggestion of what I have to set in the config file to load spatial data from oracle to postgresql.  Thank you.
 
Christina

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql
Next
From: Adrian Klaver
Date:
Subject: Re: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql