Specifying Connection URIs
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 URI depends on whether you are using a built-in JDBC driver or a third-party driver, and the database you are connecting to.
Connection URIs for Built-In Drivers
DataDirect XQuery provides built-in JDBC drivers to access the following databases:
The format of the connection URI is:
where:
dbtype
Valid values are db2, informix, mysql, 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 Database 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 URIs for Third-Party Drivers
You can access the PostgreSQL database using the PostgreSQL JDBC driver from:
Connection URI Format
The format of the connection URI is:
or
where:
The following URI is an example of the minimum information that must be specified in the URI: