简体   繁体   English

是否可以在Oracle DBMS中升级Oracle JVM?

[英]Is it possible to upgrade the Oracle JVM inside the Oracle DBMS?

I am trying to understand how the Embedded Oracle JVM works ( The JVM used to run Java Stored Procedures and Triggers ). 我正在尝试了解嵌入式Oracle JVM的工作方式(用于运行Java存储过程触发器的JVM)。

  1. Is it possible to upgrade the existing embedded JVM? 是否可以升级现有的嵌入式JVM?
  2. Is it possible to configure Oracle RDBMS so that it uses an externally installed JRE as its embedded JVM? 是否可以配置Oracle RDBMS,使其使用外部安装的JRE作为嵌入式JVM?
  3. If the answer to 2. above is 'yes', Is it possible to use any version of JVM as the embedded JVM? 如果上面对2.的回答是“是”,是否可以使用任何版本的JVM作为嵌入式JVM? ( Or is there a compatibility matrix for each Oracle version ) (或者每个Oracle版本都有一个兼容性矩阵)
  4. Is it possible to have multiple embedded JVMs ( one for each Java version ) and to let the code decide which JVM it should run on? 是否可以有多个嵌入式JVM(每个Java版本一个),并让代码决定应在哪个JVM上运行? ( I saw a switch -edition for loadjava, but it was not clear what it was meant for ) (我看到了loadjava的switch -edition,但不清楚它的含义)

Even partial answers would be much appreciated 即使是部分答案也将不胜感激

  1. No 没有
  2. No 没有
  3. No 没有
  4. No 没有

The embedded JVM is (slightly) customized from a normal JVM and is compiled as part of the database. 嵌入式JVM是从普通JVM(略)自定义的,并被编译为数据库的一部分。 Different versions of Oracle have a different internal JVM so you could upgrade the JVM version by upgrading the database. 不同版本的Oracle具有不同的内部JVM,因此您可以通过升级数据库来升级JVM版本。 If you upgrade to 12.1 or later you would be able to choose between two different JVMs though it is an either/ or choice-- you can't have some code using one JVM and some using another. 如果您升级到12.1或更高版本,尽管可以选择两者之一,但您可以在两个不同的JVM之间进行选择-使用一个JVM不能使用某些代码,而使用另一个JVM则不能使用某些代码。

A Java stored procedure can't use an external JVM. Java存储过程不能使用外部JVM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM