diff --git a/changelog b/changelog index 9e5fb6cf..1d5e93ee 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,59 @@ +2016 02 22 - v17.0 + +This new major release adds a new action type TEST to obtain a count +of all objects at both sides, Oracle and PostgreSQL, to perform a +diff between the two database and verify that everything have been +well imported. It also fixes several issues reported by users. + +A new ora2pg command line option have been added to ora2pg script: + + * Add --count_rows command line option to perform a real row count + on both side, Oracle and PostgreSQL, in TEST report. + +Here is the complete list of changes and bugfixes: + + - Prefix direct call to function with a call to PERFORM. Thanks to + Michael Vitale for the feature request. + - Fix revoke call on function with multiline parameters declaration. + - Fix auto setting of internal schema variable with mysql. + - Define ORACLE_HOME with the corresponding environment variable in + generic configuration when available and --init_project is used. + Thanks to Stephane Tachoires for the report. + - Fix documentation about exporting view as table. + - Remove some obsolete code and display information when a view is + exported as table. + - Fix empty LOB data export with Oracle Lob locator (NO_LOB_LOCATOR + set to 0). + - Fix data export of partitions with single process mode and when + FILE_PER_TABLE is enabled. + - Fix export of RAW data type. + - Fix missing $ to call to self variable. Thanks to NTLIS and Sirko + for the report. + - Force FKey to be initially immediate when deferred is not set. + Thanks to Stephane Tachoire for the report. + - Fix count of check constraint when a schema is forced. + - Allow TEST action on mysql database too with some improvements + and bug fix on the feature. + - Fix index column renaming in mysql export. + - Fix dblink extraction query when an exclusion is set. + - Fix sequence name auto generation for mysql serial number. + - Add --count_rows command line option to make optional the real + row count in TEST report. This is useful when you have lot of + data and do not want to loose time in call to count(*). + - Update documentation about the TEST action and usage, see + chapter "Test the migration". + - Apply schema context on PostgreSQL side with TEST action. + - Add TEST action type to ask Ora2Pg to count rows and all objects + at both sides, Oracle and PostgreSQL, to verify that everything + have been well imported. + - Fix missing export of foreign keys on multiple columns, ex: + ALTER TABLE products ADD CONSTRAINT fk_supplier_comp + FOREIGN KEY (supplier_id,supplier_name) + REFERENCES supplier(supplier_id,supplier_name)... + - Fix import of BLOB data using INSERT statements into the bytea. + Thanks to rballer for the patch. + - Fix missing export of FK when no schema is provided. + 2016 01 13 - v16.2 This release fixes several issues, is more accurates on migration diff --git a/lib/Ora2Pg.pm b/lib/Ora2Pg.pm index bd836172..8624871c 100644 --- a/lib/Ora2Pg.pm +++ b/lib/Ora2Pg.pm @@ -41,7 +41,7 @@ use File::Temp qw/ tempfile /; #set locale to LC_NUMERIC C setlocale(LC_NUMERIC,"C"); -$VERSION = '16.2'; +$VERSION = '17.0'; $PSQL = $ENV{PLSQL} || 'psql'; $| = 1; diff --git a/lib/Ora2Pg/GEOM.pm b/lib/Ora2Pg/GEOM.pm index 6a3ddf2e..a8acd5bd 100644 --- a/lib/Ora2Pg/GEOM.pm +++ b/lib/Ora2Pg/GEOM.pm @@ -40,7 +40,7 @@ use vars qw($VERSION); use strict; -$VERSION = '16.2'; +$VERSION = '17.0'; # SDO_ETYPE # Second element of triplet in SDO_ELEM_INFO diff --git a/lib/Ora2Pg/MySQL.pm b/lib/Ora2Pg/MySQL.pm index 47c305ac..0fd3d33c 100644 --- a/lib/Ora2Pg/MySQL.pm +++ b/lib/Ora2Pg/MySQL.pm @@ -9,7 +9,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '16.2'; +$VERSION = '17.0'; # These definitions can be overriden from configuration file our %MYSQL_TYPE = ( diff --git a/lib/Ora2Pg/PLSQL.pm b/lib/Ora2Pg/PLSQL.pm index 855449fd..9b1d29b7 100644 --- a/lib/Ora2Pg/PLSQL.pm +++ b/lib/Ora2Pg/PLSQL.pm @@ -31,7 +31,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '16.2'; +$VERSION = '17.0'; #---------------------------------------------------- # Cost scores used when converting PLSQL to PLPGSQL diff --git a/packaging/README b/packaging/README index da33380b..0109f252 100644 --- a/packaging/README +++ b/packaging/README @@ -12,13 +12,13 @@ RPM/ The binary package may be found here: - ~/rpmbuild/RPMS/noarch/ora2pg-16.2-1.noarch.rpm + ~/rpmbuild/RPMS/noarch/ora2pg-17.0-1.noarch.rpm or - /usr/src/redhat/RPMS/i386/ora2pg-16.2-1.noarch.rpm + /usr/src/redhat/RPMS/i386/ora2pg-17.0-1.noarch.rpm To install run: - rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-16.2-1.noarch.rpm + rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-17.0-1.noarch.rpm slackbuild/ @@ -30,7 +30,7 @@ slackbuild/ then take a look at /tmp/build/ to find the Slackware package. To install run the following command: - installpkg /tmp/build/ora2pg-16.2-i486-1gda.tgz + installpkg /tmp/build/ora2pg-17.0-i486-1gda.tgz debian/ diff --git a/packaging/debian/ora2pg/DEBIAN/control b/packaging/debian/ora2pg/DEBIAN/control index 43aaca18..246b50f2 100644 --- a/packaging/debian/ora2pg/DEBIAN/control +++ b/packaging/debian/ora2pg/DEBIAN/control @@ -1,5 +1,5 @@ Package: ora2pg -Version: 16.2 +Version: 17.0 Priority: optional Architecture: all Essential: no diff --git a/packaging/slackbuild/Ora2Pg.SlackBuild b/packaging/slackbuild/Ora2Pg.SlackBuild index b728d66d..773e7c22 100644 --- a/packaging/slackbuild/Ora2Pg.SlackBuild +++ b/packaging/slackbuild/Ora2Pg.SlackBuild @@ -12,7 +12,7 @@ ## Fill these variables to your needs ## NAMESRC=${NAMESRC:-ora2pg} -VERSION=${VERSION:-16.2} +VERSION=${VERSION:-17.0} EXT=${EXT:-tar.bz2} NAMEPKG=${NAMEPKG:-ora2pg} PKGEXT=${PKGEXT:-tgz/txz} diff --git a/packaging/slackbuild/Ora2Pg.info b/packaging/slackbuild/Ora2Pg.info index 7e5486a7..4b2288f7 100644 --- a/packaging/slackbuild/Ora2Pg.info +++ b/packaging/slackbuild/Ora2Pg.info @@ -1,7 +1,7 @@ PRGNAM="Ora2Pg" -VERSION="16.2" +VERSION="17.0" HOMEPAGE="http://ora2pg.darold.net/" -DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-16.2.tar.gz" +DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-17.0.tar.gz" MD5SUM="" DOWNLOAD_x86_64="UNTESTED" MD5SUM_x86_64="" diff --git a/scripts/ora2pg b/scripts/ora2pg index 9a523ea4..1436d67b 100644 --- a/scripts/ora2pg +++ b/scripts/ora2pg @@ -31,7 +31,7 @@ use POSIX qw(locale_h sys_wait_h _exit); setlocale(LC_NUMERIC, ''); setlocale(LC_ALL, 'C'); -my $VERSION = '16.2'; +my $VERSION = '17.0'; $| = 1; diff --git a/scripts/ora2pg_scanner b/scripts/ora2pg_scanner index 454c5041..8d14de0c 100644 --- a/scripts/ora2pg_scanner +++ b/scripts/ora2pg_scanner @@ -26,7 +26,7 @@ use strict; use Getopt::Long qw(:config no_ignore_case bundling); -my $VERSION = '16.2'; +my $VERSION = '17.0'; my @DB_DNS = (); my $OUTDIR = '';