Quick Start Connect : Connecting to a Database : 3. Passing the Connection URL : URL Formats: DataDirect Connect® for JDBC Drivers

URL Formats: DataDirect Connect® for JDBC Drivers
The following table shows the URL formats for DataDirect Connect for JDBC drivers, where:
*
server_name identifies the server using one of the following methods:
*
*
Host name (if your network resolves host names to IP addresses) 1
*
jdbc:datadirect:db2://server_name:50000;
DatabaseName=your_database
jdbc:datadirect:db2://server_name:446;
LocationName=db2_location
jdbc:datadirect:informix://server_name:2003;
InformixServer=your_server;DatabaseName=your_database
jdbc:datadirect:mysql://server_name:3306
jdbc:datadirect:oracle://server_name:1521;
ServiceName=your_servicename
jdbc:datadirect:openedge://server_name:port;
DatabaseName=your_database

1
See the DB2 driver chapter for more information about creating DB2 packages.

2
See the Oracle diver chapter for instructions on retrieving connection information from an Oracle tnsnames.ora file.

3
See the SQL Server driver chapter for instructions on connecting to named instances.


1
You can use the ping command to verify this feature (for example, ping server1). Verify that the correct IP address is returned in the reply from the command.


© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.