1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Update to ora2pg 1.2.

This commit is contained in:
Bruce Momjian
2001-05-13 02:10:00 +00:00
parent 911a498176
commit 904ba3ff69
6 changed files with 926 additions and 531 deletions

View File

@ -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