forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2e2d17e
committed
Here the latest version and first working release of Ora2Pg a tool to export
Oracle database to PostgreSQL. It currently dump the database schema (tables, views, sequences, indexes, grants), with primary, unique and foreign keys into PostgreSQL syntax without editing the SQL code generated. You can dump only a particular schema from the Oracle database. Functions, procedures and triggers with SQL or PLSQL code generated must be reviewed to match the PostgreSQL syntax. Some usefull recommandation on porting Oracle to PostgreSQL can be found athttp://techdocs.postgresql.org/ under the "Converting from other Databases to PostgreSQL" Oracle part. Ijust notice one thing more is that the trunc() function in Oracle is the same fornumber or date so be carefull when porting to PostgreSQL to use trunc() for numberand date_trunc() for date.I will add more precision in type NUMBER conversion based on length to matchas closest as possible all rich PostgreSQL numerics type. But it seems not to beurgent as it seems that Oracle DBAs only create number with length 22 (default)Space seems not to be their problem...Gilles DAROLD1 parenta0c12d5 commit2e2d17e
File tree
6 files changed
+1293
-494
lines changed- contrib/oracle
6 files changed
+1293
-494
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + |
0 commit comments
Comments
(0)