Update 2.1.5 to 2.4.7 + Migration to MSSQL

Hilfe zu Znuny Problemen aller Art
Locked
EvilGohan
Znuny newbie
Posts: 4
Joined: 21 Apr 2010, 16:34
Znuny Version: 2.1.5

Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by EvilGohan »

We are running OTRS-Version: 2.1.5 on Windows Server 2003 with MySQL
Due to several reasons we will set up a Microsoft SQL Server 2008 Cluster in the next few monthns.

Therefore it would be nice, to migrate all SQL-based Applications on this cluster.

Since i had no experience with migrations from MySQL to MSSQL i started with the same system setup.
I tried to migrate the data from our productive OTRS-System (2.1.5) via ODBC (MySQL ODBC 5.1) into a VM (Server 2003 with SQL 2005 and OTRS 2.4.7).
I tought it may be possible to update the database afterwards on the MSSQL-System and tried to run the scripts located at "<OTRS-root>\scripts\database\", but there were several error messages.

At least a login with root@localhost was possible, but since the charater sets between MySQL and MSSQL differ german "Umlaute" (ö,ä,ü) and special chars can't be displayed.
All other configurations and settings we set in the productive system, are gone in the test VM.

In my opinion the only way to do this, is to update from 2.1.5 to the newest Version (with MySQL) and AFTERWARDS migrate to MSSQL?
I already found the 2.1.5 installer on our file server (it's not online anymore on the otrs ftp!), but I'm not completely sure about the update process.

How excactly do i update from such a old version to 2.4.7?
First to the next minor like 2.2 and then 2.3 and 2.4, or in even smaller steps?

Thanks in advance for your time and help,
sincerly,
Thomas

edit: In case you are not fluent with the english language, I will translate it to german if needed! ;)
Solltest du schlecht oder kein Englisch können übersetze ich diesen Beitrag gerne auf Deutsch! :)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by jojo »

This is the german forum. So please use german here..

Yes, you have to do each version update for the database (not for the files)

It ist not possible to convert from MySQL to MSSQL (you'll need a convert script for this)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
EvilGohan
Znuny newbie
Posts: 4
Joined: 21 Apr 2010, 16:34
Znuny Version: 2.1.5

Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by EvilGohan »

Wir verwenden OTRS in der Version 2.1.5 auf einem Windows Server 2003 mit Mysql.
Demnächst werden wir einen SQL Server 2008 Cluster in Betrieb nehmen. Unser Wunsch ist es alle SQL-gestützten Anwendungen auf diesem Cluster zu betreiben.

Nachdem ich keine Erfahrungen mit der Migration zwischen MySQL und MSSQL habe, habe ich erstmal die selbe System Basis verwendet.

Der Testaufbau:

OTRS Produktivsystem (2.1.5) mit den oben genannten Eigenschaften via ODBC (Mysql ODBC Treiber Version 5.1) auf einen Windows Server 2003 mit SQL Server 2005 und OTRS 2.4.7.
Mein Gedankengang war folgender:
1. Mittels ODBC die Daten vom MySQL System auf die MSSQL Maschine ziehen
2. Die Datenbank auf einen aktuellen Stand bringen, mittels der Skripten im "<otrs-root>\scripts\database" Ordner.
3. OTRS 2.4.7 nach der FAQ-Anleitung auf otrs.org auf MSSQL umstellen.

Das hat soweit auch funktioniert...ich kann mich auf dem Testsystem einloggen, jedoch sind die Umlaute - eh logisch - wegen der unterschiedlichen Zeichensätze weg.
Auch alle Einstellungen sind weg, genauso wie das veränderte Template.
Beim Datenbankschema-Update sind leider einige Fehler aufgetreten. Meistens wollte das Skript Einschränkungen entfernen, die keine sind, bzw. setzen, obwohl schon stärkere Einschränkungen ziehen.

Aus meiner Sicht ist es also notwendig ein 2. OTRS mit Version 2.1.5 aufzusetzen, dieses mit den Produktivdaten step-by-step auf den aktuellen Stand zu bringen und dann erst eine Migration durchzuführen.
Den Installer hab ich auf unserem file server gefundne...leider ist er nicht mehr am OTRS-FTP.

Welche Schritte muss ich nun vollziehen? Jede einzelne Version von 2.1.5 -> 2.1.6 -> 2.1.7 ... bis 2.4.7?
Genügen Minor releases, oder gehts direkt?

Danke schonmal für eure Zeit und Hilfe,
MfG

Thomas
EvilGohan
Znuny newbie
Posts: 4
Joined: 21 Apr 2010, 16:34
Znuny Version: 2.1.5

Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by EvilGohan »

jojo wrote:This is the german forum. So please use german here..

Yes, you have to do each version update for the database (not for the files)

It ist not possible to convert from MySQL to MSSQL (you'll need a convert script for this)
Ist mir grundsätzlich eh klar...wie geh ich das jedoch korrekt an?
Welche Schritte benötige ich?

Kann ich von 2.1.5 direkt auf 2.2 und dann 2.3 und 2.4.7? Find leider keine Dokumentation zum Updaten von OTRS.

Das Grundsätzlich MySQL -> MSSQL nicht funktioniert versteh ich nicht...es muss doch bei entsprechender Konvertierung der Zeichensätze funktionieren?
Oder liegt das Problem an OTRS, sodass es bei dem Schema, dass OTRS verwendet nicht möglich ist die Daten korrekt zu migrieren?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by jojo »

Schau mal in die Datei "UPGRADING" im OTRS Root Verzeichnis. Oder nutz die Forensuche.

MySQL und MSSQL sind nicht zu 100% kompatibel, also benötigst Du eine Art "Datenpumpe"
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
EvilGohan
Znuny newbie
Posts: 4
Joined: 21 Apr 2010, 16:34
Znuny Version: 2.1.5

Re: Update 2.1.5 to 2.4.7 + Migration to MSSQL

Post by EvilGohan »

Nachdem ich nun wieder etwas Luft hatte, hab ich in einer Server 2008 R2 VM versucht von 2.1.5 auf 2.4.7 upzugraden. Alles MySQL.

Bin leider auch hier gescheitert.

Meine vorgehensweise war:

2.1.5 Produktivsystem -> Backup gezogen

In der Test-VM ein OTRS 2.4.7. aufgesetzt -> Backup eingespielt am MySQL Server

Jetzt hab ich also ein OTRS 2.4.7 mit alter Datenbank.

1. DBUpdate-to-2.2.mysql.sql einspielen
2. nachdems kein pl-Script für 2.2 gibt weiter mit DBUpdate-to-2.3.mysql.sql
3. DBUpdate-to-2.3.pl

Seitenweise krieg von vom Perl-Script:

Code: Select all

 Message: No UserLogin found for '30'!

 Traceback (2548):
   Module: Kernel::System::User::UserLookup (v1.94) Line: 727
   Module: Kernel::System::Ticket::TicketGet (v1.416.2.10) Line: 1018
   Module: Kernel::System::Ticket::TicketEscalationIndexBuild (v1.416.2.10) Line
: 2180
   Module: main::MigrateEscalation (v1.22) Line: 274
   Module: e:\OTRS\OTRS\scripts\DBUpdate-to-2.3.pl (v1.22) Line: 97

ERROR: OTRS-DBUpdate-to-2.3-10 Perl: 5.10.0 OS: MSWin32 Time: Wed Apr 28 16:48:2
4 2010
+ einige Fehler im SQL-Script vorher über bereits existente oder doppelt vorhandene Einträge/Keys/Tabellen/...

Ja ich hab die Datei "UPGRADING" gelesen...da steht nix hilfreiches drinnen.
Gibts keine Doku wie und in welchen Schritten man richtig von einer älteren Version auf eine neue updated?
Locked