Jdbc Driver Mac Os X

    14 - Comments

DBMS Requirements

Jun 27, 2011 I'm trying to install the jdbc driver on my Mac OS X Lion installation. I'm running JRE 1.6.026. I've downloaded postgresql-9.0-801.jdbc4.jar and run java -jar postgresql-9.0-801.jdbc4.jar which returns Failed to load Main-Class manifest attribute from postgresql-9.0-801.jdbc4.jar Any help trying to resolve this issue would be appreciated! I like SQLGrinder. It's built using Cocoa, so it looks a lot better and feels more like an Mac OS X application than all the Java-based application mentioned here. It uses JDBC drivers to connect to Microsoft SQL Server 2005, FrontBase, MySQL, OpenBase, Oracle, PostgreSQL, and Sybase. Free trial or $59.

  • Your target data source must be SQL compliant.
  • You must possess enough knowledge to establish a JDBC connection to this database using third-party or native JDBC drivers.

Software Requirements

To download the Vertica JDBC driver on Mac OS X: On your Mac client system, open a browser and log into the myVertica portal. Navigate to the Downloads page, scroll to the Client Software download section, and click the download link for the JDBC driver. Accept the license agreement and wait for the download to complete.

  • You must possess third-party or native JDBC drivers that connect to your target database. A client portion of these drivers must be installed on the same machine as the Single-Tier “Lite” Edition ODBC Driver for JDBC Data Sources.
  • The JDBC driver jar file (or a symbolic link to it) must be installed in the /Library/Java/Extensions/ directory which serves as Mac OS X’s default CLASSPATH. Supporting libraries (or links to them) may also need to be installed in this directory, or in one of Mac OS X’s default shared library directories (e.g., /usr/local/lib/, /usr/lib/, etc.).
  • You must have a Java Runtime Environment (JRE) that is compatible with our components.
    • The JRE was part of the default Mac OS X installation, for Cheetah (10.0) through Snow Leopard (10.6).
    • As of Lion (10.7), you may need to manually choose to add Java, but the OS should prompt you to do so when you try to use Java components.
    • All Java software shipped by Apple and installed as part of Mac OS X is compatible.
    • All Java software obtainable from Oracle for Lion (10.7) and later is compatible.
  • Important note for Snow Leopard (10.6), Leopard (10.5), and Tiger (10.4) users: PowerPC-based applications on Intel-based Macs cannot connect through our “Lite” Edition ODBC-to-JDBC Bridge, due to limitations in Mac OS X and its JRE. Commonly problematic applications include Microsoft Query as shipped with Microsoft Office:Mac v.X through Microsoft Office:Mac 2011 (upon which Microsoft Excel 2011 and earlier depend), and FileMaker Pro v8 and earlier.
    • PowerPC-native applications on PowerPC-based Macs can connect through our “Lite” Edition ODBC-to-JDBC Bridge.
    • Intel-native applications, and Universal Binary applications which include Intel-native components, on Intel-based Macs can connect through our “Lite” Edition ODBC-to-JDBC Bridge.
    • PowerPC-based applications on Intel-based Macs can connect through our Multi-Tier “Enterprise” Edition JDBC Bridge solution.

Configuration Requirements

  • You must be able to connect to the target database using the JDBC driver. OpenLink Product Support can provide minimal assistance in this area.
  • You must know the driver class name of the JDBC driver.
  • You must know the full details of the JDBC connection URL that connects to your target database.

Review Preinstallation Documentation:Pre-Installation Requirements


Jdbc Driver For Mysql

  1. The Lite Edition (Single-Tier) ODBC Driver for JDBC Data Sources is distributed in a single disk image (.dmg) file, which contains a Macintosh Installer package (.mpkg).
  1. Double-click the .mpkg to start the installation process.
  1. You will encounter a warning message that will ask you if you are sure that you want to install the software. Click Continue.
  1. The installer will display a Welcome message. Click “Continue.”
  1. The next screen will display the Read Me file, including any last- minute updates to these documents. Please read carefully and click “Continue” when finished.
  1. The next screen will display the License Agreement for the Single-Tier “Lite” Edition ODBC Driver for JDBC Data Sources. Please read and click “Continue.”
  1. You will be prompted to “Agree” to continue the installation or “Disagree” to abort.

Mysql Jdbc Driver Mac Os X

  1. You will be asked to select a Destination Volume. Generally, this should be your Mac OS X boot volume. Click on the desired disk icon and then click “Continue.”
  1. You may now choose the Easy Install, or if you are an experienced user, you may Customize which components are installed. We generally recommend the Easy Install.
  2. If you have installed OpenLink or iODBC components in the past, click “Upgrade” to continue. Otherwise, click “Install.”
  1. If you chose the custom option, select which of the listed components to install.
  1. You must have an Administration username and password to install this driver. Enter your Mac OS X Username and Password.
  1. You will be shown a graphical progress bar as the Installation progresses, followed by System Optimization.
  2. After the driver has been installed, you will be prompted to locate a license file.

NOTE – If a correctly named file already exists in $OPL_LICENSE_DIR, /Library/Application Support/openlink/bin/, you will not see this dialog. If the existing file is not valid (evaluation has expired, it’s for a different OS, it permits insufficient processor cores, etc.), you will need to manually apply a valid license file after installation is completed.

NOTE – In some environments, this dialog may be hidden by the Installer.app or other windows on your Mac. Please minimize, hide, and/or move windows until you can see and act on this dialog. If you do not answer this dialog, the installation will not complete properly, and the driver will not function as desired.

  • If a license file already exists on the machine, select the ‘use existing’ option. (Previously generated license files may be re-downloaded from your ODS-Briefcase data space.)
  • If you need to obtain a new trial or permanent license file, select the ‘try or buy’ option, which will load a relevant web page from which you can obtain a license file.

Jdbc Driver Mac Os X El Capitan

  1. When the process is complete, you will be told that the software was successfully installed. Click “Close” and the Single-Tier “Lite” Edition ODBC Driver for JDBC Data Sources is ready for use.


To configure an ODBC DSN, run the OpenLink iODBC Administrator located in the /Applications/iODBC folder:

  1. Click the System DSN tab:
  1. Click the Add button. Then, select the OpenLink JDBC Lite Driver from the list of available drivers. Select the Unicode version of the driver if and only if you are working with multi-byte character sets, as unnecessary translations can significantly affect ODBC performance:
  1. Click Finish.
  2. The Data Source tab prompts a Data Source Name and optional description.
  1. Click Continue.
  2. The Connection Tab takes the minimum requirements that are necessary to connect to your JDBC data source.

Jdbc Driver For Mac Os X

  • JDBC Driver - The class name for your third-party JDBC driver, e.g., virtuoso.jdbc3.Driver
  • URL String - The JDBC connection URL for your third-party JDBC driver
  • Username - The username for your JDBC database
  1. The Options tab displays additional parameters that can be configured for the connection.
  • Row Buffer Size - The number of records to be transported over the network in a single network hop. Values can range from 1 to 99.
  • Hide Login Dialog - Suppresses the ODBC “Username” and “Password” login dialog boxes when interacting with your ODBC DSN from within an ODBC compliant application.
  • Read Only connection - Specifies whether the connection is “Read-only.” Make sure the checkbox is unchecked to request a “Read/Write” connection.
  • Drop Catalog from Meta calls - Enable this option to have the catalog name not appear for tables, views, and procedures when requesting database meta-data.
  • Drop Schema from Meta calls - Enable this option to have the schema name not appear for tables, views, and procedures when requesting database meta-data.
  • No support of quoted identifier - If set, the call SQLGetInfo for ‘SQL_IDENTIFIER_QUOTE_CHAR’ will return a space (' '). It can be used if the DBMS doesn’t support quoted SQL like SELECT * from “account”
  • SQLStatistics disabled - Check this box to have SQLStatistics() return an empty result set. Use this if the underlying database does not support retrieval of statistics about a table (e.g. what indexes it has).
  • No support of search string escape - If set, the call SQLGetInfo(SQL_LIKE_ESCAPE_CLAUSE) will return a space (' '). It can be used if the DBMS doesn’t support SQL escape patterns.
  • Patch of NULL size of SQL_CHAR - If set, this option overrides the size of SQL_CHAR column type returned by the database with the value set in the text box (in bytes). With a default value of 0, the driver uses the size returned by the database.
  • SQL_DBMS Name - Manually overrides the SQLGetInfo(SQL_DBMS_NAME) response returned by the driver. This is required for products like Microsoft InfoPath (for which the value should be “SQL Server”).
  1. Click Continue to view additional preferences that can be set for the connection.
  • Initialization SQL - Lets you specify a file containing SQL statements that will be run automatically against the database upon connection.
  • Cursor Sensitivity - Enables or disables the row version cache used with dynamic cursors. When dynamic cursor sensitivity is set high, the Cursor Library calculates check-sums for each row in the current rowset and compares these with the check-sums (if any) already stored in the row version cache for the same rows when fetched previously. If the check-sums differ for a row, the row has been updated since it was last fetched and the row status flag is set to SQL_ROW_UPDATED. The row version cache is then updated with the latest check-sums for the rowset. From the user’s point of view, the only visible difference between the two sensitivity settings is that a row status flag can never be set to SQL_ROW_UPDATED when the cursor sensitivity is low. (The row status is instead displayed as SQL_ROW_SUCCESS.) In all other respects, performance aside, the two settings are the same. Deleted rows don’t appear in the rowset. Updates to the row since the row was last fetched are reflected in the row data, and inserted rows appear in the rowset, if their keys fall within the span of the rowset. If your application does not need to detect the row status SQL_ROW_UPDATED, you should leave the ‘High Cursor Sensitivity’ checkbox unchecked, as performance is improved. The calculation and comparison of check-sums for each row fetched carries an overhead. Before enabling this option, the table oplrvc must be created using the appropriate script for the target database.
  • Max Rows Override - Allows you to define a limit on the maximum number of rows to be returned from a query. The default value of 0 means no limit.
  • Disable AutoCommit - Changes the default commit behavior of the OpenLink driver. The default mode is AutoCommit (box unchecked).
  • Disable Rowset Size Limit - Disables a limitation enforced by the cursor library. This limitation is enforced by default. It prevents the driver from claiming all available memory in the event that a result set generated from an erroneous query is very large. The limit is not normally reached.
  • Defer fetching of long data - Defers fetching of LONG (BINARY, BLOB, etc.) data unless explicitly requested in a query. This can provides significant performance increases when fields in query do not include LONG data fields.
  • Multiple Active Statements Emulation - Enables use of Multiple Active Statements in an ODBC application even if the underlying database does not allow this, as it is emulated in the driver.
  1. Click the Finish button to save your new Data Source Name.

Posted by: Timothy DiLauro
Date: December 29, 2004 01:59PM
I'm running Mac OS X 10.3 with all the latest updates, including the latest Java updates. Others have mentioned in this forum that they have solved the problem I am about describe by applying the latest Java updates. This seems not to be the case for me.
I'm having a problem connecting to a MySQL 4.1.8 server using Connector/J. The doesn't really have anything to do with which version of the MySQL JDBC driver, but appears to occur because of classpath problems.
I wrote a small test program that uses the connector to return usernames in the form '<user>@<host>' from the 'mysql' database.
I have *no* problem connecting to the database using the 'mysql' command with the '-h' argument. Furthermore, I have no problem if I add ...
to the java command (see below -- after the failure -- for two examples of success. If, however, I put the connector jar file in the classpath, I get failure.
Does anyone know how I would resolve this under Mac OS X? I don't see any older versions of the connector jar file anywhere under the /System/Library/Frameworks/JavaVM.framework hierarchy.
When I run java with '-verbose' it shows some com.mysql.jdbc classes being loaded, but does not indicate where they were loaded from (they do
$ java -verbose -cp . test 2>&1 less
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/ui.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/laf.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/sunrsasign.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jsse.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jce.jar]
[Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/charsets.jar]
<snip />
[Loaded java.sql.Driver from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded com.mysql.jdbc.Driver]
[Loaded java.sql.DriverManager from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.sql.SQLPermission from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.sql.DriverInfo from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded com.mysql.jdbc.Connection]
<snip />
[Loaded java.sql.ResultSet from /System/Library/Frameworks/JavaVM.framework/Vers
[Loaded com.mysql.jdbc.ResultSet]
[Loaded java.lang.InterruptedException from shared objects file]
[Loaded com.mysql.jdbc.NotImplemented]
[Loaded java.sql.DatabaseMetaData from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.sql.Statement from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.sql.PreparedStatement from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.sql.CallableStatement from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded com.mysql.jdbc.SocketFactory]
[Loaded com.mysql.jdbc.StandardSocketFactory]
[Loaded java.lang.NoSuchMethodException from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar]
[Loaded java.net.SocketException from shared objects file]
[Loaded com.mysql.jdbc.CharsetMapping]
<snip />
[Loaded com.mysql.jdbc.MysqlIO]
<snip />
[Loaded com.mysql.jdbc.PacketTooBigException]
[Loaded com.mysql.jdbc.UpdatableResultSet]
[Loaded com.mysql.jdbc.RowData]
[Loaded com.mysql.jdbc.RowDataStatic]
[Loaded com.mysql.jdbc.RowDataDynamic]
[Loaded com.mysql.jdbc.Buffer]
<snip />
[Loaded com.mysql.jdbc.SQLError]
[Loaded com.mysql.jdbc.Util]
<snip />
This command line goes on to fail in the same way as the command below.
Does anyone have suggestions about how to track this down and resolve it under Mac OS X 10.3?
# This command fails
$ java -cp /usr/local/src/java/lib/mysql-connector-java-3.0.16-ga-bin.jar:. test
> SQLException:
Message: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream
MESSAGE: Unexpected end of input stream
java.io.IOException: Unexpected end of input stream
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1073)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:619)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511)
at com.mysql.jdbc.Connection.<init>(Connection.java:485)
at com.mysql.jdbc.Driver.connect(Driver.java:341)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at test.main(test.java:22)
SQLState: 08S01
ErrorCode: 0
# This command ran successfully
$ java -Xbootclasspath/a:/usr/local/src/java/lib/mysql-connector-java-3.0.16-ga-bin.jar test
Username = [email protected]%
Username = [email protected]
# This command ran successfully
$ java -Xbootclasspath/p:/usr/local/src/java/lib/mysql-connector-java-3.0.16-ga-bin.jar test
Username = [email protected]%
Username = [email protected]
Keywords: mysql 4.1.8 Mac OS X MacOSX osx


Written By
Re: Mac OS X Connector/J classpath problem (solved)
December 29, 2004 11:43PM

Oracle Jdbc Driver

Jdbc Driver Mac Os X Operating System

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.