@@ -35,40 +35,51 @@ will belong to this user:
35
35
36
36
CREATE EXTENSION ora_migrator;
37
37
38
- SELECT oracle_migrate('oracle');
38
+ SELECT oracle_migrate(server => 'oracle', only_schemas => '{LAURENZ,SOCIAL} ');
39
39
40
40
NOTICE: Creating staging schemas "ora_stage" and "pgsql_stage" ...
41
41
NOTICE: Creating Oracle metadata views in schema "ora_stage" ...
42
42
NOTICE: Copy definitions to PostgreSQL staging schema "pgsql_stage" ...
43
43
NOTICE: Creating schemas ...
44
44
NOTICE: Creating sequences ...
45
45
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 ...
55
62
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:
58
67
NOTICE: Creating FOREIGN KEY constraints ...
59
68
NOTICE: Creating CHECK constraints ...
60
69
NOTICE: Creating indexes ...
61
70
NOTICE: Setting column default values ...
62
71
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.
65
73
oracle_migrate
66
74
----------------
67
- 2
75
+ 4
68
76
(1 row)
69
77
70
78
DROP EXTENSION ora_migrator;
71
79
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
+
72
83
Prerequisites
73
84
=============
74
85
0 commit comments