You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For ora2pg:23.2 in the following scenario structures and data are being migrated successfully:
STOP_ON_ERROR 0 LOG_ON_ERROR 1 DROP_INDEXES 1
However indexes re-creation interrupts in case of unsupported function:
[2023-06-17 08:29:30] Restoring foreign keys of table <table_name>...
[2023-06-17 08:29:33] Restoring indexes of table <table_name>... DBD::Pg::db do failed: ERROR: function trunc(timestamp without time zone) does not exist
LINE 1: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(sn...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts. at /usr/local/share/perl5/Ora2Pg.pm line 8702.
[2023-06-17 08:32:51] FATAL: ERROR: function trunc(timestamp without time zone) does not exist
LINE 1: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(sn...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts., SQL: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(<field_name> as timestamp)))); Aborting export...
Thus multiple "good" indexes are not being created after first one fails.
Is it possible to add native support for Oracle:trunc => PG:date_trunc function?
If not, is it possible to honour "STOP_ON_ERROR 0" while re-creating the indexes?
The text was updated successfully, but these errors were encountered:
Normally now Ora2Pg always convert Oracle trunc() function to date_trunc(), alternatively you can also use orafce that adds the trunc() function for dates.
For ora2pg:23.2 in the following scenario structures and data are being migrated successfully:
STOP_ON_ERROR 0
LOG_ON_ERROR 1
DROP_INDEXES 1
However indexes re-creation interrupts in case of unsupported function:
[2023-06-17 08:29:30] Restoring foreign keys of table <table_name>...
[2023-06-17 08:29:33] Restoring indexes of table <table_name>...
DBD::Pg::db do failed: ERROR: function trunc(timestamp without time zone) does not exist
LINE 1: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(sn...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts. at /usr/local/share/perl5/Ora2Pg.pm line 8702.
[2023-06-17 08:32:51] FATAL: ERROR: function trunc(timestamp without time zone) does not exist
LINE 1: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(sn...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts., SQL: CREATE INDEX <index_name> ON <table_name> ((trunc(cast(<field_name> as timestamp))));
Aborting export...
Thus multiple "good" indexes are not being created after first one fails.
Is it possible to add native support for Oracle:trunc => PG:date_trunc function?
If not, is it possible to honour "STOP_ON_ERROR 0" while re-creating the indexes?
The text was updated successfully, but these errors were encountered: