We are in the evaluation phase for OTRS (and it's looking great!). I have a question regarding the use of a SQL Server database.
When we first installed OTRS we used MySQL and it worked well. Now, having set up a SQL Server database, performance is radically reduced and we get occasional 404 errors.
In the /Kernel/Config.pm file I have used the following lines for database connectivity:
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'OURSERVER';
# Database
# (The database name.)
$Self->{'Database'} = 'OTRS';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'OTRS_User';
# DatabasePw
# (The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'password';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{'DatabaseDSN'} = 'DBI:ODBC:driver={SQL Server};Server=OURSERVER;database=OTRS;uid=OTRS_User;pwd=password;';
$Self->{'Database::Type'} = 'mssql';
As I say, connectivity is there but performance has taken a nasty hit.
Have I set this up correctly? The Admin Manual deals with the DatabaseHost, Database, DatabaseUser and DatabasePw settings but does not mention the DatabaseDSN and Datase::Type settings (I nicked them off another post on this forum). Any suggestions regarding best practise when setting up with SQL Server would be greatly appreciated.
Many thanks
Solved: SQL Server Installation
Moderator: crythias
-
- Znuny expert
- Posts: 167
- Joined: 26 Jan 2011, 13:23
- Znuny Version: 3.0.7
- Real Name: Rod Behr
- Company: Impact
- Location: London, United Kingdom
- Contact:
Solved: SQL Server Installation
Last edited by RBehr on 01 Feb 2011, 10:50, edited 2 times in total.
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Re: SQL Server Installation
MS SQL will be much slower than other databases as OTRS needs to use ODBC...
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny expert
- Posts: 167
- Joined: 26 Jan 2011, 13:23
- Znuny Version: 3.0.7
- Real Name: Rod Behr
- Company: Impact
- Location: London, United Kingdom
- Contact:
Re: SQL Server Installation
I was rather hoping you would tell me to use a SQL Server connection string there. Is MS SQL not directly supported by OTRS then?
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Re: SQL Server Installation
as they are no Perl Drivers for MS SQL OTRS needs to stick to ODBC, there is no native connection.
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: SQL Server Installation
One could give ADO a try. (ActiveX Data Object)
I have used ADO during my trainee program a century ago to connect to mySQL, DB2 as well as Access and MS SQL. So my knowledge has aged a little about that. There is a driver for DBD as well.
I cannot tell you anything about side effects. I needed it to make use of server side cursors, which gave a huge performance improvement when the client did not need any output.
I have used ADO during my trainee program a century ago to connect to mySQL, DB2 as well as Access and MS SQL. So my knowledge has aged a little about that. There is a driver for DBD as well.
I cannot tell you anything about side effects. I needed it to make use of server side cursors, which gave a huge performance improvement when the client did not need any output.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
-
- Znuny expert
- Posts: 167
- Joined: 26 Jan 2011, 13:23
- Znuny Version: 3.0.7
- Real Name: Rod Behr
- Company: Impact
- Location: London, United Kingdom
- Contact:
Re: SQL Server Installation
The performance hit came when testing in our DEV environment, which is on virtual (VMWare) servers. Put the MS SQL database in our production environment (i.e. on a physical server) and performance is greatly improved and quite acceptable.
Have hit a new problem with inserting new queues in 3.0.5 which did not occur in 3.0.4, but raised this in separate forum topic (see http://forums.otrs.org/viewtopic.php?f= ... 08&p=31260).
Have hit a new problem with inserting new queues in 3.0.5 which did not occur in 3.0.4, but raised this in separate forum topic (see http://forums.otrs.org/viewtopic.php?f= ... 08&p=31260).
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: SQL Server Installation
As long as you do not place your DBMS and its DB files into a virtual disk everything is just fine.
I have had the same issue here with mySQL. DB Servers come into performancec lacks, when the VM needs to schedule its I/O. Usually this also rises CPU cycles a lot.
We do run all servers on ESX machines, including mySQL, but '/var/lib/mysql' is mounted via cifs from a large disk appliance.
I have had the same issue here with mySQL. DB Servers come into performancec lacks, when the VM needs to schedule its I/O. Usually this also rises CPU cycles a lot.
We do run all servers on ESX machines, including mySQL, but '/var/lib/mysql' is mounted via cifs from a large disk appliance.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems