Skip to content

Commit

Permalink
Update cookbook example
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenz committed Mar 5, 2018
1 parent e6764c6 commit 8e6579c
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,51 @@ will belong to this user:

CREATE EXTENSION ora_migrator;

SELECT oracle_migrate('oracle');
SELECT oracle_migrate(server => 'oracle', only_schemas => '{LAURENZ,SOCIAL}');

NOTICE: Creating staging schemas "ora_stage" and "pgsql_stage" ...
NOTICE: Creating Oracle metadata views in schema "ora_stage" ...
NOTICE: Copy definitions to PostgreSQL staging schema "pgsql_stage" ...
NOTICE: Creating schemas ...
NOTICE: Creating sequences ...
NOTICE: Creating foreign tables ...
NOTICE: Migrating table "social"."email" ...
NOTICE: Migrating table "social"."blog" ...
NOTICE: Migrating table "laurenz"."xml" ...
WARNING: Error loading table data for laurenz.xml
DETAIL: column "xml" of foreign table "xml" cannot be converted to or from Oracle data type
NOTICE: Migrating table "laurenz"."log" ...
NOTICE: Migrating table "laurenz"."integers" ...
NOTICE: Migrating table "laurenz"."employee" ...
NOTICE: Migrating table "laurenz"."department" ...
NOTICE: Migrating table laurenz.log ...
NOTICE: Migrating table laurenz.ft_speed_sa ...
NOTICE: Migrating table laurenz.badstring ...
WARNING: Error loading table data for laurenz.badstring
DETAIL: invalid byte sequence for encoding "UTF8": 0x80:
NOTICE: Migrating table laurenz.datetest ...
NOTICE: Migrating table laurenz.department ...
NOTICE: Migrating table laurenz.hasnul ...
WARNING: Error loading table data for laurenz.hasnul
DETAIL: invalid byte sequence for encoding "UTF8": 0x00:
NOTICE: Migrating table social.blog ...
NOTICE: Migrating table laurenz.employee ...
NOTICE: Migrating table laurenz.identity ...
NOTICE: Migrating table laurenz.req_lot ...
NOTICE: Migrating table social.email ...
NOTICE: Migrating table laurenz.numbers ...
NOTICE: Creating UNIQUE and PRIMARY KEY constraints ...
WARNING: Error creating primary key or unique constraint on table laurenz.xml
DETAIL: relation "laurenz.xml" does not exist
WARNING: Error creating primary key or unique constraint on table laurenz.badstring
DETAIL: relation "laurenz.badstring" does not exist:
WARNING: Error creating primary key or unique constraint on table laurenz.hasnul
DETAIL: relation "laurenz.hasnul" does not exist:
NOTICE: Creating FOREIGN KEY constraints ...
NOTICE: Creating CHECK constraints ...
NOTICE: Creating indexes ...
NOTICE: Setting column default values ...
NOTICE: Dropping staging schemas ...
NOTICE: Migration completed with 2 errors.
DEBUG: oracle_fdw: commit remote transaction
NOTICE: Migration completed with 4 errors.
oracle_migrate
----------------
2
4
(1 row)

DROP EXTENSION ora_migrator;

Even though the migration of two of the tables failed because of bad data in
the Oracle database, the rest of the data were migrated sucessfully.

Prerequisites
=============

Expand Down

0 comments on commit 8e6579c

Please sign in to comment.