Obtaining driver version information
About this task
There are two ways to obtain version information about HCL OneDB™ JDBC Driver: from your Java™ program or from the UNIX™ or MS-DOS command prompt.
To get version information from your Java program:
Procedure
Results
Important: For version X.Y of HCL OneDB JDBC
Driver,
the JDBC API methods Driver.getMajorVersion() and DatabaseMetaData.getDriverMajorVersion() always
return the value X. Similarly, the methods Driver.getMinorVersion() and DatabaseMetaData.getDriverMinorVersion() always
return the value Y.
To get the version of HCL OneDB JDBC
Driver from
the command line, enter the following command at the UNIX shell prompt or the Windows™ command prompt:
java com.informix.jdbc.Version
The command also returns the serial number you provided when you installed the driver.