本文介绍了如何在 Oracle 中检查 JDK 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们的 Oracle DB 中有一个 Java 类,最近该 Java 类中的一行代码抛出错误:
We have a Java class within our Oracle DB and recently one line of code in that java class is throwing an error:
static BASE64Encoder B64 = new BASE64Encoder();
我们看到错误
java.lang.ExceptionInInitializerError
在这行代码上.
我不确定 DB 端发生了什么变化,因为我们没有 SYS 权限或访问主机.
I am not sure what has changed on the DB side as we don't have SYS privileges or access to host.
我想检查运行我们的 Oracle DB 的 JDK 版本 --
I wish to check the JDK version running our Oracle DB --
Oracle 数据库 11g 企业版 11.2.0.3.0 版 - 64 位生产.
谢谢.
推荐答案
SELECT dbms_java.get_ojvm_property(PROPSTRING=>'java.version') FROM dual
这篇关于如何在 Oracle 中检查 JDK 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!