• Topic
  • Discussion
  • UdaWikiWeb.JDBC3ConnectionURLFormat(Last) -- Owiki? , 2016-08-19 15:00:28 Edit owiki 2016-08-19 10:00:28

    Connection URLs for Enterprise Edition (Multi-Tier) Generic Client Type 3 JDBC Driver

    A Type 3 JDBC Driver connects a pure JDBC client environment to non- or partially-Java environments, such as our Enterprise Edition (Multi-Tier) server components (Request Broker and target-specific Database or Bridge Agents).

    Note: You should generally have only one of the following in your CLASSPATH environment variable. If you have multiple jars which use the same Classname, only the first found by the JVM (typically the first in your CLASSPATH) will be active. Choose the one best matched to your active JVM and to whether you will only need Type 3, or a combination of Type 1 and Type 3, connections.

    Our pure Type 3 JDBC Drivers have the following attributes --

    Java
    Version(s)
    Compatible
    JVM/JRE/JDK
    JDBC
    Version
    Filename Classname
    Java 8 1.8.x JDBC 4.2 megathin4_2.jar openlink.jdbc4.Driver
    Java 7 1.7.x JDBC 4.1 megathin4_1.jar openlink.jdbc4.Driver
    Java 6 1.6.x JDBC 4 megathin4.jar openlink.jdbc4.Driver
    Java 4 and 5 1.4.x and 1.5.x JDBC 3 megathin3.jar openlink.jdbc3.Driver
    Java 2 and 3 1.2.x and 1.3.x JDBC 2 megathin2.jar openlink.jdbc2.Driver
    Java 1 1.1.x JDBC 1 megathin.jar openlink.jdbc.Driver

    Our hybrid Type 3 and Type 1 JDBC Drivers have the following attributes --

    Java
    Version
    Compatible
    JVM/JRE/JDK
    JDBC
    Version
    Filename Classname
    Java 8 1.8.x JDBC 4.2 opljdbc4_2.jar openlink.jdbc4.Driver
    Java 7 1.7.x JDBC 4.1 opljdbc4_1.jar openlink.jdbc4.Driver
    Java 6 1.6.x JDBC 4 opljdbc4.jar openlink.jdbc4.Driver
    Java 4 and 5 1.4.x and 1.5.x JDBC 3 opljdbc3.jar openlink.jdbc3.Driver
    Java 2 and 3 1.2.x and 1.3.x JDBC 2 opljdbc2.jar openlink.jdbc2.Driver
    Java 1 1.1.x JDBC 1 opljdbc.jar openlink.jdbc.Driver

    Type 3 JDBC URL Syntax

    Our Type 3 JDBC URL sytax is as shown below. Spaces between arguments are here only for clarity; they should be omitted for actual use, as in the example.

    jdbc:openlink://<Hostname>[:portnumber] [/DSN=<dsn>] [/UID=<uid>] [/PWD=<pwd>] [/READONLY=<y>] 
                  [/FBS=<x>] [/JDBCAGENT=<AgentType>] [/SVT=<ServerType>] [/DATABASE=<Schema>] 
                  [/OPTIONS=<AgentOptions>] [/DRIVER=<RemoteOdbcDriver>] [/SSL=<y>] [/TIMEOUT=<seconds>]
    

    Handling JDBC URL Reserved Characters

    JDBC URL escape characters '{' and '}' should be used when parameters in the JDBC URL contain any JDBC URL reserved characters, such as '/'.

    Common examples include

    • Database or other file paths: {/path/to/database/demo}
    • Oracle Instant Client connection strings: {//oracle_hostname:port/TNSNAME}

    Type 3 JDBC URL Attributes

    • Hostname -- Network Alias or IP address of server machine running an OpenLink Request Broker instance
    • Port Number -- Port number that identifies location of OpenLink JDBC Agent Service; the default value is 5000
    • /DSN -- ODBC Data Source Name from which the JDBC driver should automatically derive JDBC URL values; does not imply connection via ODBC
    • /UID -- Username
    • /PWD -- Password
    • /READONLY -- Determines session mode — read-write (=N) or read-only (=Y).
    • /SVT -- Determines OpenLink Database Agent type (Oracle, Informix, Sybase, Progress, Ingres, Microsoft SQL Server, MySQL, PostgreSQL, etc.)
    • /OPTIONS -- Values used to connect to OpenLink Database Agents to remote database servers using database vendors networking. See additional information.
    • /DATABASE -- Actual database/schema name within a particular database environment; not relevant to all connections.
    • /DRIVER -- Only used when making a DSN-Less connection to a remote ODBC Driver.
    • /FBS -- Sets number of JDBC resultset rows that get packed together for transmission from the Database Agent to the Client Driver
    • /SSL -- Specifies use of SSL to secure the connection. See additional information.
    • /JDBCAGENT -- Only applicable to Release 3.x and older; not used with Release 4.x or later. Specifies a particular handler for the client request rather than letting the Broker decide (separate handlers exist for ODBC and UDBC Generic Clients).
    • /TIMEOUT -- Generally best set to 10-30 seconds longer than the longest query you execute takes to return data. Analogous to the client-side Enterprise Edition (Multi-Tier) ODBC Generic Client ReceiveTimeout.

    Example

    jdbc:openlink://test.example.com:5000/UID=sa/PWD=admin/READONLY=N/FBS=10/SVT=SQLSERVER/DATABASE=pubs/OPTIONS=-H sqlhost.example.com -V 8.0 -P 1433/
    

    See Also


    Referenced by...