How to restart Oracle JVM.

I have a requirement to bounce the oracle JVM without restarting the database.
Is it doable? if yes then how?
I am using oracle 9.2

Anand,
Each database session has its own JVM.
Restart the session and you restart the JVM -- at the first invocation of a java stored procedure.
Check the Oracle documentation to verify.
Good Luck,
Avi.

Similar Messages

  • How to download Oracle JVM?

    Hi,
    Could somebody please send me a link for downloading Oracle JVM?
    I have setup Oracle Database Express Edition on my machine, but its missing the JVM. Could you point me to the documentation on setting up Oracle JVM with Oracle DB XE?
    Thanks,
    Prashant.

    Hi
    It's not possible to download and separately install OracleJVM.
    As you can read in the following document OracleJVM is not available in XE.
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf
    HTH
    Chris

  • How to restart Oracle instance from oracle client

    I have an Oracle server 10g with DEVEL instance on AIX machine. I have an Oracle Client on Windows machine as well. I want to stop and start the instance DEV from my client using bat file. Is it possible ? Is anybody knows how to do it ?
    KP>

    well, right now the correct question should be : how to start database.
    I am able to login as sysdba to DEVEL on AIX ( from Windows client) and shutdown it but when I try to startup it returns such a message:
    ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
    but I am still able to tnsping my DEVEL from client ...Post listener status, its contents and entry tnsnames.ora file. Here is how I got connected shutdown and started. The process I followed:
    1)Made entry in listener.ora file as I said earlier, restarted the listener
    2)Made change in tnsnames.ora file
    3)Connect from client shutdown and started.
    SQL*Plus: Release 9.0.1.0.1 - Production on Fri Sep 18 16:30:58 2009
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    SQL> conn sys/hawaii@ia1dev as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 364904448 bytes
    Fixed Size 1287356 bytes
    Variable Size 226495300 bytes
    Database Buffers 130023424 bytes
    Redo Buffers 7098368 bytes
    Database mounted.
    Database opened.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    Regards.
    Edited by: virendra.k on Sep 18, 2009 4:36 PM

  • Oracle JVM in iAS (8i or 9i)

    How does the Oracle JVM work in iAS? I installed Oracle EE 8.1.7 and deployed java classes, looked at OSE, and deployed some EJB's. The classes are stored in the database as objects and JNDI is used to reference the servlets and EJBs. So if I install 9i AS, where do the EJB classes get stored? And where (exactly) does the Oracle JVM run in 9i AS?
    Thanks,
    John H.

    I have, the problem is that my program successfully replicates and crashes upon completion of replication, but so does oracle 8 navigator.

  • 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

  • Restartign the Oracle JVM

    Hi,
    Is anybody aware of how to stop, restart
    the Oracle JVM, without shutting down
    or restarting the entire Database instance.
    I noticed two PROCEDUREs
    1 server_startup
    2 server_shutdown
    in DBMS_JAVA Package, but
    they don't do anything, (i execute
    them with DBA Priv.).
    Anybody aware of any such facility. ?
    any detailed description of the DBMS_JAVA
    package.
    thanks in advance
    bhaskar

    it is not possible - you must bounce the rdbms.

  • How to install Oracle FM Forms 11g on client system.

    Problem 1.
    I have an weblogic server installed on a server, now i have to install oracle Forms 11g in client system. its ask me weblogic server path whatever i try, its ask weblogic on client. what is the solution how installation of Oracle 11g form connect with weblogic server."
    Problem 2.
    i have install 64-bit OS windows 7.
    1. I Installed JDK 6 (64bit).
    2. Installed Weblogic Server. (its work fine)
    3. Now i m installing Oracle forms 11g 64(-bit). its show me an error (INST-07407: Unable to detect machine platform or JVM bits)
    please help me out. waiting for your positive reply.

    3. Now i m installing Oracle forms 11g 64(-bit). its show me an error (INST-07407: Unable to detect machine platform or JVM bits)It looks like you are installing the 32-bit version of Oracle Fusion Middleware (FMw) 11g - not the 64-bit version. As a test, install the 32-bit JRE and run the FMw installer again. If it continues past this point - you've got the 32-bit installer and not the 64-bit installer. :)
    Craig...

  • How to install Oracle 9i on redhat 9

    i have installed 4-5 times oracle 9i on linux ...but the thing is ..as soon i restart my pc..the SQLPLUS doest not start from the redhat 9 terminal
    ...So plz tell me the step by step procedure how to install Oracle 9i on linux ...
    .... What & where is .bash_profile file is located ...???
    How to create system shareable memory ...??? without this SQLPLUS is not starting ...
    how to modify the kernel variables ..???
    ..

    What & where is .bash_profile file is located ...???The file exists under oracle home directory.
    # ls -l /home/oracle/.bash_profile
    -rw-r--r-- 1 oracle dba 328 11? 2 15:35 /home/oracle/.bash_profile
    How to create system shareable memory ? without this SQLPLUS is not starting.Append your shareable memory parameters to /etc/sysctl.conf, You might want to change these values if you have more RAM:
    kernel.shmmax = 536870912
    kernel.shmmni = 4096
    kernel.shmall = 2097152
    REBOOT the system so the kernel changes can take effect, or if rebooting is not an option, you can change the kernel params at runtime by issuing:
    # echo 536870912 > /proc/sys/kernel/shmmax
    # echo 4096 > /proc/sys/kernel/shmmni
    # echo 2097152 > /proc/sys/kernel/shmall
    how to modify the kernel variables ..???method 1:
    To modify kernel parameters a common way is to change /proc file system:
    1. Log in as root user.
    2. Change to the /proc/sys/kernel directory.
    3. echo <desired list of values> > <group of parameters>
    But this update is not permanent and after system reboot, your kernel parameters's
    values will be the same as before.
    method 2:
    setuping permanently kernel parameter values ,is to use '/etc/sysctl.conf' file.
    Every time the system boots, the '/etc/rc.d/rc.sysinit' script is executed
    by init process. This shell script contains a call to sysctl command and
    reads the values from /etc/sysctl.conf file as the ones to be set Therefore, any values added to /etc/sysctl.conf will take effect after the system boot or without downtime using "sysctl -p" command

  • 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

  • Is it possible to enable Java in oracle 10g express with the oracle jvm?

    I've oracle 10g express installed. I would like to create java stored procedures in a schema. But, how do I have the database java-enabled?

    It might be possible.
    Realize, however, that the Oracle JVM is a component of the Standard Edition One and higher - so to be able to use it you need to license Standard Edition One or higher.
    If you are going to violate the license anyway, why not stick with an Edition that contains the JVM.

  • 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.

  • Increase Scope of Custom variables in Oracle JVM

    We on our project are facing the following problem, any suggestions to work around this would be appreciated :
    We our using Oracle 9i JVM for development
    Our Sample problem flow is as follows :
    A package PKG1 has three procedures PROC1/PROC2/PROC3
    A java class JC1 is invoked by a procedure PROC1 - JC1 is running under oracle JVM.
    JC1 does the task of mapping a custom user defined java object to an oracle collection and invokes a procedure PROC2 (we are using thin client connection object in JAVA by means of simple JDBC calls to connect to the database.) which takes the oracle collection as input parameter and does processing over it.
    A procedure PROC3 does the task of calling PROC1 and then tries to access global variables defined in the package set by PROC2 , which comes out as a failed operation throwing the error as:
         ORA-06531: Reference to uninitialized collection
    The reason for the above behavior is : In the parent oracle session invoked by PROC1 the class JC1 opens another child database session for PROC2 and thus values set in the child thread are not visible to the parent.
    Required support: Is there a means for setting up of some property in ORACLE or Java which can enforce the JAVA CLASS to use its parent / invoking oracle session or if there is any other approach to overcome the above situation.

    Anand,
    I believe the Java in the Oracle Database forum is more appropriate for your question.
    You said:
    The reason for the above behavior is the parent oracle session opens
    another child database session
    How do you do this? And why? And what evidence makes you certain that this is the problem?
    Good Luck,
    Avi.

  • How to restart OracleXe service in windowsXP?

    how to restart OracleXe service in windowsXP?
    by sample for restart: mysql:
    service mysql restart
    OracleXE howto?
    thanks

    go to
    Start > Settings > Control Panel > Administrative Tools > Services
    Look for the Oracle Database Service. If I remember correctly, it's something like Ora<Instance_name>.
    Hit the Restart button, it's the button with the icon that's a stop and start.

  • How to install oracle apps 11.5.10.2 on WinXP?

    How to install oracle apps 11.5.10.2 on WinXP?

    Yes I did, and can login to the new OA Framework side of things now.
    I did a browser refesh ( cleared cache, and restarted browser), this seems to have resolved that
    Its a rather cheeky one going on here. Whenever I load the forms page, it gives me an error message suggesting the host name is wrong.
    When I installed the SLES9, I also specified a similar alias name. I suspect this is the issue, and am still investigating

  • How may one increase JVM/Java Stored Procedure Perfomance?

    Hi all,
    my question: How can one increase the performance of the Oracle JVM, especially of Java Stored Procedures?
    I ask this because I did some performance analysis (and was horrified :):
    I have a static Java method that'll need an average 15 ms to return - when executed locally.
    The same code, uploaded to an Oracle10g instance and published as Java Stored Procedure will take awful *925 ms*.
    I measured both times from within the method as shown below:
    public class JSProc {
    public static void doSomething() {
    long start = System.currentTimeMillis();
    // now comes the '15 ms'-code
    long time = System.currentTimeMillis() - start;
    That way, I'm not including any call spec overhead, network communication or whatever into the 925 ms. All in all the above procedure call will take about 1200 to 1500 ms until it returns to the client...
    The hardware: both client/server computers have the same hardware, both use the JDK provided with the latest Oracle10g release; single difference: client is Win2K, server is Linux.
    I would be immensely grateful for your suggestions concerning the possibilities to increase the JVM performance...
    Greetings,
    Sam

    As Avi suggested, subsequent calls of the procedure within the same session will reduce the execution time down to 40 ms in my testing environment.
    But that doesn't change anything for the 'first call' - when I start a new client program that opens a new connection, the Java Stored Proc will again need about a second to return.
    I wrote the procedure now in PL/SQL - it will return in less than 30 ms, subsequent calls will return in less than a ms. Guess what I'll use :)
    I played around with the JAVA* configuration params, but, as expected, that doesn't change anything in terms of performance. According to documentation, it will only affect the amount of classes I can load into the server.
    I just read that Oracle creates a new "little" JVM for every session, and I imagine that there's lot of method intercepting and things (the ominous AOP-code) to ensure transaction security.
    That's why I come to the conclusion that I won't use Java Stored Procedures for classical "connect, execute, disconnect" client-server applications. It's like full braking on the freeway :)

Maybe you are looking for

  • Autodiscover is ok with selfssl but problem in outlook exchange 2013

    hi, Finally i can setup autodiscover service with self ssl, here is the result   Submit   Connectivity Test Successful Test Details The Microsoft Connectivity Analyzer is attempting to test Autodiscover for [email protected]. Autodiscover

  • Problem with Ram upgrade

    Hi, I have an Imac (27", mid-2011) and I just bought a 4Gb Ram memory to install in one of the free slots, I installed and turn on my computer, the computer recognized the new memory but when I'm going to open a program (and even when I leave the com

  • Can I activate Adobe Photoshop Elements without Internet?

    I  bought three versions of Adobe Photoshop Elements for my high school class. We don't have internet where our production studio is. Can I activate without the Internet, and if so, how?

  • Bug in Mailman version 2.1.9

    Bug in Mailman version 2.1.9 We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Ma

  • Music files are showing as twice their real size

    hi all I just transferred 40 gb of mp3 files to my new mac from my old pc using a thumb drive. however the mac finder says that the files are taking up 80 gb of disc space. itunes correctly shows it as 40 gb. I tried compressing the whole music folde