Product: TIBCO Spotfire®
How to configure DbVisualizer to use a custom JDBC driver .jar file.
Since TIBCO Spotfire Server uses JDBC drivers to connect to data sources in Information Services via Information Links, it is often useful diagnostically to test a connection or query using the same JDBC driver outside of Spotfire. If there are still issues connecting to a data source or in the query execution when using a 3rd party tool like DbVisualizer, then the issue is in the driver's connection to the database and not within Spotfire. If there are no issues connecting or executing the query in the 3rd party tool, then Spotfire and its configuration should be investigated more closely.
How to configure DbVisualizer to use a custom JDBC driver .jar:
- Download and install the DbVisualizer tool. This article references version 9.2.3:
- Select "Tools" > "Driver Manager"
- Select "Driver" > "Create Driver"
- Enter "Name". This can be anything. For example:
- Enter "URL Format": This is the connection URL from the Spotfire data source template. For example:
- In the "Driver File Paths" select "User Specified" tab and click on the folder icon.
- In the folder selection dialog, point it to the the JDBC driver .jar file.
- In the "Driver Class" dropdown, select the driver class associated with your JDBC driver .jar. For example:
- Select "Driver" > "Close Window".
Your new driver will look something like the attached screenshot (Filename: DbVisualizer_Custom_JDBC_Driver_Configuration.png).
How to create a connection to your server using the new custom JDBC driver connection:
- Select "Database" > "Create Database Connection" to launch the "New Connection Wizard".
- Enter an alias for your connection and click "Next".
- Select your new driver from the dropdown. For example:
- Enter the "Database URL" like the full connection string populated with actual values. For example:
- Enter the "Userid" and "Password."
- Click Finish.
How to execute a query using the new custom JDBC driver connection:
- Select "SQL Commander" > "New SQL Commander".
- Select the "Database Connection", "Database", and "Schema" as needed.
- Enter your query and choose "SQL Commander" > "Execute (Ctrl+Enter)" to execute your query.
- If needed, change the "Max Rows" from the default 1000 rows to a higher number if you need to return more than 1000 rows.