From 8e6579c3dbfad06fcb46c1f16a01e20c68d9c4cc Mon Sep 17 00:00:00 2001 From: Laurenz Albe Date: Mon, 5 Mar 2018 11:16:17 +0100 Subject: [PATCH] Update cookbook example --- README.md | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 22e0a48..b0fe86b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ 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" ... @@ -43,32 +43,43 @@ will belong to this user: 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 =============