Skip to content

Commit

Permalink
Add information about custom directory installation. Thanks to jogues…
Browse files Browse the repository at this point in the history
…s for the report.
  • Loading branch information
darold committed Sep 26, 2018
1 parent 90f8a84 commit 570e9ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
16 changes: 14 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,18 @@ INSTALLATION
directory and the ora2pg.conf file as well as all documentation files
into C:\ora2pg\

To install ora2pg in a different directory than the default one, simply
use this command:

perl Makefile.PL PREFIX=<your_install_dir>
make && make install

then set PERL5LIB to the path to your installation directory before
using Ora2Pg.

export PERL5LIB=<your_install_dir>
ora2pg -c config/ora2pg.conf -t TABLE -b outdir/

Packaging
If you want to build the binary package for your preferred Linux
distribution take a look at the packaging/ directory of the source
Expand Down Expand Up @@ -1992,7 +2004,7 @@ CONFIGURATION
PG_SUPPORTS_PARTITION
PostgreSQL version prior to 10.0 do not have native partitioning.
Enable this directive if you want to use declarative partitioning.
Disable by default.
Enable by default.

PG_SUPPORTS_SUBSTR
Some versions of PostgreSQL like Redshift doesn't support substr()
Expand Down Expand Up @@ -2022,7 +2034,7 @@ CONFIGURATION
function to update the associated sequences with the restart value
set to "SELECT max(colname)+1 FROM tablename". Of course this file
must be imported after data import otherwise sequence will be kept
to start value.
to start value. Enabled by default.

PG_SUPPORTS_PROCEDURE
PostgreSQL v11 adds support of PROCEDURE, enable it if you use such
Expand Down
14 changes: 13 additions & 1 deletion doc/Ora2Pg.pod
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ This will install scripts and libraries into your Perl site installation
directory and the ora2pg.conf file as well as all documentation files
into C:\ora2pg\

To install ora2pg in a different directory than the default one, simply
use this command:

perl Makefile.PL PREFIX=<your_install_dir>
make && make install

then set PERL5LIB to the path to your installation directory before using
Ora2Pg.

export PERL5LIB=<your_install_dir>
ora2pg -c config/ora2pg.conf -t TABLE -b outdir/

=head2 Packaging

Expand Down Expand Up @@ -2059,7 +2070,7 @@ Enabled by default.

PostgreSQL version prior to 10.0 do not have native partitioning.
Enable this directive if you want to use declarative partitioning.
Disable by default.
Enable by default.

=item PG_SUPPORTS_SUBSTR

Expand Down Expand Up @@ -2092,6 +2103,7 @@ Additionally in both cases, Ora2Pg will create a file AUTOINCREMENT_output.sql
with a embedded function to update the associated sequences with the restart
value set to "SELECT max(colname)+1 FROM tablename". Of course this file must
be imported after data import otherwise sequence will be kept to start value.
Enabled by default.

=item PG_SUPPORTS_PROCEDURE

Expand Down

0 comments on commit 570e9ed

Please sign in to comment.