Running Jena Adapter on Oracle's 11g JVM - oracle

We are trying to develop java stored procedures within Oracle 11g r2 using the Jena Adapter. Our main purpose for using java stored procedures with the Jena Adapter is to be able to emit SPARQL 1.1 queries which get translated automatically to SQL statements.
We have succeeded in running Jena 2.6.4 within the Oracle JVM; but with no luck with the Jena Adpater (version 11.2.0.3) since it was compiled for the JRE ver. 1.6 (Oracle's JVM is ver. 1.5).
My question is: is there any Oracle's 11g JVM compatible Jena Adapter available (old packages maybe)?
In case there are none, what workaround could there be for using SPARQL 1.1 from within Oracle stored procedures?

Related

Oracle19c with AIX server, JDK7

Our application is using JDK7, websphere and is hosted on AIX box.
Recently we upgraded to oracle 19c from 12c. After this, application server does not start.
We do not see any error in startup logs. All application modules do not load, hence server does not come up.
We tried commenting all unnecessary modules in ILSStartupDef.xml, but same issue.
JDBC jar that we are using is ojdbc7-12.1.0.2.0-p0.jar.
Can someone please help ? Any config changes that we may be missing ? We dont want to upgrade to java8 unless its absolutely necessary.
Can you confirm that the database connexion test on the console is working properly ?
Note : Upgrading to Java 8 can be challenging, but Java 7 is no more supported.
Based on this document from IBM :
https://www.ibm.com/support/pages/websphere-application-server-support-policy-jdbc-databases-and-drivers
That being said, yes we do support Oracle 18C and 19C in WebSphere Application Server 8.5.5.X and V9.0.x but you must aware of this following.
We dont test WebSphere Application Server with each and every release of Oracle database. Please make sure you do the test before moving to production.
I believe the oracle 18C or later driver supports java 8 or later release only, if so please make sure WAS java level is also java 8. Java 8 is supported in 8.5.5.9 or later release.
If you ever see this issue, please consider upgrading WAS and do the test again. This issue is fixed in 8.5.5.13 or later release.
Good Luck
From Oracle perspective, please check this post :
Oracle 19c compatibility with jdk7
According to the Oracle JDBC FAQ (Question "What are the Oracle JDBC releases Vs JDK versions?"), only the Java versions you listed (Java 8 to 11) are supported for Oracle 19c.
I would advise to do the assessment for migrating to Java 8, using Transformation Advisor.
Good Luck
If you have upgraded the database server version to 19c then, it is recommended to upgrade the JDBC driver to the same version. So, you should use 19c JDBC driver.
19c JDBC driver requires JDK8 or JDK11. So, it is time to upgrade the JDK version as well as the JDBC driver as well.

Oracle DB 19c and java 6

There is any chance to connect to an oracle DB 19c with java 6?
I see that the connector is only compatible with jdk8
Whats happens if i use ojdbc6 for connect to a oracle DB 19c?
Thanks
Use Oracle 18 ojdc6.jar. Oracle Database JDBC is compatible with multiple previous and later versions of the database. In particular the 18 version of JDBC is compatible and fully supported with the 19 database.
Based on the Oracle JDBC FAQ the release 19c can be used with
ojdbc10.jar with JDK10, JDK11
or
ojdbc8.jar with JDK8, JDK9, JDK11
What happens if you use a lower JDK version?
Simple try, I assume you will see an exception while trying to connect Exception: Connection refused ...
otherwise (source is same as above) If it is not listed in the above table then please check with your support channel to check if you are still on the support contract for the older versions.

DB2 and Oracle Sybace Drivers for IBM websphere 8.5.5.11 with JDK 8

We are migrating applications from Websphere 8.5.5.2 to 8.5.5.11 with JDK 8.
We connecting 3 different databases Oracle,DB2,Sybase and currently using following drivers for the same.
DB2: db2jcc.jar,db2jcc_license_cu.jar,db2jcc_license_cisuz.jar
Oracle: ojdbc14.jar
Sybase:jconn4.jar
Dose this drivers will support JDK 8 or do we need to use different version of jars. We are bale to connect DB with this jars in WAS-8.5.5.11 but does this cause any connection issues when load was high.
To support Java-8 with Db2 jdbc , it is best to use a recent version of the Db2-driver files, at least higher than V10.5-fixpack7 or higher.
To learn which jdbc-driver-version gets supplied with which Db2-client version, check here. You can download latest drivers from that page (IBM registration required).
Looking at various Oracle doc (cited below) it looks like you should plan to move up to a newer version of the Oracle JDBC driver for Java 8.
Regarding ojdbc14.jar which you were using, Oracle documentation states that it is for JDK 1.4 and JDK 1.5
On the Oracle JDBC faq, under the section titled "What are the Oracle JDBC releases versus JDK versions?" it indicates to use ojdbc6, ojdbc7, or ojdbc8 with Java 8 depending on which Oracle database version you have.

Can I use OJDBC7 on a Oracle 11gR2 database?

Can we use Oracle 11g database with ojdbc7 for Oracle 12c (12.1) without any problem. Will new JDBC driver for Oracle Database 12c including a Java 7 JDBC driver (ojdbc7 - 12.1.0.1) still work If I upgrade my application server containing ojdbc7 for Oracle 12c.
Can we use Oracle 11g database with ojdbc7 for Oracle 12c (12.1) without any problem.
Yes you can, as shown in the table in the Oracle JDBC FAQ entry Which version of JDBC drivers support which version of Oracle database?:
Please refer to the table below for the Oracle database versions
supported by JDBC drivers. Best Practice that we recommend is, JDBC
driver version should always be either same as or higher than the
Oracle database version being used in order to leverage the latest
capabilities of the JDBC driver.
Interoperability Matrix DB 12.2.0.1 DB 12.1.0.x DB 11.2.0.x
JDBC 12.2.0.1 Yes Yes Yes
JDBC 12.1.0.x Yes Yes Yes
JDBC 11.2.0.x Yes Yes Yes
In other words, you can even upgrade to Oracle JDBC driver version 12.2.0.1 (which only supports Java 8), and still use that with Oracle 11g.
The driver might even work with earlier versions of Oracle, but this is not officially supported.
Note that ojdbc7 is not an indication of version, it just indicates that Java version it targets (ojdbc6 -> Java 6, ojdbc7 -> Java 7, ojdbc8 -> Java 8), and that again determines the supported JDBC specification version.

Grails 3.1.8 Oracle JDBC Driver configuration

I am trying to connect the Oracle Express Edition 11g through Grails 3.1.8. I tried all possible solutions:
Downloaded the jar file(ojdbc14.jar)
Adding a pom.xml to my sample application.
Searched the entire web for solution.
I was not able to achieve the connectivity between Grails3.1.8 and Oracle.
The only error I see is:
https://repo.grails.org/grails/core/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.jar (Use --stacktrace to see the full trace
Always use the latest JDBC driver in your application. JDBC driver is backward compatible with lower versions of the database. You can download the latest drivers from this path.

Resources