Specifying Connection URLs
DataDirect XQuery provides access to most databases through built-in JDBC drivers. In addition, you can access specific databases using third-party JDBC drivers. The format of the connection URL depends on whether you are using a built-in JDBC driver or a third-party driver, and the database you are connecting to.
Connection URLs for Built-In Drivers
DataDirect XQuery provides built-in JDBC drivers to access the following databases:
The format of the connection URL is:
where:
dbtype Valid values are db2, informix, oracle, sqlserver, and sybase.server_name The TCP/IP address or TCP/IP host name of the database server to which you are connecting (See following NOTE).port The number of the TCP/IP port.property=value Connection properties. For a list of connection properties, ordered by database, see "Connection Properties". For some databases, particular connection properties are required in the URL as shown in the following examples.All connection property names are case-insensitive. For example, password is the same as Password. NOTE FOR ORACLE USERS: See "Using Oracle tnsnames.ora Files" for instructions on retrieving connection information from an Oracle tnsnames.ora file.
The following URLs show examples of the minimum information, including any required connection properties, that must be specified in a connection URL.
DB2 for Linux/UNIX/Windows
DB2 for z/OS and iSeries
Informix
Microsoft SQL Server
MySQL Enterprise
Oracle
Sybase
Connection URLs for Third-Party Drivers
You can access the following databases using a third-party JDBC driver:
- MySQL Community Server. You can download the MySQL Connector/J driver from:
http://www.mysql.com/products/connector/j/
- PostgreSQL. You can download the PostgreSQL JDBC driver from:
MySQL Community Server
The format of the connection URL is:
jdbc:mysql://[server_name][,alternate_server[...]][:port]/[database] [?property=value][&property=value[...]]where:
The following URL is an example of the minimum information that must be specified in the URL:
PostgreSQL
The format of the connection URL is:
or
where:
The following URL is an example of the minimum information that must be specified in the URL: