Commit 904ba3ff authored by Bruce Momjian's avatar Bruce Momjian

Update to ora2pg 1.2.

parent 911a4981
2001 05 09 - Initial version 1.0
2001 05 09 - Version 1.1
- Add table grant extraction based on group. Oracle ROLES are groups in PG
2001 05 11 - Version 1.2
- Views extraction is now really done with the option type=>'VIEWS'
- Add indexes extraction on tables.
- Changes name of constraints, default is now used.
- Add debug printing to see that the process is running :-)
- Add extraction of only required tablename.
- Add extraction of only n to n table indice. Indices of extraction can be obtained
with the option showtableid set to 1.
- Fix print of NOT NULL field.
- Complete rewrite of the grant extraction
- Complete rewrite of most things
This diff is collapsed.
This diff is collapsed.
- Extract sequences on tables. Seem to be difficult, can't find the way to link
a sequence with one or more column. So problably just dump and edit manually
- More precision in type conversion based on length (I've no good DB to do that)
- Extract triggers and internal function.
- Extract datas.
- SQL queries converter.
This diff is collapsed.
......@@ -20,7 +20,7 @@ use strict;
use Ora2Pg;
# Initialyze the database connection
my $dbsrc = 'dbi:Oracle:host=aliciadb.samse.fr;sid=ALIC;port=1521';
my $dbsrc = 'dbi:Oracle:host=test.mydomain.com;sid=TEST;port=1521';
my $dbuser = 'system';
my $dbpwd = 'manager';
......@@ -29,6 +29,12 @@ my $schema = new Ora2Pg (
datasource => $dbsrc, # Database DBD datasource
user => $dbuser, # Database user
password => $dbpwd, # Database password
debug => 1, # Verbose mode
# type => 'VIEW', # Extract views
# tables => [('MY_TABLE1','MY_TABLE2')], # Extract only these table
# showtableid => 1, # Display only table indice during extraction
# min => 1, # Extract begin at indice 1
# max => 10 # Extract ended at indice 10
);
# Create the POSTGRESQL representation of all objects in the database
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment