|
||||||||
FRAMES NO FRAMES |
The JDBC data access interface
Supported database management systems (DBMS)
Adding a new supported DBMS
Testing your JDBC connection
The JDBC application programming interface is the industry standard for database-independent connectivity between Java programs and a wide range of databases. Synop Analyzer uses this standard for reading data directly from database tables. Each database management system (DBMS) requires a specific JDBC driver in the form of a Java library (jar-file) for providing JDBC connectivity.
For a couple of widely used DBMS, a suitable JDBC driver comes with the Synop Analyzer install package. These java libraries are not part of Synop Analyzer and not covered by your Synop Analyzer license and support agreement. They are free software which has been placed into the public domain by their authors under the GNU Lesser Public License (GLPL).
The license conditions of other widely used DBMS do only permit the distribution of JDBC drivers together with a license of the underlying DBMS. For these databases, Synop Analyzer does not install the JDBC driver but relies on a preexisting JDBC driver installation on the database server. Nontheless, Synop Analyzer is preconfigured for using these JDBC drivers. Both groups of 'known' DBMS are described in section Supported DBMS
If you are working with a DBMS which is not part of the list of 'known' DBMS, you can manually configure Synop Analyzer for reading data from this new DBMS by editing the preferences file
If you want to test whether a given table in a given database of a given DBMS can be accessed from Synop Analyzer using given user and password credentials, you can use a separate JDBC connection tester program called
Driver library: | |
Download URL: | http://jackcess.sourceforge.net/ |
License: | LGPL (GNU Lesser Public License) |
Install instructions: | Nothing to do. |
Driver library: | |
Download URL: | http://jtds.sourceforge.net/ |
License: | LGPL (GNU Lesser Public License) |
Install instructions: | Nothing to do. |
Driver library: | |
Download URL: | http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html |
License: | OTN (Oracle Technology Network License) |
Install instructions: | Find the driver library on your database server or download it. Copy the driver library into the Synop Analyzer install directory. |
Driver library: | |
Download URL: | http://www-01.ibm.com/software/data/db2/express/download.html |
License: | IBM-specific no-charge license |
Install instructions: | Find the driver library on your database server or download it. Copy the driver library into the Synop Analyzer install directory. |
Driver libraries: | |
Download URL: | http://www.teradata.com/downloadcenter/ |
License: | Teradata license |
Install instructions: | Find the driver libraries on your database server or download them. Copy the driver libraries into the Synop Analyzer install directory. |
Driver library: | |
Download URL: | http://jtds.sourceforge.net/ |
License: | LGPL (GNU Lesser Public License) |
Install instructions: | Nothing to do. |
Driver libraries: | |
Download URL: | No free download available. The libraries come with the database Progress 10.x |
License: | See your Progress 10.x license |
Install instructions: | Find the driver libraries on your database server. Copy the driver libraries into the Synop Analyzer install directory. |
Driver library: | |
Download URL: | http://dev.mysql.com/downloads/connector/j/ |
License: | GPL (GNU Public License) |
Install instructions: | Find the driver library on your database server or download it. Copy the driver library into the Synop Analyzer install directory and rename it to |
Driver library: | |
Download URL: | http://jdbc.postgresql.org/download.html |
License: | BSD (Berkeley Software Development License) |
Install instructions: | Find the driver library on your database server or download it. Copy the driver libraries into the Synop Analyzer install directory and rename it to |
Driver library: | |
Download URL: | http://www.intersystems.de/cache/downloads/index.html |
License: | Evaluierungs- und Testlizenz |
Install instructions: | Find the Java 1.6 version of driver library on your database server or download it. Copy the driver library into the Synop Analyzer install directory. |
If your database management system (DBMS) provides a JDBC interface and driver library but does not figure in the list of 'known' DBMS, you can manually add your DBMS' JDBC driver to the list of supported JDBC connections.
For declaring a new DBMS-JDBC driver combination, you need to have the following information at hand:
oracle.jdbc.driver.OracleDriver
for Oracle)
jdbc:oracle:thin:
for Oracle)
//
for most JDBC drivers and @
for Oracle.
:
for Oracle, /
for many other JDBC drivers or ;databaseName=
for Progress/Openedge)
SELECT COLUMN_NAME, DATA_TYPE FROM ALL_TAB_COLS WHERE TABLE_NAME='<tablename>' AND OWNER='<schema>'
for Oracle or SHOW COLUMNS FROM <schema>.<tablename>
for MySQL.
SELECT AVG_ROW_LEN*NUM_ROWS "data_length" FROM DBA_TABLES WHERE TABLE_NAME='<tablename>' AND OWNER='<schema>'
for Oracle or SHOW TABLE STATUS LIKE '<schema>.<tablename>'
for MySQL.
data_length
.
Once you have collected this information from the JDBC driver documentation of your JDBC driver, you can test the correctness of the settings by running a little test program called JDBCTest.bat
which can be found in the subdirectory JDBCTest_params.txt
is described in more detail in section Testing your JDBC connection.
When you are sure your settings describe a working JDBC connection to a DMBS which does not figure on Synop Analyzer's list of automatically supported DBMS, you can declare this user-defined JDBC data source to Synop Analyzer. Open the preferences file
<Setting name="userDefinedDBMSName"
This setting is the first out of a series of 9 settings which all start with the prefix "userDefined
, the last setting within the series is
<Setting name="userDefinedTableSizeColumnName"
.
Copy the 9 pieces of information which you have collected in the list shown above between the double quotes following the 9 value=
attributes of the 9 settings parameters, then save the modified file
If you encounter problems when accessing data residing in a DBMS (database management system), or if you want to define and test a new JDBC data source, you can test your JDBC connection using the test program
The test program
If you want to test whether your database management system and your JDBC driver is suitable for working with Synop Analyzer, do the following:
-cp
option. Use ;
as separator character and don't forget the relative directory path prefix. For example, for adding the Oracle JDBC library you could write -cp ../ojdbc6.jar
.
If you found the test package JDBCTest helpful and if you have added a new DBMS to