1.1.1

Table Of Contents
Chapter 6
Connect to vFabric SQLFire with JDBC
Tools
Third-party JDBC tools can help you browse data in tables, issue SQL commands, design new tables, and so forth.
You can congure these tools to use the SQLFire JDBC thin client driver to connect to a SQLFire distributed system.
Although the instructions for setting up each tool vary, the general process for establishing a connection involves
conguring the JDBC client driver and setting JDBC connection URL properties. Follow these basic steps:
1.
In the third-party tool, choose to congure a new driver, and select the sqlfireclient.jar le that contains
the SQLFire JDBC client driver. This le is installed in the lib directory of your SQLFire installation.
2. If the tool does not automatically select a driver class, you will generally have the option of selecting a class from
within the JAR le. For SQLFire, select the com.vmware.sqlre.jdbc.ClientDriver class.
3. In order to use the client driver, you must specify a JDBC connection URL for your SQLFire distributed system.
The basic URL format for the client driver is:
jdbc:sqlfire://hostname:port/
where hostname and port correspond to the -client-bind-address and -client-port value of a SQLFire
server or locator in your distributed system.
4. Your tool may require that you specify a username and password to use for connecting to the system. If the SQLFire
server or locator enables authentication (using the -auth-provider boot property), then enter a valid username and
password combination to connect to the distributed system.
If authentication is disabled, specify "app" as both the username and password values, or any other temporary value.
Note: SQLFire uses the username specied in the JDBC connection as the schema name when you do not
provide the schema name for a database object. SQLFire uses "APP" as the default schema. If your system
does not enable authentication, you can specify "APP" for both the username and password to maintain
consistency with the default schema behavior.
For a full example of conguring SQLFire with a third-party JDBC tool, see Connecting to VMware vFabric SQLFire
using SQuirreL SQL on the SQLFire community site.
35