简体   繁体   English

如何在oracle中安装jvm?

[英]How to install jvm in oracle?

I am having trouble installing JVM in Oracle 9.2.0.6.0我在 Oracle 9.2.0.6.0 中安装 JVM 时遇到问题

I have attempted installation by running $ORACLE_HOME/javavm/install/initjvm.sql .我尝试通过运行$ORACLE_HOME/javavm/install/initjvm.sql But it throws error但它抛出错误

ORA-06512: 在"SYS.INITJVMAUX", line 15. 

When I look up the package body INITJVMAUX:当我查找包体 INITJVMAUX 时:

procedure exec (x varchar2) as
begin
dbms_output.put_line(substr(x, 1, 250));
execute immediate x;  --line 15
end;

and it's called by它被称为

-- Load all the Java classes
begin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then
  initjvmaux.rollbacksetup;
  commit;
  initjvmaux.rollbackset;
  initjvmaux.exec('create or replace java system'); --error
  commit;
  initjvmaux.rollbackcleanup;
  initjvmaux.endstep;
end if; end;
/

I need some help in getting this installed.我需要一些帮助来安装它。 The version is Oracle 9i Enterprise Edition Release 9.2.0.6.0.版本为 Oracle 9i Enterprise Edition Release 9.2.0.6.0。

Here are the steps that needs to be carried out to re-install the JAVA Virtual Machine.以下是重新安装 JAVA 虚拟机需要执行的步骤。

1.To uninstall (if already installed) the current installation of JAVA Virtual Machine, execute the following scripts at the SQL prompt connected as sys user. 1.要卸载(如果已经安装)当前安装的JAVA虚拟机,请在以sys用户身份连接的SQL提示符下执行以下脚本。

 startup mount; alter system set "_system_trig_enabled" = false scope=memory; alter system enable restricted session; alter database open; @?/rdbms/admin/catnojav.sql @?/xdk/admin/rmxml.sql @?/javavm/install/rmjvm.sql truncate table java$jvm$status;

Once all the above commands have been executed successfully, restart the database.成功执行上述所有命令后,重新启动数据库。 Shutdown of the database is necessary to ensure that the changes are synchronized with the disk after removal of JAVA Virtual Machine.删除 JAVA 虚拟机后,必须关闭数据库以确保更改与磁盘同步。

2.To install the JAVA Virtual Machine execute the following scripts at the SQL prompt connected as sys user. 2.要安装JAVA虚拟机,以sys用户身份在SQL提示符下执行以下脚本。

 startup mount alter system set "_system_trig_enabled" = false scope=memory; alter database open; @?/javavm/install/initjvm.sql @?/xdk/admin/initxml.sql @?/xdk/admin/xmlja.sql @?/rdbms/admin/catjava.sql shutdown immediate;

3.Start the database and resolve any INVALID objects by executing the utlrp.sql script. 3. 启动数据库并通过执行 utlrp.sql 脚本解析任何 INVALID 对象。

@?/rdbms/admin/utlrp.sql @?/rdbms/admin/utlrp.sql

Now the JVM should be fully installed and functional.现在 JVM 应该已完全安装并正常运行。

SQL> select comp_name, version, status from dba_registry; SQL> 从 dba_registry 中选择 comp_name、version、status;

Please go through Knowlege Mgmt Note ID 757771.1 How to Reload the JVM in 10.1.0.X and 10.2.0.X in Oracle Support (formerly metalink ) to go through a much detailed step by step process (with video) to resolve any issues that you may be facing.请通过知识管理说明ID 757771.1 How to Reload the JVM in 10.1.0.X and 10.2.0.XOracle 支持(以前称为 metalink)中ID 757771.1 How to Reload the JVM in 10.1.0.X and 10.2.0.XID 757771.1 How to Reload the JVM in 10.1.0.X and 10.2.0.X更详细的分步过程(带视频)以解决任何问题你可能面临的。 This note also consists of several other Notes that resolve different issues.此注释还包含解决不同问题的其他几个注释。

To install Oracle JVM, log into Oracle with SYSDBA privileges.要安装 Oracle JVM,请使用 SYSDBA 权限登录 Oracle。
run this command in SQL*plus:在 SQL*plus 中运行此命令:

SQL>@ORACLE_HOME\\javavm\\install\\initjvm.sql SQL>@ORACLE_HOME\\javavm\\install\\initjvm.sql

And then进而

SQL> select COMP_NAME, VERSION, STATUS FROM dba_registry SQL> 从 dba_registry 中选择 COMP_NAME、VERSION、STATUS

to confirm JVM is installed correctly.确认 JVM 安装正确。

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

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