vitalidze / traccar-web

Traccar Web UI mod
http://traccar.litvak.su/
152 stars 145 forks source link

traccar with Oracle DB #164

Open xizoaziz opened 9 years ago

xizoaziz commented 9 years ago

Hi vitalidze

can we use Oracle DB in traccar instead of H2

thanx

vitalidze commented 9 years ago

Traccar-web uses hibernate library, which has an oracle dialect. I have experience with application that worked through hibernate with oracle, mysql and sqlserver database engines. I haven't tried traccar with oracle, but it should work if you configure it properly. Briefly, you need:

1) JDBC driver for oracle database put at some folder accessible by traccar application

2) Add JDBC driver to the traccar classpath. This should be done in wrapper.cfg file.

3) Update following entries in traccar.cfg file (see https://www.traccar.org/configuration-file/):

Then after all these things are set up and restarting service you should try accessing web interface, which should create your database tables. Then check wrapper.log file for error messages.

Generally, I would recommend to stick with MySQL database, which is proven to work without any issues. Also there is an official documentation on how to set up this database, which is much less painful than oracle set up.

xizoaziz commented 9 years ago

thank u very much i will try and notify you with the result

xizoaziz commented 9 years ago

it is working now but i faced some issues i fix all issues and i will post a replay her for what i did ..

many thanks to you and thanks for your great product

gpproton commented 7 years ago

Hu @xizoaziz i'll like to know how you made oracle to work with Traccar web, i've not had any luck with it, and i desperately need to make it work.