Unix Technical Forum

Re: converting Oracle scripts to PostgreSQL

This is a discussion on Re: converting Oracle scripts to PostgreSQL within the pgsql Sql forums, part of the PostgreSQL category; --> Hi Gary, I went through a conversion from Oracle to PostgreSQL about 9 months ago. There's a little bit ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:53 AM
Clint Stotesbery
 
Posts: n/a
Default Re: converting Oracle scripts to PostgreSQL

Hi Gary,
I went through a conversion from Oracle to PostgreSQL about 9 months ago.

There's a little bit of documentation in the PostgreSQL manual
http://www.postgresql.org/docs/7.4/i...l-porting.html
or
http://www.postgresql.org/docs/8.0/i...l-porting.html

I had ment to submit docs to the manual but never got around to it since
they could definately be expanded. The biggest issues I had for my project
was that there were no statement level triggers and you couldn't do instead
of triggers on views if my memory serves correct. plpgsql is really similar
to Oracle plsql and in many cases you don't need to even change syntax. I
could even you send the work I did since it was for school if you are
interested.

The reference manual for plpgsql can be found at:
http://www.postgresql.org/docs/7.4/i...e/plpgsql.html
or
http://www.postgresql.org/docs/8.0/i...e/plpgsql.html

Installing procedural languages:
http://www.postgresql.org/docs/7.4/i...ve/xplang.html
or
http://www.postgresql.org/docs/8.0/i...ve/xplang.html

triggers:
http://www.postgresql.org/docs/7.4/i.../triggers.html
or
http://www.postgresql.org/docs/8.0/i.../triggers.html

rules:
http://www.postgresql.org/docs/7.4/i...ive/rules.html
or
http://www.postgresql.org/docs/8.0/i...ive/rules.html

sql command syntax (for scripts):
http://www.postgresql.org/docs/7.4/i...-commands.html
or
http://www.postgresql.org/docs/8.0/i...-commands.html

Also try searching the mailing here:
http://archives.postgresql.org/pgsql-sql/

You will probably find many of my old posts when I was converting Oracle to
PostgreSQL. Hope this helps you get started.
-Clint


----Original Message Follows----
From: "Gary Broadbent" <Gary.Broadbent@gtnet.com>
Reply-To: <Gary.Broadbent@gtnet.com>
To: <pgsql-sql@postgresql.org>
Subject: [SQL] converting Oracle scripts to PostgreSQL
Date: Wed, 19 Jan 2005 12:37:48 -0000


Hi,

I have a database in Oracle that I want to convert to PostgreSQL.

I have exported the scripts used to create the tables, constraints and
sequences in Oracle and wish to convert these to postgreSQL scripts now.

Is there an easy way to do this?

Regards,
Gary.


__________________________________________________ ______________________________
This email (and any attachments) is private and confidential, and is
intended
solely for the addressee. If you have received this communication in error
please remove it and inform us via telephone or email.

Although we take all possible steps to ensure mail and attachments are free
from malicious content, malware and virii, we cannot accept any
responsibility
whatsoever for any changes to content outwith our administrative bounds.

The views represented within this mail are solely the view of the
author and do not reflect the views of Graham Technology as a whole.
__________________________________________________ ______________________________

Graham Technology plc http://www.gtnet.com
__________________________________________________ ______________________________


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com