Defining an InterClient URL
Go Up to Defining Connection Parameters
InterClient URLs have the following format:
jdbc:interbase://server/full_db_path[?properties]
“InterBase” is the sub-protocol, and server is the hostname of the InterBase server. full_db_path
(that is, “sub-subname”) is the full pathname of a database file, including the initial slash (/). If the InterBase server is a Windows system, you must include the drive name as well. InterClient does not support passing any attributes in the URL. For local connections, use:
server = "localhost"
- Note: The “/” between the server and
full_db_path
is a delimiter. When specifying the path for a Unix-based database, you must include the initial “/” for the root directory in addition to the “/” for the delimiter.
In a Unix-based database, the following URL refers to the database orders.ib
in the directory /dbs
on the Unix server accounts
.
dbURL = "jdbc:interbase://accounts//dbs/orders.ib"
In a Windows server, the following URL refers to the database customer.ib
in the directory /dbs
on drive C of the server support
.
dbURL = "jdbc:interbase://support/C:/dbs/customer.ib"