JDBC Data Source Connection
A JDBC driver is a software component enabling a Java application to interact with a database. To connect with individual databases, JDBC (the Java Database Connectivity API) requires drivers for each database. The JDBC driver gives out the connection to the database and implements the protocol for transferring the query and result between the client and the database.
iDashboards is able to connect to SQLite databases using a JDBC driver. This document gives a step-by-step procedure to install the JDBC driver and make the connection to your SQLite database.
Install the SQLite JDBC driver on the iDashboards server.
- Download the latest version of the SQLite JDBC driver from here: https://bitbucket.org/xerial/sqlite-jdbc/downloads/
- The driver will be a .JAR file. Copy this file into your <iDashboards Installation Directory>/ivizgroup/drivers folder
- Restart the iDashboards service
In addition, the service account running the iDashboards service must have read/write permissions to the folder that contains your SQLite database.
iDashboards Data Source Connection
Once you have installed the SQLite JDBC driver and given proper folder permissions to the iDashboards service account, you can add this connection as a data source in iDashboards. The following steps describe this process.
- Log on to your iDashboards Admin Application and click on the Data Sources tab
- In the (new) dropdown menu, select Generic JDBC and click Add Data Source
- In the Add Data Source screen, the following fields are required:
- Data Source Name: This can be named anything and is used for reference within iDashboards
- User ID: Database user with access to your database
- Password: Password for the database user
- Database URL (use the following template): sqlite:\localhost\c$\db\spiceworks_prod.db
- JDBC Driver Class: sqlite.JDBC
In the database URL, replace the path to your database (“\localhost\c$\db\spiceworks_prod.db” in the above example) with the path to your database file. The SQLite driver requires that you use the full UNC path to your database file.
- Click “Save”. Your data source is now available.