>데이터 베이스 >MySQL 튜토리얼 >How to Add the JVM Component to an Existing Oracle Database

How to Add the JVM Component to an Existing Oracle Database

WBOY
WBOY원래의
2016-06-07 15:02:011086검색

Applies to: Oracle Server - Enterprise Edition - Version 11.2.0.1.0 and later Information in this document applies to any platform. This article details how to install the JVM in an existing Oracle11g Release 2 database. Goal Add the Oracl

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.1.0 and later
Information in this document applies to any platform.
This article details how to install the JVM in an existing Oracle11g Release 2 database.


Goal

Add the Oracle JVM component to an existing Oracle Database or instance.

As with all destructive actions, Oracle Corporation strongly advises taking a FULL COLD BACKUP of the database before these actions are performed.

Fix

There are two options:

Option 1. Add the Oracle JVM component using the Database Configuration Assistant Utility

a. Start the Database Configuration Assistant and Click Next at the Welcome screen.

b. Choose the option to configure a database. Click Next

How to Add the JVM Component to an Existing Oracle Database

c. Select the database service name to configure. Click Next

How to Add the JVM Component to an Existing Oracle Database

c. Click the Button labeled "Standard Database Components" and check or enable the box "Oracle JVM". Click Ok.

How to Add the JVM Component to an Existing Oracle Database

d. Click Next and then Finish to complete the action.

How to Add the JVM Component to an Existing Oracle Database





Option 2. Manually Add the JVM Component by executing the initjvm.sql script.

The following steps need to be executed precisely as listed below to ensure that they complete successfully:


a. Verify the following system requirements are available:

The Shared Pool has at least 96Mb of free space.
The Java Pool has at least 50Mb of free space
The SYSTEM tablespace has at least 70Mb of free space
The SYSTEM RBS has at least 100Mb of free space

The initjvm.sql script in 11g will check these resources are available when it is run, and if they aren't available the execution of the script will terminate with an error indicating which resource needs to be increased.

b. Shutdown the instance and then create and run the following sql script from a new sqlplus session:

 

-- Start of File full_jvminst.sql<br> spool full_jvminst.log;<br> set echo on<br> connect / as sysdba<br> startup mount<br> alter system set "_system_trig_enabled" = false scope=memory;<br> alter database open;<br> select obj#, name from obj$<br> where type#=28 or type#=29 or type#=30 or namespace=32;<br> <span>@?/javavm/install/initjvm.sql</span><br> select count(*), object_type from all_objects<br> where object_type like '%JAVA%' group by object_type;<br> <span>@?/xdk/admin/initxml.sql</span><br> select count(*), object_type from all_objects<br> where object_type like '%JAVA%' group by object_type;<br> <span>@?/xdk/admin/xmlja.sql</span><br> select count(*), object_type from all_objects<br> where object_type like '%JAVA%' group by object_type;<br> <span>@?/rdbms/admin/catjava.sql</span><br> select count(*), object_type from all_objects<br> where object_type like '%JAVA%' group by object_type;<br> <span>@?/rdbms/admin/catexf.sql</span><br> select count(*), object_type from all_objects<br> where object_type like '%JAVA%' group by object_type;<br> shutdown immediate<br> set echo off<br> spool off<br> exit<br> -- End of File full_jvminst.sql

 

c. Once the database has been restarted, resolve any invalid objects.

This can be performed by running the utlrp.sql script e.g.:

@?/rdbms/admin/utlrp.sql

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
이전 기사:Delphi访问共享다음 기사:mysql 常用命令学习