On 3/9/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:> Is it a simple action to convert a database from PostgreSQL to Oracle ?Yes, relatively. > Has someone any idea ?There's a couple ways to do this, but I'd recommend first usingpg_dump to export schema only.Your functions and triggers would need to be rewritten, but assuming they're in PL/pgSQL, it's a fairly trivial task to translate them intoPL/SQL.As far as the views and sequences are concerned, pull them out of thepg_dump export and re-run them in TOAD, SQL*Plus, or your favorite tool.As far as the type goes, I'm not quite sure what you're doing with itor how it's used, but it should also be easy to migrate.To copy the data and table definitions, I'd use a database link (on the Oracle side) with hsodbc connecting to your PostgreSQL system viaODBC.Now that my advice is done with, could you explain why you need tomove to Oracle from PostgreSQL?--Jonah H. Harris, Software Architect | phone: 732.331.1324EnterpriseDB Corporation | fax: 732.331.130133 Wood Ave S, 3rd Floor | jharris@enterprisedb.comIselin, New Jersey 08830 | http://www.enterprisedb.com/
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных