@@ -35,40 +35,51 @@ will belong to this user:
3535
3636 CREATE EXTENSION ora_migrator;
3737
38- SELECT oracle_migrate('oracle');
38+ SELECT oracle_migrate(server => 'oracle', only_schemas => '{LAURENZ,SOCIAL} ');
3939
4040 NOTICE: Creating staging schemas "ora_stage" and "pgsql_stage" ...
4141 NOTICE: Creating Oracle metadata views in schema "ora_stage" ...
4242 NOTICE: Copy definitions to PostgreSQL staging schema "pgsql_stage" ...
4343 NOTICE: Creating schemas ...
4444 NOTICE: Creating sequences ...
4545 NOTICE: Creating foreign tables ...
46- NOTICE: Migrating table "social"."email" ...
47- NOTICE: Migrating table "social"."blog" ...
48- NOTICE: Migrating table "laurenz"."xml" ...
49- WARNING: Error loading table data for laurenz.xml
50- DETAIL: column "xml" of foreign table "xml" cannot be converted to or from Oracle data type
51- NOTICE: Migrating table "laurenz"."log" ...
52- NOTICE: Migrating table "laurenz"."integers" ...
53- NOTICE: Migrating table "laurenz"."employee" ...
54- NOTICE: Migrating table "laurenz"."department" ...
46+ NOTICE: Migrating table laurenz.log ...
47+ NOTICE: Migrating table laurenz.ft_speed_sa ...
48+ NOTICE: Migrating table laurenz.badstring ...
49+ WARNING: Error loading table data for laurenz.badstring
50+ DETAIL: invalid byte sequence for encoding "UTF8": 0x80:
51+ NOTICE: Migrating table laurenz.datetest ...
52+ NOTICE: Migrating table laurenz.department ...
53+ NOTICE: Migrating table laurenz.hasnul ...
54+ WARNING: Error loading table data for laurenz.hasnul
55+ DETAIL: invalid byte sequence for encoding "UTF8": 0x00:
56+ NOTICE: Migrating table social.blog ...
57+ NOTICE: Migrating table laurenz.employee ...
58+ NOTICE: Migrating table laurenz.identity ...
59+ NOTICE: Migrating table laurenz.req_lot ...
60+ NOTICE: Migrating table social.email ...
61+ NOTICE: Migrating table laurenz.numbers ...
5562 NOTICE: Creating UNIQUE and PRIMARY KEY constraints ...
56- WARNING: Error creating primary key or unique constraint on table laurenz.xml
57- DETAIL: relation "laurenz.xml" does not exist
63+ WARNING: Error creating primary key or unique constraint on table laurenz.badstring
64+ DETAIL: relation "laurenz.badstring" does not exist:
65+ WARNING: Error creating primary key or unique constraint on table laurenz.hasnul
66+ DETAIL: relation "laurenz.hasnul" does not exist:
5867 NOTICE: Creating FOREIGN KEY constraints ...
5968 NOTICE: Creating CHECK constraints ...
6069 NOTICE: Creating indexes ...
6170 NOTICE: Setting column default values ...
6271 NOTICE: Dropping staging schemas ...
63- NOTICE: Migration completed with 2 errors.
64- DEBUG: oracle_fdw: commit remote transaction
72+ NOTICE: Migration completed with 4 errors.
6573 oracle_migrate
6674 ----------------
67- 2
75+ 4
6876 (1 row)
6977
7078 DROP EXTENSION ora_migrator;
7179
80+ Even though the migration of two of the tables failed because of bad data in
81+ the Oracle database, the rest of the data were migrated sucessfully.
82+
7283Prerequisites
7384=============
7485
0 commit comments