Connecting to JDBC
The JDBC generic data provider option lets you connect to data sources that have a JDBC driver. Since there are third-party drivers available for a wide range of databases and other data sources, this means that Dundas BI has the ability to connect to more data sources out-of-the-box than we can list. You can often use an existing JDBC driver rather than write a custom data provider.
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.
When Dundas BI is running on a Windows server, 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.
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 Name box to 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.
3.3. Use PreparedStatement
Certain non-JDBC compliant drivers may produce an error in certain cases, which can be avoided by unchecking the Use PreparedStatement advanced option.
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.