Connecting to JDBC
The JDBC generic data provider option lets you connect to data sources that have a JDBC driver. Since there are drivers available for a wide range of database systems, this means that Dundas BI has the ability to connect to numerous types of data sources out-of-the-box. Using JDBC is a viable alternative to writing a custom data provider, which requires programming expertise.
Here are some examples of data sources that have a JDBC driver:
- Amazon Athena (Amazon S3)
- Apache Phoenix
There are some limitations to be aware of when connecting via JDBC. See Dundas BI - Product Notes for more details.
- The JDBC data connector requires a 64-bit version of the Java SE Runtime Environment version 8 or above to be installed on the server.
Indicate the location of the JDBC drivers in the Path To JDBC Drivers configuration setting.NoteThis is a global setting that will affect the whole Dundas BI instance and require that all Dundas BI services be restarted.
Set up a Data Connector in Dundas BI to connect to your data with a JDBC driver.
From the main menu, click New, and then select Data Connector.
In the New Data Connector dialog, click inside the File Name box. Enter a name for your data connector.
Click the data Provider dropdown and choose JDBC.
Next, supply the required credentials:
- Enter the JDBC URL. This will be different for every database and depends on the JDBC driver. For example, the JDBC URL for Amazon Athena is jdbc:awsathena://athena.us-east-1.amazonaws.com:443.
- Enter the User Name for your database account.
- Enter the Password for your database account.
3.1. Driver Properties
Some connection properties cannot be included directly in the JDBC URL and have to be provided separately, in this field. Similar to the URL, the list of properties and their format are different for each database and are typically documented by the JDBC driver provider.
For example, as documented by Amazon, the Amazon Athena JDBC driver can take parameters as part of the JDBC URL:
But also requires the s3_staging_dir to indicate a location to which the query output is written:
3.2. Driver Class Name
Older JDBC drivers may require a class name to enable the classes in the JAR file. For example, the main JDBC driver class for Amazon Athena is com.amazonaws.athena.jdbc.AthenaDriver.
4. Java VM Path
Some JDBC drivers require additional binary libraries (examples include the DB2 and SQL Server databases when using Windows Authentication).
To indicate the location of such libraries, click Admin from the main menu and select Config from the Setup section.
Enable Show Advanced Settings.
Find the configuration setting JVM Library Path and edit it to indicate the folder path.