Oracle 12c Jdbc Driver Download

0 views
Skip to first unread message

Pamela Olivares

unread,
Jan 21, 2024, 4:02:12 PM1/21/24
to trachexzildu

Whether on the cloud or on-premises, developing Java applications with Oracle Autonomous Databases is fast and simple. Java developers can take advantage of the latest features, such as Oracle Autonomous Database, performance self-tuning, high availability, in-memory processing, and pluggable databases to design and develop a high performant, scalable, and reliable applications. Oracle Database 19c and 18c JDBC drivers introduce a new property file (ojdbc.properties) along with few other features that simplifies the connection to Autonomous Transaction Processing (ATP) and Autonomous Data Warehousing (ADW).

However, I noticed that one big difference between SQLDeveloper and Spoon is that they use differentJava runtimes and JDBC Oracle drivers! In particular, my version of SQLDeveloper is running on 32-bit JRE version 1.6.0_11, whereas my system-wide JDK is 64-bit version 1.7.0_03.

oracle 12c jdbc driver download


Download Filehttps://t.co/cOgEFOjo6s



2. Download 1 file: ojdbc6.jar(2,739,670 bytes) - (SHA1 Checksum: a483a046eee2f404d864a6ff5b09dc0e1be3fe6c)Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.

Our product is run on databases maintained by our clients, i.e. whatever version and patch the clients have running is what it is.
So what driver do we use? The latest (Oracle 11g) - despite the fact that it's usually 9i and 10g databases?

The numbers in ojdbc14.jar, ojdbc5.jar, ojdbc6.jar, ojdbc7.jar and ojdbc8.jar refer to the version of the Java compiler that was used. With every version of Java come new JDBC APIs so these numbers are useful to know what to expect. For example in Java 8, there is a new method executeLargeUpdate in java.sql.PreparedStatement. This method will be implemented in ojdbc8.jar but not in ojdbc7.jar. Also if your runtime uses Java 7 then you know you can't use ojdbc8.jar otherwise you'll run into a java.lang.UnsupportedClassVersionError error. These are the reasons why Oracle includes these numbers in the jar's name. Also note that if you want to know from which Oracle Database release the jar comes from you can run java -jar ojdbc8.jar. Both the Database and the driver are backward compatible (up to 1 major release) so, even though it's recommended, you don't have to use the same version of the product on both tiers.

When we upgraded our Oracle database from 8.1.7 to 10.2.0, I was able to use the same Oracle jdbc driver (ojdbc14.jar). So their jdbc driver supports quite a few versions at the same time. Of course it's possible that some of the drivers are buggy, but the plan is to support more versions at the same time.

When attempting to install ojdbc10.jar on my local laptop, (without the JDK developers environment, & java version 1.8.0_231_b11) I lose connection to my Oracle databases. When looking @ the error message from the database connection tab on the status page, I get the following error:

Caused by: java.lang.UnsupportedClassVersionError: oracle/jdbc/driver/OracleDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0.

Would installing the JDK devlopers kit solve this? Is there anything else that should be done to facilitate the ojdbc10.jar file? Im trying to iron out the kinks prior to rolling out to production critical licenses & had minimal luck finding documentation to learn from.

Following up on configuring the Oracle JDBC drivers and UCP in Java projects, we last saw how to get the job done with Helidon, a straight forward task thanks to its built-in UCP extension. Today we have a look at Micronaut, which also happens to provide a built-in solution.

Now, when selecting features or capabilities with either Micronaut launch or the CLI make sure to pick jdbc-ucp, as that will add the required configuration to your pom.xml (if you chose Maven) or build.gradle (if you chose Gradle). If the jdbc-ucp feature were not available you can sill configure it manually, like is shown next. For Maven make sure that this dependency is found in the block

Now, should you need to use a different version of the Oracle JDBC drivers and/or UCP I'm afraid that you'll have to configure additional dependencies in your build files (as shown in the first post) due to the fact that micronaut-jdbc-ucp does not expose the Oracle version as a property like Helidon does for Maven. In Gradle there's no such feature for overriding versions via properties like there is in Maven thus you always have to specify an explicit dependency in the build when overriding a dependency.

Now, when selecting features or capabilities with either Micronaut launch or the CLI make sure to pick jdbc-ucp, as that will add the required configuration to your pom.xml (if you chose Maven) or build.gradle (if you chose Gradle). If the jdbc-ucp feature were not available you can sill configure it manually, like is shown next. For Maven make sure that this dependency is found in the <dependencies> block

Now, should you need to use a different version of the Oracle JDBC drivers and/or UCP I'm afraid that you'll have to configure additional dependencies in your build files (as shown in the first post) due to the fact that micronaut-jdbc-ucp does not expose the Oracle version as a property like Helidon does for Maven. In Gradle there's no such feature for overriding versions via properties like there is in Maven thus you always have to specify an explicit dependency in the build when overriding a dependency.

Most likely the issue is caused by the java jre/jdk version used. I had ran into this error on jre 1.6. Once I have upgraded to jre 1.7, the error has stopped occurring. I only needed the ojdbc6.jar in $SPLUNK_HOME/etc/apps/dbx/bin/lib and it has been working fine.

From the "Recent DB Connect errors" search, I found this
11:35:36.712 dbx4539:ERROR:BridgeSession - Exception occured while executing command: java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.driver.DMSFactory
java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.driver.DMSFactory

There's no single database related state which leads to this error. Rather, if the driver is unable (in the alotted time) to establish a connection to the database and perform its initialization on that connection, then it will return this error. The error can be caused in part by server response latency, network traffic, etc.

I have "manufactured" this type of behavior in the past by making use of an external snoop tool that sits between the driver and the database. Pausing the snoop tool during the connect establishment process allows for reproducing this error.

The Oracle JDBC driver (as well as the other JDBC drivers) will throw such an exception only if the "LoginTimeout" connect option is specified as one of the connection properties AND the specified time is exceeded when attempting to establish the connection. See documentation.progress.com/.../index.html for the published documentation of that connect option.

I'm getting the error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver. Others in my team can run the same test but I keep getting this error. We thought I must be missing a .jar file but have compared my files to those of someone that can run the test and I have all the .jar files that they have. It has been suggested that I should try reinstalling LISA but thought I'd see if there are any other ideas here first.

Look at a teammates LISA installation and check out both "hotDeploy" and "lib" folders. They'll have the driver JAR in one of those two locations. Copy it to your installation and things should start working.

Error says, it is missing oracle driver jar file in your class path. Devtest by default includes oracle driver jar file (ojdbc****.jar) in /shared folder. Please share the version of devtest you are using and just check the LISA_HOME details in your log file (if you are getting this error on workstation, just check workstation.log file). If you have defined any LISA_HOME in your environment variable and if there is no oracle driver jar file exists, you may get this error.

ColdFusion Enterprise and J2EE Editions include DataDirect Technologies JDBC type IV driver for Oracle. This high-performance database connectivity component from the leading Oracle JDBC driver vendor supports the latest Oracle database enhancements and the full JDBC 3.0 specification, including pooling enhancements, BLOB/CLOB updates including read/write support, support for Multiple Open Results Sets, and savepoints. No special ColdFusion Server configuration is required to use this driver.Note: Oracle Ref Cursors are only supported with the DataDirect Technologies Oracle JDBC Driver.

Looking at the commands you have listed, you have created the JDBC module with the module name com.oracle, but when you are creating the driver you are referencing the module name as driver-module-name=com.oracle.jdbc.

As part of the November (4.35) release, we are upgrading the Oracle JDBC driver from version 11.2.0.4 to 19.20.0.0 to improve security, performance, stability, and reliability of the Oracle Snap Pack. Oracle Database 19c offers significant enhancements, bug fixes, and new features unavailable in the 11g version. Upgrading to 19.20.0.0 ensures continued support and compatibility with modern systems and provides a more efficient and secure database environment.

df19127ead
Reply all
Reply to author
Forward
0 new messages