Example 4: Setting up a connection via Vertica
Assume that:
For details about how to install Vertica, refer to https://my.vertica.com/docs/6.1.x/HTML/index.htm#1318.htm.
Take the following steps to set up a connection which connects JReport Designer to a database via Vertica:
- Start JReport Designer and open the catalog.
- In the Data tab of the Catalog Browser, expand the node of the default data source, right-click the Relational node and select Add JDBC Connection from the shortcut menu.
- In the Get JDBC Connection Information dialog, uncheck the Use ODBC Data Source option.
- Check the Driver checkbox, and enter the JDBC driver class name com.vertica.jdbc.Driver in the Driver text field.
- In the URL text field, specify the URL in the format jdbc:vertica://<hostname>:<port>/<SID>. In this example, enter jdbc:vertica://192.168.0.1:5433/vmartdb.
- Input the user name dbadmin and password test1234 respectively.
- Click OK to set up the connection.