-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix OTRS oracle to OTOBO oracle migration. #873
Comments
See some notes regarding Oracle and OTOBO at https://github.com/bschmalhofer/otobo-ideas/blob/master/oracle.md. |
Everything looks find after |
Oops, looks like I closed the wrong issue. Reopening. |
After some fiddling I got one OTRS and one OTOBO up and running with Oracle. Now, testing migration.pl, I was flabbergasted again. Under both OTRS and OTOBO the default DSN configuration in Config.pm looks like
This is a nice EZCONNECT connection string. But the migration wants to use a DSN like
There can be reasons to use the SID or better still to use the service declarations in tnsnames.ora, but there is no reason to use different approaches. |
I checked when the quoting of table names was introduced. It's a blast from the recent past. Quoting was introduced as a fix for groups no longer being a valid table name. But as quoting really interferes on Oracle, I will roll that back. See also #639. Looks like there are only two relevant instances where groups must be quoted. The other instances are related to the batch migration, which was disabled. I removed the remnants of the batch insert, just to clean up. |
No need to worry about SID and port.
Remove unused support for migration with batch insert.
Current stumbling blcok: This is bad, as there is no global setting in Oracle, that disables foreign key checks. How could that ever have worked? The best bet might be to make a complete copy of the database and to tweak it afterwards. TODO:
|
There are some dependencies between the table that should not be migrated. But TRUNCATE should be possible when adhering to this order:
|
Discussed the TODO list with @svenoe . There is no need to meddle with installer.pl. The recommended sequence for Oracle -> Oracle migration is:
The very first step is to turn the lookup hashref DBSkipTables() into an ordered list. |
The first dummy migration has completed. However the documentation is still lacking. Next step is to test the process with real data. |
Instructions for Oracle to Oracle migration are part of RotherOSS/doc-otobo-installation#64. |
RotherOSS/doc-otobo-installation#64 has been merged. Closing this issue, as there are no new problem reports concerning Oracle migrations. |
The biggest issue here is, that table names seems to be uppercase, although OTRS and OTOBO lc them everywhere. It works for normal usage, as the table_name in a "SELECT x,y FROM table_name;" is handled case insensitive, but for commands which handle the tables itself "WHERE ...='table_name'" it fails.
Also some "needed" arguments are wrong for oracle, in the setup.
The text was updated successfully, but these errors were encountered: