Version Oracle JVM 10.2.0.4 patchset

Hi,
I would like to ask you what is the version of Oracle JVM in patchset 10.2.0.4?
Version of Oracle JVM:
create or replace and compile java source named java_version as
public class JavaVersion
public static String Get()
String Version = System.getProperties().getProperty("java.version");
return Version;
SQL> CREATE OR REPLACE FUNCTION fnc_JavaVersion RETURN VARCHAR2 AS
LANGUAGE JAVA NAME 'JavaVersion.Get( ) return java.lang.String';
SELECT fnc_JavaVersion() FROM dual;
If an error occurs try:
SQL> exec dbms_java.grant_permission( 'SYSADM', 'SYS:java.util.PropertyPermission', '*', 'read,write' );
and run again:
SELECT fnc_JavaVersion() FROM dual;
Thank you,
Michal

Hi Satish,
you right. The version of the JavaVM in 10.2.0.4 is 1.4.2_04. See output.
COMP_ID SCHEMA STATUS VERSION COMP_NAME
EM SYSMAN VALID 10.2.0.4.0 Oracle Enterprise Manager
SDO MDSYS VALID 10.2.0.4.0 Spatial
ORDIM ORDSYS VALID 10.2.0.4.0 Oracle interMedia
AMD OLAPSYS VALID 10.2.0.4.0 OLAP Catalog
XDB XDB VALID 10.2.0.4.0 Oracle XML Database
CONTEXT CTXSYS VALID 10.2.0.4.0 Oracle Text
EXF EXFSYS VALID 10.2.0.4.0 Oracle Expression Filter
RUL EXFSYS VALID 10.2.0.4.0 Oracle Rule Manager
OWM WMSYS VALID 10.2.0.4.3 Oracle Workspace Manager
ODM DMSYS VALID 10.2.0.4.0 Oracle Data Mining
CATALOG SYS VALID 10.2.0.4.0 Oracle Database Catalog Views
CATPROC SYS VALID 10.2.0.4.0 Oracle Database Packages and Types
JAVAVM   SYS      VALID        10.2.0.4.0 JServer JAVA Virtual Machine
XML SYS VALID 10.2.0.4.0 Oracle XDK
CATJAVA SYS VALID 10.2.0.4.0 Oracle Database Java Packages
APS SYS VALID 10.2.0.4.0 OLAP Analytic Workspace
XOQ SYS VALID 10.2.0.4.0 Oracle OLAP API
FNC_JAVAVERSION
1.4.2_04
Best regards,
Michal

Similar Messages

  • How to install new version of jvm in Oracle?

    We are using Oracle 9i which is internally using jvm ver 1.2.2. It has a bug 'ByteCode Verifier', so we need to replace the jvm's ver with 1.2.2_011. Can someone help me figuring out how we can uninstall the old version of jvm and install the new version as required in the database.(jvm being used for java stored procedures)

    Hello ec:
    Welcome to Apple discussions.
    As far as I know, you cannot download Safari and reinstall it successfully. Install Safari from your software install DVD and then run software update.
    I do not use Hotmail, so I have no information about that platform.
    Barry

  • ORACLE JVM (8.1.5 - 9.0.1)를 수동으로 설치하기

    제품 : ORACLE SERVER
    작성날짜 : 2002-09-27
    Oracle JVM (8.1.5 - 9.0.1)를 수동으로 설치하기
    ==============================================
    Purpose
    v 8.1.5, 8.1.6, 8.1.7 and 9.0.1에서 Oracle JVM의 모든 구성 요소
    를 설치하기 위해 실행해야 하는 sql script들을 설명하고,
    JVM이 성공적으로 설치되었는지 test program으로 확인해 봅니다.
    주의 : 이 script들은 반드시
    SYS 또는 INTERNAL 로 실행되어야만 합니다.
    'initjvm.sql' script는 JVM을 설치하기위해 필요합니다.
    그리고 그 외에 추가되는 script들은 각각에 설명된 추가적인
    기능을위해 실행되어야 하는 script들입니다.
    ("--"표시로 주석 처리가 되어 있습니다.)
    설치에 앞서 점검해야 할 사항
    다음은 권장되는 사항입니다.
    SHARED_POOL_SIZE >= 65 MB
    JAVA_POOL_SIZE >= 50 MB
    SYSTEM tablespace내에 50 MB 이상의 free space
    250 MB 이상의 rollback segment space
    주의 : 위 사항이 만족되지 않거나 부족한 경우 다음 에러가 발생하거나
    script실행 도중 hang이 걸릴 수 있습니다.
    ORA-3113 : end-of-file on communication channel
    ORA-4030 : out of process memory when trying to allocate %s bytes
    ORA-4031 : unable to allocate bytes of shared memory
    Explanation
    Oracle JVM을 수동으로 설치하기
    JVM version 8.1.5를 위한 script
    initjvm.sql 만 실행해 주면 됩니다.
    -------- Script jvm_install_815.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -------- Script jvm_install_815.sql end ------------------
    JVM version 8.1.6를 위한 script
    -------- Script jvm_install_816.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initaqjms.log
    start @$ORACLE_HOME/rdbms/admin/initaqjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -------- Script jvm_install_816.sql end ------------------
    Scripts needed for JVM version 8.1.7
    8.1.7에는 새로운 Java API와 component들이 추가되어
    수행해야 하는 script들이 더 많습니다.
    -------- Script jvm_install_817.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool jvminst.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Loads xml components into the JServer
    spool initxml.log
    start @$ORACLE_HOME/oracore/admin/initxml.sql
    spool off
    -- loads the XMLSQL Utility (XSU) into the database
    spool catxsu.log
    start @$ORACLE_HOME/rdbms/admin/catxsu.sql
    spool off
    -- JIS (OSE) installation
    spool init_jis.log
    start @$ORACLE_HOME/javavm/install/init_jis.sql
    spool off
    -- Turn on JAccelerator (ncomp) for JIS
    spool jisja.log
    start @$ORACLE_HOME/javavm/install/jisja.sql
    spool off
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    spool jisaephc.log
    start @$ORACLE_HOME/javavm/install/jisaephc.sql
    spool off
    -- Load PLSQL Gateway Servlet jar files into the database
    spool initplgs.log
    start @$ORACLE_HOME/rdbms/admin/initplgs.sql
    spool off
    -- Install Oracle JSP
    spool initjsp.log
    start @$ORACLE_HOME/jsp/install/initjsp.sql
    spool off
    -- Turn on JAccelerator for JSP libs
    spool jspja.log
    start @$ORACLE_HOME/jsp/install/jspja.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initjms.log
    start @$ORACLE_HOME/rdbms/admin/initjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -- loads sql, objects, extensibility and xml related java
    spool initsoxx.log
    start @$ORACLE_HOME/rdbms/admin/initsoxx.sql
    spool off
    -- Configure OSE defauls admin Web Service
    spool jisaep.log
    start @$ORACLE_HOME/javavm/install/jisaep admin 8080 9090
    spool off
    -------- Script jvm_install_817.sql end ------------------
    JVM version 9.0.1 을 설치하기 위한 script
    Using the database configuration assistant, follwoing scripts will be
    executed:
    -- Setup a database for running Java and the ORB
    SQL>@$ORACLE_HOME/javavm/install/initjvm.sql;
    -- INITialize (load) XML components in JServer
    SQL>@$ORACLE_HOME/xdk/admin/initxml.sql;
    -- Loads NCOMP'ed XML Parser
    SQL>@$ORACLE_HOME/xdk/admin/xmlja.sql;
    -- loads the XMLSQL Utility (XSU) into the database.
    SQL>@$ORACLE_HOME/rdbms/admin/catxsu.sql;
    -- install the Oracle Servlet Engine (OSE)
    SQL>@$ORACLE_HOME/javavm/install/init_jis.sql <$ORACLE_HOME>;
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    SQL>@$ORACLE_HOME/javavm/install/jisaephc.sql <$ORACLE_HOME>;
    -- turn on J Accelerator
    SQL>@$ORACLE_HOME/javavm/install/jisja.sql <$ORACLE_HOME>;
    -- register EJB/Corba Dynamic Registration Endpoint
    SQL>@$ORACLE_HOME/javavm/install/jisdr.sql 2481 2482;
    -- init Java server pages @$ORACLE_HOME@$ORACLE_HOME@$ORACLE_HOME
    SQL>@$ORACLE_HOME/jsp/install/initjsp.sql;
    -- turn on J Accelerator for JSP libs
    SQL>@$ORACLE_HOME/jsp/install/jspja.sql;
    -- script used to load AQ/JMS jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initjms.sql;
    -- load RepAPI server classes and publish 'repapi' obj
    SQL>@$ORACLE_HOME/rdbms/admin/initrapi.sql;
    -- loads sql, objects, extensibility and xml related java
    SQL>@$ORACLE_HOME/rdbms/admin/initsoxx.sql;
    -- Loads appctxapi.jar for JavaVm enabled Database.Called by jcoreini.tsc
    SQL>@$ORACLE_HOME/rdbms/admin/initapcx.sql;
    -- script used to load CDC jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initcdc.sql;
    -- Loads the Java stored procedures as required by the
    -- Summary Advisor.
    SQL>@$ORACLE_HOME/rdbms/admin/initqsma.sql;
    --Initialize sqlj type feature in 9i db
    SQL>@$ORACLE_HOME/rdbms/admin/initsjty.sql;
    --load java componenets for AQ HTTP Propagation
    SQL>@$ORACLE_HOME/rdbms/admin/initaqhp.sql;
    Test program으로 JVM test해보기
    Java Stored Procedure 만들기
    다음과 같은 순서로 Java Stored Procedure를 만들어 봅니다.
    1. Java program을 만듭니다.
    2. program을 database로 loading합니다.
    3. Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    4. SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    Step 1: Java program을 만듭니다.
    ======
    EchoInput.java
    public class EchoInput {
    public static void main (String[] args){
    for (int i=0; i<args.length;i++)
    System.out.println(args);}}
    Step 2: program을 database로 loading합니다.
    ======
    UNIX prompt상에서 다음을 실행합니다:
    % loadjava -u scott/tiger -v -r EchoInput.java
    또는 SQL*Plus에서는 다음과 같이 할 수도 있습니다:
    CREATE OR REPLACE JAVA SOURCE NAMED "EchoInput" AS
    public class EchoInput { public static void main (String[] args) {
    for (int i=0; i<args.length;i++) System.out.println(args[i]);}}
    Step 3: Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    ======
    SQL 또는 PL/SQL에서 만든 Java program을 호출하기 위해서는
    Java program을 SQL (PL/SQL Wrapper)로 publish해야 합니다.
    이과정을 PL/SQL Wrapper를 만든다고도 합니다.
    일단 published/wrapped가 되면 SQL 또는 PL/SQL을 통해 호출될 수
    있습니다.
    예제 :
    create or replace procedure echo_input (
    s1 varchar2, s2 varchar2, s3 varchar2)
    as language Java
    name 'EchoInput.main(java.lang.String[])';
    Step 4: SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    ======
    call dbms_java.set_output(5000);
    call echo_input('It', 'works', 'now!');
    주의 : SQL*Plus에서 실행할 경우 먼저 'set serveroutput on'을
    해주시기 바랍니다.
    결과 화면
    SQL> set serveroutput on
    SQL> call dbms_java.set_output(5000);
    Call completed.
    SQL> call echo_input('It', 'works', 'now!');
    It
    works
    now!
    Call completed.
    SQL>
    Example
    Reference Documents

    제품 : ORACLE SERVER
    작성날짜 : 2002-09-27
    Oracle JVM (8.1.5 - 9.0.1)를 수동으로 설치하기
    ==============================================
    Purpose
    v 8.1.5, 8.1.6, 8.1.7 and 9.0.1에서 Oracle JVM의 모든 구성 요소
    를 설치하기 위해 실행해야 하는 sql script들을 설명하고,
    JVM이 성공적으로 설치되었는지 test program으로 확인해 봅니다.
    주의 : 이 script들은 반드시
    SYS 또는 INTERNAL 로 실행되어야만 합니다.
    'initjvm.sql' script는 JVM을 설치하기위해 필요합니다.
    그리고 그 외에 추가되는 script들은 각각에 설명된 추가적인
    기능을위해 실행되어야 하는 script들입니다.
    ("--"표시로 주석 처리가 되어 있습니다.)
    설치에 앞서 점검해야 할 사항
    다음은 권장되는 사항입니다.
    SHARED_POOL_SIZE >= 65 MB
    JAVA_POOL_SIZE >= 50 MB
    SYSTEM tablespace내에 50 MB 이상의 free space
    250 MB 이상의 rollback segment space
    주의 : 위 사항이 만족되지 않거나 부족한 경우 다음 에러가 발생하거나
    script실행 도중 hang이 걸릴 수 있습니다.
    ORA-3113 : end-of-file on communication channel
    ORA-4030 : out of process memory when trying to allocate %s bytes
    ORA-4031 : unable to allocate bytes of shared memory
    Explanation
    Oracle JVM을 수동으로 설치하기
    JVM version 8.1.5를 위한 script
    initjvm.sql 만 실행해 주면 됩니다.
    -------- Script jvm_install_815.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -------- Script jvm_install_815.sql end ------------------
    JVM version 8.1.6를 위한 script
    -------- Script jvm_install_816.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initaqjms.log
    start @$ORACLE_HOME/rdbms/admin/initaqjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -------- Script jvm_install_816.sql end ------------------
    Scripts needed for JVM version 8.1.7
    8.1.7에는 새로운 Java API와 component들이 추가되어
    수행해야 하는 script들이 더 많습니다.
    -------- Script jvm_install_817.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool jvminst.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Loads xml components into the JServer
    spool initxml.log
    start @$ORACLE_HOME/oracore/admin/initxml.sql
    spool off
    -- loads the XMLSQL Utility (XSU) into the database
    spool catxsu.log
    start @$ORACLE_HOME/rdbms/admin/catxsu.sql
    spool off
    -- JIS (OSE) installation
    spool init_jis.log
    start @$ORACLE_HOME/javavm/install/init_jis.sql
    spool off
    -- Turn on JAccelerator (ncomp) for JIS
    spool jisja.log
    start @$ORACLE_HOME/javavm/install/jisja.sql
    spool off
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    spool jisaephc.log
    start @$ORACLE_HOME/javavm/install/jisaephc.sql
    spool off
    -- Load PLSQL Gateway Servlet jar files into the database
    spool initplgs.log
    start @$ORACLE_HOME/rdbms/admin/initplgs.sql
    spool off
    -- Install Oracle JSP
    spool initjsp.log
    start @$ORACLE_HOME/jsp/install/initjsp.sql
    spool off
    -- Turn on JAccelerator for JSP libs
    spool jspja.log
    start @$ORACLE_HOME/jsp/install/jspja.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initjms.log
    start @$ORACLE_HOME/rdbms/admin/initjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -- loads sql, objects, extensibility and xml related java
    spool initsoxx.log
    start @$ORACLE_HOME/rdbms/admin/initsoxx.sql
    spool off
    -- Configure OSE defauls admin Web Service
    spool jisaep.log
    start @$ORACLE_HOME/javavm/install/jisaep admin 8080 9090
    spool off
    -------- Script jvm_install_817.sql end ------------------
    JVM version 9.0.1 을 설치하기 위한 script
    Using the database configuration assistant, follwoing scripts will be
    executed:
    -- Setup a database for running Java and the ORB
    SQL>@$ORACLE_HOME/javavm/install/initjvm.sql;
    -- INITialize (load) XML components in JServer
    SQL>@$ORACLE_HOME/xdk/admin/initxml.sql;
    -- Loads NCOMP'ed XML Parser
    SQL>@$ORACLE_HOME/xdk/admin/xmlja.sql;
    -- loads the XMLSQL Utility (XSU) into the database.
    SQL>@$ORACLE_HOME/rdbms/admin/catxsu.sql;
    -- install the Oracle Servlet Engine (OSE)
    SQL>@$ORACLE_HOME/javavm/install/init_jis.sql <$ORACLE_HOME>;
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    SQL>@$ORACLE_HOME/javavm/install/jisaephc.sql <$ORACLE_HOME>;
    -- turn on J Accelerator
    SQL>@$ORACLE_HOME/javavm/install/jisja.sql <$ORACLE_HOME>;
    -- register EJB/Corba Dynamic Registration Endpoint
    SQL>@$ORACLE_HOME/javavm/install/jisdr.sql 2481 2482;
    -- init Java server pages @$ORACLE_HOME@$ORACLE_HOME@$ORACLE_HOME
    SQL>@$ORACLE_HOME/jsp/install/initjsp.sql;
    -- turn on J Accelerator for JSP libs
    SQL>@$ORACLE_HOME/jsp/install/jspja.sql;
    -- script used to load AQ/JMS jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initjms.sql;
    -- load RepAPI server classes and publish 'repapi' obj
    SQL>@$ORACLE_HOME/rdbms/admin/initrapi.sql;
    -- loads sql, objects, extensibility and xml related java
    SQL>@$ORACLE_HOME/rdbms/admin/initsoxx.sql;
    -- Loads appctxapi.jar for JavaVm enabled Database.Called by jcoreini.tsc
    SQL>@$ORACLE_HOME/rdbms/admin/initapcx.sql;
    -- script used to load CDC jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initcdc.sql;
    -- Loads the Java stored procedures as required by the
    -- Summary Advisor.
    SQL>@$ORACLE_HOME/rdbms/admin/initqsma.sql;
    --Initialize sqlj type feature in 9i db
    SQL>@$ORACLE_HOME/rdbms/admin/initsjty.sql;
    --load java componenets for AQ HTTP Propagation
    SQL>@$ORACLE_HOME/rdbms/admin/initaqhp.sql;
    Test program으로 JVM test해보기
    Java Stored Procedure 만들기
    다음과 같은 순서로 Java Stored Procedure를 만들어 봅니다.
    1. Java program을 만듭니다.
    2. program을 database로 loading합니다.
    3. Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    4. SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    Step 1: Java program을 만듭니다.
    ======
    EchoInput.java
    public class EchoInput {
    public static void main (String[] args){
    for (int i=0; i<args.length;i++)
    System.out.println(args);}}
    Step 2: program을 database로 loading합니다.
    ======
    UNIX prompt상에서 다음을 실행합니다:
    % loadjava -u scott/tiger -v -r EchoInput.java
    또는 SQL*Plus에서는 다음과 같이 할 수도 있습니다:
    CREATE OR REPLACE JAVA SOURCE NAMED "EchoInput" AS
    public class EchoInput { public static void main (String[] args) {
    for (int i=0; i<args.length;i++) System.out.println(args[i]);}}
    Step 3: Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    ======
    SQL 또는 PL/SQL에서 만든 Java program을 호출하기 위해서는
    Java program을 SQL (PL/SQL Wrapper)로 publish해야 합니다.
    이과정을 PL/SQL Wrapper를 만든다고도 합니다.
    일단 published/wrapped가 되면 SQL 또는 PL/SQL을 통해 호출될 수
    있습니다.
    예제 :
    create or replace procedure echo_input (
    s1 varchar2, s2 varchar2, s3 varchar2)
    as language Java
    name 'EchoInput.main(java.lang.String[])';
    Step 4: SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    ======
    call dbms_java.set_output(5000);
    call echo_input('It', 'works', 'now!');
    주의 : SQL*Plus에서 실행할 경우 먼저 'set serveroutput on'을
    해주시기 바랍니다.
    결과 화면
    SQL> set serveroutput on
    SQL> call dbms_java.set_output(5000);
    Call completed.
    SQL> call echo_input('It', 'works', 'now!');
    It
    works
    now!
    Call completed.
    SQL>
    Example
    Reference Documents

  • How can I find out the java version Oracle has ?

    How can I find out the java version Oracle has built in?
    I've tried with ..
    SELECT comp_id, comp_name, version
    FROM dba_registry ;
    But I get.."table doesn't not exist".
    Thenks in advance!

    Pl post details of OS and database versions. Pl see this MOS Doc
    What Version of Java is Compatible With The Database JVM? [ID 438294.1]     
    and these Oracle docs
    11gR2 - http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_environments.htm#ADFNS654
    11gR1 - http://docs.oracle.com/cd/B28359_01/java.111/b31225/whatsnew.htm
    HTH
    Srini

  • Setting max heap in Oracle JVM

    Hello -
    I'm having a problem with a Java stored procedure running out of heap memory in Oracle 10g running Java 1.4.
    Normally (running Java in a standard context) I would just modify the -Xmx with a higher value, but for the life of me I can't figure out how to do it in a stored procedure context.
    I have browsed Google and I have browsed the Oracle JVM installation stuff, all to no avail.
    Can anyone help me with how to set my max heap size, or verify that it's impossible? I have taken all of the standard Oracle memory parameters (JAVA_POOL, UGA/PGA/SGA limits) out of the picture by jacking them up and keeping an eye on memory values up to the point that the procedure fails (at ~700m), so I'm pretty sure that this is my problem.
    So far I have looked at:
    Config files
    Config tables
    DB parameters
    I haven't been able to find anything remotely related to JVM option configuration in any of the above.
    It is worth noting that I ran across another forum where someone was wanting to set their minimum heap size, and they were told that it was not possible. I'm just having trouble believing that it's the same story with something as critical as max heap size.
    Much obliged for any help.
    Thanks,
    Annaka

    From Metalink Note 466112.1:
    Applies to:
    Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.3
    This problem can occur on any platform.
    Symptoms
    When attempting to execute a java class that works fine in a stand alone JVM, fails with Oracle JVM with the following error:
    ERROR
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.OutOfMemoryError
    ORA-06512: at "IDS_SYS.POD", line 3
    Cause
    The MaxMemorySize was set 256M (the default values) where the JSO needs memory more than 256 MB to run.
    This can be checked as following:
    SQL> create or replace function getMaxMemorySize return number
    2 is language java name
    3 'oracle.aurora.vm.OracleRuntime.getMaxMemorySize() returns long';
    4 /
    Function created.
    SQL> select getMaxMemorySize from dual;
    GETMAXMEMORYSIZE
    268435456
    After increasing the MaxMemorySize to a larger value(1 GB), the problem was fixed
    Solution
    Please increase the MaxMemorySize to a larger values(i.e. 1GB), this can be done as following:
    SQL> create or replace function setMaxMemorySize(num number) return number
    2 is language java name
    3 'oracle.aurora.vm.OracleRuntime.setMaxMemorySize(long) returns long';
    4 /
    Function created.
    SQL> select setMaxMemorySize(1024*1024*1024) from dual;
    SETMAXMEMORYSIZE(1024*1024*1024)
    Then you can check if the value is set correctly using the following:
    SQL> select getMaxMemorySize from dual;
    GETMAXMEMORYSIZE
    1073741824
    In my case I had to set the parameter within a job's the session.
    bye
    TPD
    Edited by: TPD on Sep 23, 2008 4:27 PM - tags added

  • Java multithreading support in Oracle JVM

    Dear all,
    I have some questions and observations regarding multithreading support in Oracle JVM. I have some java code that is stored in the database and is multithreaded (in separate threads I run a plsql procedure that does a lot of precessing). If I run the code with my standalone JVM it works like a charm, everything gets executed in separate threads. But if I store the code in the database and run it (with the custom JVM Oracle implemented for the server) it does not do any threading, all I have is a single thread that runs everything sequentially.
    The logic is this: using JDBC I create a connection, get a parameter (number of threads) and then launch the threads (each thread creates its own connection and runs the plsql procedure). No resource is shared (I have no synchronized code, I do not yield).
    My question is: does Oracle JVM supports multithreading or not? If yes, how to achieve it? Maybe there is something handled in JDBC? (although my code useses JDBC is not multithreaded) If this is not possible with java, do you now how to run something (oracle function, procedure) concurrently with PLSQL? (I tried with DBMS_JOBS but it does not work on all my databases and our DBAs discourage the use of them). Performing multithreading my launching different sqlPlus processes is not an option (as we have no security standard regarding the authentication -> connection is made by specifying in clear text the user and password).
    I wanted to use java because is more simple, secure (the connection is already established as the classes are stored in the database) and easy to maintain (until now we use different scripts which run on Unix and Windows and this leads to double work).
    The Oracle versions I use are 10g and 11g.
    Thank you all very much for your time
    Just the best,
    Don

    don wrote:
    My question is: does Oracle JVM supports multithreading or not? If yes, how to achieve it? Maybe there is something handled in JDBC? (although my code useses JDBC is not multithreaded) If this is not possible with java, do you now how to run something (oracle function, procedure) concurrently with PLSQL? (I tried with DBMS_JOBS but it does not work on all my databases and our DBAs discourage the use of them). Performing multithreading my launching different sqlPlus processes is not an option (as we have no security standard regarding the authentication -> connection is made by specifying in clear text the user and password).
    (Obviously the other post answers your question.)
    If I am reading that correctly then you have a management issue - not a technological one.
    You have a task to complete, presumably doing it efficiently is something that the company wants.
    And you have two alternatives both of which the DBAs are not allowing you to use.
    So at that point it is up to management to insist that the DBAs provide specific technological reasons (not hand waving) why those solutions are not suitable. And they should also be required to provide the outline of an alternative that is suitable.
    Besides that you might consider why your solution cannot be implemented entirely in a single threaded PL/SQL routine. The fact that is harder is not a reason when the point of the excercise is to create something that is more efficient.

  • Oracle JVM 6u21 and Eclipse

    If you have been experiencing Eclipse crashes since updating to Sun/Oracle JVM 6u21 (aka 1.6.0_21), head over to the following blog post to read about a workaround...
    http://lt-rider.blogspot.com/2010/07/oracle-jvm-6u21-and-eclipse.html
    - Konstantin

    Oracle has produced another build of 6u21 JVM that reverts the change that adversely affected Eclipse. If you have reverted back to an older JVM, you can safely move forward to 6u21. The build 1.6.0_21-b07 is safe to use. The version that Eclipse has trouble with is b06. You can check which version you have by running "java -version".
    - Konstantin

  • ORACLE JVM settings

    Hi
    It's possible modify the ORACLE JVM .. like that :
    -Dvbroker.orb.enableBiDir=both'
    -Dvbroker.orb.debug=false'
    -Dvbroker.se.iiop_tp.scm.iiop_tp.listener.port=10000'
    -Dvbroker.agent.enableLocator=false'
    -Dvbroker.orb.dynamicLibs=com.inprise.vbroker.firewall.Init'
    -Dvbroker.orb.alwaysProxy=true'
    -Dvbroker.orb.gatekeeper.ior=http://10.129.2.79:14030/gatekeeper.ior'
    -Dvbroker.orb.exportFirewallPath=true'
    -Dvbroker.se.iiop_tp.scm.iiop_tp.manager.exportBiDir=true'
    -Dvbroker.se.iiop_tp.scm.iiop_tp.manager.importBiDir=true'
    thank you

    305046,
    1) enabling/disabling assertionsSince the database embedded JVM only supports java version 1.3, it does not support assertions.
    2) changing the bootclasspath to add AOP librariesI don't know how to change the "bootclasspath", but the DBMS_JAVA package may help. Have you tried looking through the Oracle documentation? In any case, I don't think you need to change the "bootclasspath" in order to use the AOP libraries, do you?
    Good Luck,
    Avi.

  • Setting up Oracle JVM and vendor Classes

    Hello All,
    I am trying to setup a Java Stored Procedure that
    writes messages to IBM MQSeries Queue. MQSeries has
    three client jar files (these jar files use CORBA
    classes which are part of the JDK installation).
    This Java client works well outside Oracle but
    we are getting exceptions such ClassNotFoundException.
    Does has experience on setting up such classes
    within Oracle JVM? Are there extra documenations
    we can use to guide us in setting up?
    Many thanks in advance.

    What version of the Oracle database are you using? What version of the JDK do IBM's classes require? My hunch is that IBM's classes may require a more recent version of the JDK than is currently installed in your database.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Connecting VisualVM to Oracle JVM

    Has anyone had any success connection to the database JVM using Visual VM.
    I've started the jmx agent using dbms_java.start_jmx_agent, and am able to connect with jconsole without problems, but when I try to connect with VisualVM, I get an error message java.lang.NumberFormatException: For input string: "(PID=5044;SID=248)"
    I've taken a look at the VisualVM code and the problem appears to be that when VisualVM reads the virtual machine name, it gets something like (PID=X;SID=Y)@SERVERNAME. Visual VM then takes everything before the @ in that name string and attempts to convert it to an integer.
    Versions:
    Oracle Database 11gR2 running on Windows.
    Oracle VisualVM 1.3.2
    For background, I'm trying to profile a Java procedure which is running much slower inside the DB than outside of it.
    A quick fix might be to 'rename' the java virtual machine for the database session in question, but I can't find a way to do that? Any ideas?
    Many thanks,
    James

    I never solved this. but did find a very crude workaround. Here it is in case anyone has a similar problem .
    The reason I needed visualVM was to profile some slow running code within the DB. The best I could do in the end was to use jconsole and repeatedly use the EmitStackTrace mbean option. Using this it is possible to build a picture of which methods the JVM is spending most of its time in.
    The problem by the way was that one method was not being compiled by the JIT compiler, so it was always being interpreted. Fortunately that method wasn't essential to the process and by avoiding it, performance improved to the same, (actually very slightly faster) than the standard JVM /JRE.
    James

  • Version of jvm.dll compatible with 64-bit development on Visual Studio 2013?

    Hi.  I am building a 64-bit C++ application under Visual Studio 2013. I am using jvm.dll to call Java methods from within the application.  The issue is that the version of jvm.dll that is distributed with Java 7 and Java 8 are compiled with Visual Studio 2010 (and thus rely on the msvcr100.dll runtime library).  This makes it very dangerous to use with a Visual Studio 2013 application which uses msvcr120.dll (mixing runtime libraries is a very big no-no).  I am seeing random memory errors as a result, at the JNI interface level.
    Is there any way to get a version of jvm.dll that is compiled with Visual Studio 2013 and is thus dependent on msvcr120.dll?
    Thanks,
    Dan

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I avoid re-entrant problems in Oracle JVM

    I have a Java program called LanguageFunctions. This Java program has several methods that translate the data within a String or CLOB. I want to use this Java program as a stored procedure, and specifically the methods as Oracle functions. I want this function to be accessed simultaneously without either re-entrant, lock or performance concerns. I want to be able to use the functions something like this:
    SELECT TO_CHINESE(VARCHARCOL1) FROM DUAL;
    SELECT TO_FINISH(CLOBCOL1) FROM DUAL;
    I am having trouble understanding the Java requirements for these methods. I am greatly concerned about multi-user usage and issues with re-entrant code. Does this have to be a static class? If not, how when and where does it get instantiated (I hope not for every invocation of the function)? How to I avoid having one user accidentally changing the data within the method when executed in parallel?
    BTW: I have successfully moved these into the Oracle JVM, and executed them as a single user. My main concern is the re-entrant code issues.
    Thanks

    Thanks for the reply, I meant no disrespect, I was just trying to be a little funny...
    I did read that any method that you want to use as an Oracle function must be static. So I understand that as a given. However, the class I am converting uses static Class variables. You can see this in the example as the textOut variable.
    When two users are accessing this function in parallel, I could see the following series of events ocurring, and it is my concern. There is only one textOut, and I believe it can be modifed by both functions simultanesouly with unexpected results. I'm assuming my for loop is set to x < 2.
    SessionA issues: SELECT TO_DANISH('HELLO') FROM DUAL;
       A --> textOut = ""
       A --> textOut = "HELLO"
       A --> textOut = "HELLOxy"
       A --> textOut = "HELLOxyxy"
    SessionB issues: SELECT TO_DANISH('GOODBYE') FROM DUAL;
       B --> textOut = ""
       A --> textOut = "xy"
       B --> textOut = "GOODBYE"
       A --> textOut = "GOODBYExy"
    Session A returns: "GOODBYExy"     (expected "HELLOxyxy")
       B --> textOut = "GOODBYExyxy"
       B --> textOut = "GOODBYExyxyxy"
    Session B returns: "GOODBYExyxyxy" (expected "GOODBYExyxy")I'm I correct in my assumption that this is an issue? If so, what type of programm architecture would be best to use to manage this? I've tried to provide a simple working example of the issue, but the program that I'm working on actually alters the contents of textOut (as a static Class variable) in 5 or 6 different methods, including one method using recursion. I know I may need to make changes to the program architecture to make it work properly in a multi-user environment as an Oracle function. I'm just a little confused on what the appropriate architecture is. Once again any help is appreciated!
    Joel

  • File read/write in Oracle JVM

    Are there any known issues around file read/write in Oracle JVM. I finally got around the issue of getting the error that says no permission is there by giving <<ALL FILES>> option, but still I don't see a file being created. Any help is appreciated.
    Code:
    try{
    fwriter = new PrintWriter(new FileOutputStream("debugLog.txt",true));
    } catch (IOException ioe) {
    System.err.println("IO Exception for Output File" + ioe.getMessage());
    Thanks.
    -Mujib

    A couple of suggestions:
    1. (Please don't be offended...) I assume you have some stuff like:
    fwriter.println("hello");
    fwriter.flush();
    fwriter.close();
    in your try block?
    2. Try catching FileNotFoundException and SecurityException also.
    3. Try providing a full path on the file just to make sure it's not buried somewhere odd.
    John H.

  • Different versions of JVM in a cluster

    Hi,
    Is it supported to run a cluster with nodes using different versions of JVM? Our customer has an application running 1.4 and we would like to use coherence grid edition on separated hardware. Is it better to use 1.6 or 1.4 on those dedicated nodes?
    Thanks,

    Hi Michal,
    Keeping in mind the recommendations of the Production Checklist...
    All other things being equal, homogenous deployments are usually less prone to surprises.
    But JDK 1.6 is noticeably faster than JDK 1.4, and features much better JMX support as well, so it's a probably the better option.
    Jon Purdy
    Oracle

  • Advantages of using Oracle JVM over JPDA for Remote Debugging?

    What are the "additional features" that the documentation hints at when using the Oracle JVM for remote debugging vs. the JPDA protocoL? Can a member of the JDEV briefly address this? What exactly am I losing when using JPDA?

    I am not getting anywhere with 'NCOMPing' the stuff. Attempts to NCOMP keeps erroring out . The first of the errors is
    'Error while determining classes contained in jsch-1.29_minimalClassListAndTCD
    mper.java
    Exception oracle.aurora.sqljdecl.ParseException: Encountered "-" at line 14
    column 18.
    Was expecting one of:
    "extends" ...
    "implements" ...
    The following operations failed
    jsch-0.1.29_minimalClassListAndTCDumper.java: creation
    exiting : Failures occurred during processing
    Kuassi, I have looked at a few of your posts where you make mention of a file titled 'Settings_os.properties'. I see no such file in my Oracle installation. What am I missing here ?

Maybe you are looking for