How to upgrade Forms 11gR2 to use JAVA 7 after it was installed with JAVA 6

I recently installed Forms 11gR2 on a development server.  We are trying to have the latest versions of everything to migrate from Forms 10g and assure we have support for the next few years.
Our platform has the following software configuration:
Solaris 10 (Update 19) SPARC 64 bits
Weblogic 11g (10.3.6) that was installed with Java JDK 1.6.0_38
Forms 11g R2 (11.1.2.1) that was also installed with
Java JDK 1.6.0_38
I tried to install Weblogic and Forms using the latest Java 7 JDK (1.7.0_25) but I got an error in the final steps of Forms setup, when I was configuring the domain.  I searched online and found a couple of tips but nothing worked.  The installation was stuck at the
Creating Weblogic Domain step.  So I decided to try the installation process with the Java 6 JDK that we are using right now for Forms 10g, and it worked perfectly.  I have now two options but I don't know which one might be the better path:
Uninstall Weblogic and Forms 11g completely, and try to re-install them again with Java 7, trying to fix the error that I got at the end of the configuration process.
Try to upgrade the current Forms 11g installation from Java 6 to Java 7.  I found a blog that might suggest it is possible, but I don't know if it may cause additional issues along the road. http://pitss.com/us/2013/02/20/how-to-use-java-7-with-oracle-forms-11g-in-an-oracle-supported-environment/
Thanks in advance for any suggestions you might have, or if any of you has experience installing Forms 11gR2 with Java 7 it might be great to know how to fix this error.  It might be worth mentioning that when I installed Forms and Weblogic with Java 6 I used exactly the same values, ports, options and paths.  The error appears like this in the installation logs and the process hangs there:
XXX: adding task: oracle.as.install.classic.ca.standard.DomainProvisioningTask
  AdminServer port is 7001
  trying to connect to admuxas09.adminsrvad.sa.gov.au 7001
  Creating Weblogic Domain.
oracle.as.provisioning.exception.ASProvWorkflowException
        at oracle.as.provisioning.weblogic.ASDomain._createDomain(ASDomain.java:2958)
        at oracle.as.provisioning.weblogic.ASDomain.createDomain(ASDomain.java:2476)
        at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:633)
        at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
        at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
        at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
        at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
        at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
        at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
        at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
        at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
        at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
        at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
        at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
        at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
        at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
        at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
        at java.lang.Thread.run(Thread.java:662)
oracle.as.provisioning.exception.ASProvisioningException
        at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
        at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
        at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
        at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
        at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
        at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
        at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
        at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
        at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
        at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
        at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
        at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
        at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
        at java.lang.Thread.run(Thread.java:662)
Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
        at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
        at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
        at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
        ... 13 more
Cheers,
Ivan Neva
Oracle DBA

Well if I got it to work with java 6 I'd leave it alone, to say the least. The elephant in the room is the certification matrix.
http://www.oracle.com/technetwork/developer-tools/forms/overview/index.html
there's 2 issues, what jdk does forms on the server want? Bigger question, what JRE is acceptable on the client?
You would surely want the jre to be 7 on the client. Regarding the jdk on the server, you could leave it as is IMHO.
Note that there was a patch to 11gr2. In conclusion, be sure to check the cert matrix regarding what is certified for the jdk for the server.
I think the matrices are saying that if you have forms 11.1.2.1.0 that you can use the jdk 7. but like I said the big issue is what can the client use?
As I read the matrix I think it is saying you have to have 11.1.2.1.0 to use the jre 7 on the client.
So I would say if you have 11.1.2.1.0 on the server you are good because it's not a problem to have the jdk 6 on the server, if not you have to apply the patch in order to enable the jre 7 on the client.

Similar Messages

  • Why is my ram being used up after mavericks was installed?

    My ram is being eaten by something and it doesn't come back with out running the free "memory clean" app. I have the following running all day:
    Finder
    Daylite (my station is not the server)
    Mail
    Safari (Lots of Google Maps all day)
    Acrobat Pro
    I jump in and out of Excel, Word, Evernote and Skitch
    I have 8 gigs of ram and it slowly dissappears over time... down to 7MB or less sometimes!
    I also noticed that many things are very slow the first time they are run each time after startup. When I click on a shortcut in Finder, it dissappears.
    This all started after Mavericks was installed. Before it was a smoking fast machine.
    When I started typeing this, I had over 2 gigs of ram free. Now I have 710 MB and it continues to drop.

    First get rid of the Memory Clean up app, uninstall following the developers instructions. Next I would recommend posting an EtreCheck report so we can tell more about how your computer is configured. If you use any "maintenance", anti-virus, malware checking apps those are not only unnecessary but are potentially the problem. Post the report in your next response please.

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I find out what OS my macbook was installed with

    Ok here's my problem, a while ago my mac book stoped wotking altogether so I took it into a computer repair shope who advised me that the both the memory and hard drive needed replaced so I authorized this to happen, then they asked me to provide the OS disc that came with the machine but for some reason it's totally dissapeared now and I cannot find it, from memory I seem to recall it being a 10.6.7 version and I've looked around to see if i can find one for sale but can only find ones like 10.6.3 so my question is,am I able to use the later to get the OS installed and then go from that to Lion, or must I install the 10.6.7 that I think is the one that was installed with machine when I bought it?
    any help will be appreciated, thank you in advance

    Welcome to Apple Support Communities
    You need the Mac OS X 10.6.7 DVD that came with your computer because the Mac OS X 10.6.3 disc isn't compatible with the MacBook you are using. Call Apple to get replacement DVDs > http://support.apple.com/kb/HE57
    The best way to know what Mac OS X version came your MacBook with is to provide the Model Identifier, that you can find in "System Profiler" application. Another option is to insert the last numbers of the serial number in this website > http://www.everymac.com/ultimate-mac-lookup/
    After installing Mac OS X 10.6, you will be able to upgrade to Lion or Mountain Lion. Make a backup of your data before upgrading and check that your applications are supported > http://www.roaringapps.com

  • How do I get spell check back on after firefox was updated? Thanks

    How do I get spell check back on after Firefox was updated?

    Not all locales come with a dictionary installed due to licensing reasons.<br />
    If you do not have the en-US locale then check that you have a dictionary installed (Tools > Add-ons > Extensions) and selected.
    You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.<br />
    You can open the "Add Dictionaries" link to install a dictionary if you do not have one.<br />
    Make sure that [X] "Check Spelling" in the right-click context menu has a tick.<br />
    You can enable or disable spell checking globally:
    * Tools > Options > Advanced : General: Browsing: "Check my spelling as I type"
    See also:
    * https://support.mozilla.com/kb/Using+the+spell+checker
    You can look here for dictionaries:
    * https://addons.mozilla.org/firefox/language-tools/

  • Java web start security dialog with Java 7 update 51

    I build a Java Web Start application signed with a valid certificate.
    When I star the application the security dialog appear correctly as show in this figure
    http://www.java.com/en/img/download/trusted_signed.jpg
    My issue is about the "do not show again" checkbox.
    If the attributes href are present in the jnlp tag of the jnlp file the checkbox appear.
    If the attribute are not present, the checkbox doesn't appear and the run needs to be confirmed every time.
    (Example:
    <jnlp spec="1.0+" codebase=
    "http://docs.oracle.com/javase/tutorialJWS/samples/deployment/webstart_ComponentArch_DynamicTreeDemo"
    href="dynamictree_webstart.jnlp">
    This is a problem because my jnlp file is under a password protected directory and if href is specifed, the Java Web Start application try to retrieve it as the other resources. ( result in access denied because only the browser session is authenticated and the run fails)
    The documentation at Deploying a Java Web Start Application said:
    The codebase and href attributes are optional when deploying Java Web Start applications that will run on at least the Java SE 6 update 18 release or later. You must specify the codebase and href attributes when deploying Java Web Start applications that will run with previous releases of the Java Runtime Environment software.
    What is the right code? With href or without?
    Is this a BUG or a feature?
    How can I show the "don't show again" checkbox without having to specify the href attribute?

    From the documentation at JAR File Manifest Attributes for Security
    If the Application-Library-Allowable-Codebase attribute is present and matches the location from which the RIA is started, then a single host is listed in the Location field for the prompt and the option to hide future prompts is provided.
    This issue is also discussed here: Java Web Start security dialogs with Java 7 update 51 - Stack Overflow

  • How do I import music from a flash drive that was formatted with a windows PC to my MacBook?

    How do I import music from a flash drive that was formatted with a windows PC to my MacBook - the drive is showing it has over 3GB of info on it but none of the files are showing up in finder?  I had backed up my iTunes library on the flash drive about a year and a half ago before I switched from a dell to a MacBook pro.

    What I found works for me is to make sure iTunes keeps the music files organzied in the iTunes Media folder according to album, artists, etc. and that it copies the music files there when adding them to the library.  That way, if something happens to the library, the raw files can always be re-imported again.

  • Adobe Suite will not run with most recent Java after I have installed Yosemite

    I have updated to Yosemite for my Mac, when trying to open Adobe Photoshop it prompted me to install Java 6, which I installed, then Java said to update to 8, which I did. My photoshop and other adobe suite programs still will not open (except Bridge) and keeps coming up with the error message to open the webpage to download DL1572.

    This is a strange error. I had the same problem but my CC is running.
    Which is your version of Photoshop please?
    Martin

  • Hi- Iphone 5 wont charge using power cable or USB...I am using a genuine apple charger/cable..this started after I was prompted with new update for IOS 7.

    Hi- My  Iphone 5 wont charge using power cable or USB...I am using a genuine apple charger/cable..this started after I was prompted with new update for IOS 7 yesterday. My phone is dead and wouldnt power up ..have tried resetting using itunes but i doesnt detect the phone and..pressing sleep/home button doesnt do anything

    Update
    I guess that it just had a bad connecting port on the phone itself, no clue why it wouldn't work when plugged in both ways other than there is actually some differentiating between the two sides.

  • I am on a pc and the stupid quicktime that was installed with itunes HAS HIJACKED MY COMPUTER!!!! how do i completely get rid of it?

    i am on a pc and the stupid quicktime that was installed with itunes HAS HIJACKED MY COMPUTER!!!! how do i completely get rid of it?

    what do you mean by Has Hijacked My Computer?

  • How to Upgrade forms 6.0.8.11.3 to 6.0.8.22.1

    Hi I have oracle forms version 6.0.8.11.3 but I have some forms and Reports of Version 6.0.8.22.1 , so , I cnn't open the forms and reports in my earlier version of forms & report builder.
    please let me know how to upgrade my forms & reports builder from 6.0.8.11.3 to 6.0.8.22.1

    You should upgrade to Patch 18.
    Read Re: Forms 6i installed and running on Windows Vista to find Patch 18:

  • How to use SQl server 2005's SQLXMLBulkLoad with JAVA

    Hi All,
    I am in a big problem identifying how to use xml bulk insert functionality of sql server 2005 with java.
    I need to enter millions of data into the sql server 2005 database.
    All the material i saw on net includes vb script or asp.net sripts to do so.
    Somebody please tell how I can do this with JAVA.
    Thanks.

    In this forum we commonly discuss connections from Oracle to foreign databases. When you want to connect with your SQL Server to Oracle it would be better to ask that in a Microsoft forum as they support their LINKED SERVER mechanism.
    The linked server set up is for example described in the Microsoft knowledge base as:
    280106 - HOW TO: Set Up and Troubleshoot a Linked Server to Oracle in SQL Server
    In newer SQl Server releases the name changed see for example:
    How to run a SQL Server 2005 Integration Services package as a SQL Server Agent job step
    View products that this article applies to.
    Article ID : 912911
    As you can see they are commonly using OLEDB driver. So you might have to install Oracle's OLEDB driver as well. Else you might think about using OLEDB to ODBC bridge

  • How To Upgrade to Windows 8 - Useful Informations

    Hi community
    I would like to share very interesting Toshiba page providing the info and details about the new Win 8 upgrade.
    *How To Upgrade to Windows 8*
    http://eu.computers.toshiba-europe.com/innovation/generic/windows8-upgrade-stepbystep/
    Dear Customer,
    Microsoft offers to upgrade Windows 7 computers to Windows 8 Pro. The information in this document explains the requirements and how to make use of the Windows 8 upgrade offer.
    The upgrade process consists of the 5 following parts:
    1. Check if your computer is eligible for upgrade by Microsoft and supported by TOSHIBA.
    2. Things to do before upgrading to Windows 8.
    3. Order Windows 8 from Microsoft and install it.
    4. Download the TOSHIBA Upgrade Assistant.
    5. Upgrade software components using the TOSHIBA Upgrade Assistant.
    _*Part I: Checking the Eligibility Requirements and List of Supported Models*_
    1. This offer is available if you have purchased a PC preloaded with genuine Windows 7 Home Basic, Home Premium, Professional or Ultimate between June 2, 2012 and January 31, 2013.
    2. Check from the list of supported models, if your computer model is supported for upgrade by TOSHIBA. Visit https://eu.computers.toshiba-europe.com/innovation/generic/windows8-matrix
    _*Part II: Things To Do Before Upgrading to Windows 8*_
    1. Update your current version of Windows 7 to the latest version supplied by Microsoft at: http://www.update.microsoft.com.
    2. Backup all your files and settings before upgrading. Note: Do not back up files to the same hard disk that Windows is installed on. For example, do not back up files to a recovery partition. You can back up to another drive or DVD.
    3. Use the Recovery Media Creator utility to create Recovery media (DVD or USB Flash Memory) which will allow you to restore the factory pre-installed software.
    4. If Toshiba Disc Creator is installed on your computer, remove it.
    a) Click Start ? Control Panel ? Control Panel ? Uninstall program.
    b) Select Toshiba Disc Creator and click the Uninstall/change button.

    _*Part III: Ordering Windows 8 from Microsoft and installing it*_
    1. Register for the Windows 8 upgrade through the Windows Upgrade Offer website managed by Microsoft https://windowsupgradeoffer.com and follow the online instructions. Submissions must be completed online by February 28, 2013.
    2. After registration, you will receive a confirmation that will provide more information as to when the Windows 8 upgrade is available for purchase.
    3. After the general availability of Windows 8, you will receive the promotion code and purchase instructions.
    4. Use the Recovery Media Creator utility to create Recovery media (DVD or USB Flash Memory) which will allow you to restore the factory pre-installed software.
    5. Purchase the upgrade as instructed and download Windows 8. You will also be guided to perform a self-qualifying test via an upgrade step-by-step tool with information on the PC before the upgrade.
    6. Follow the online instructions to upgrade the operating system. During this process, select Keep Windows settings, personal files, and apps.
    Caution: Operate your computer from the AC power supply. Otherwise, you may run out of battery power during the upgrade process.
    _*Part IV: Download the TOSHIBA Upgrade Assistant*_
    1. To receive the TOSHIBA Upgrade Assistant and necessary software updates (e.g. BIOS, drivers, utilities, applications) from TOSHIBA, please visit
    https://eu.computers.toshiba-europe.com/innovation/windows8_drivers.jsp
    2. Follow the online instructions.

  • How to kill Forms Runaway Process using 95% CPU and running for 2 hours.

    We had a situation at E-Business Suite customer (using Oracle VM server) where some of Form processes were not being cleared by form timeout settings automatically.
    Also when user exits the form session from front end, the linux form process (PID) and DB session did not exit properly, so they got hung.
    They were spiking CPU and memory usage and causing e-business suite to perform slowely and ultimately causing VM host to reboot the production VM guest (running on Linux).
    We could see the form processes (PIDs) using almost 100% cpu with "top" command and running for a long time.
    Also we verified those Form Sessions did not exist in the application itself.
    ie. Using from Grid Control -> OAM-> Site Map -> Monitoring (tab) -> "Form Sessions".
    It means that we could safely kill that form process from Linux using "kill -9 <PID>" command.
    But that required a continuous monitoring and manual DBA intervention as customer is 24x7 customer.
    So, I wrote a shell script to do the following;
    •     Cron job runs every half an hour 7 days a week which calls this shell script.
    •     Shell script runs and tries to find "top two" f60webmx processes (form sessions) using over 95% cpu with 2 minutes interval.
    •     If no process is found or CPU% is less than 95%, it exits and does nothing.
    •     If top process is found, it searches for its DB session using apps login (with hidden apps password file - /home/applmgr/.pwd).
    a.     If DB session is NOT found (which means form process is hung), it kills the process from unix and emails results to <[email protected]>
    b.     If DB session is found, it waits for 2 hours so that form process times automatically via form session timeout setting.
    It also emails the SQL to check the DB session for that form process.
    c.     If DB session is found and it does not timeout after 2 hours,
    it kills the process from unix (which in turn kills the DB session). Output is emailed.
    This are the files required for this;
    1. Cron job which calls the shell script looks like this;
    # Kill form runaway process, using over 95% cpu having no DB session or DB session for > 2hrs
    00,30 * * * * /home/applmgr/forms_runaway.sh 2>&1
    2. SQL that this script calls is /home/applmgr/frm_runaway.sql and looks like;
    set head off
    set verify off
    set feedback off
    set pagesize 0
    define form_client_PID = &1
    select count(*) from v$session s , v$process p, FND_FORM_SESSIONS_V f where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='&form_client_PID';
    3. Actual shell script is /home/applmgr/forms_runaway.sh and looks like;
    # Author : Amandeep Singh
    # Description : Kills runaway form processes using more than 95% cpu
    # and Form Session with no DB session or DB session > 2hrs
    # Dated : 11-April-2012
    #!/bin/bash
    . /home/applmgr/.bash_profile
    PWD=`cat ~/.pwd`
    export PWD
    echo "`date`">/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR1=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID1=`echo $VAR1|awk '{print $1}'`
    CPU1=`echo $VAR1|awk '{print $2}'`
    TIME1=`echo $VAR1|awk '{print $3}'`
    PROG1=`echo $VAR1|awk '{print $4}'`
    PID_1=`echo $VAR1|awk '{print $5}'`
    CPU_1=`echo $VAR1|awk '{print $6}'`
    TIME_1=`echo $VAR1|awk '{print $7}'`
    PROG_1=`echo $VAR1|awk '{print $8}'`
    echo "PID1="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    echo "PID_1="$PID_1", CPU%="$CPU_1", Running Time="$TIME_1", Program="$PROG_1>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    sleep 120
    echo "`date`">>/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR2=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID2=`echo $VAR2|awk '{print $1}'`
    CPU2=`echo $VAR2|awk '{print $2}'`
    TIME2=`echo $VAR2|awk '{print $3}'`
    PROG2=`echo $VAR2|awk '{print $4}'`
    PID_2=`echo $VAR2|awk '{print $5}'`
    CPU_2=`echo $VAR2|awk '{print $6}'`
    TIME_2=`echo $VAR2|awk '{print $7}'`
    PROG_2=`echo $VAR2|awk '{print $8}'`
    HRS=`echo $TIME1|cut -d: -f1`
    exprHRS=`expr "$HRS"`
    echo "PID2="$PID2", CPU%="$CPU2", Running Time="$TIME2", Program="$PROG2>>/tmp/runaway_forms.log
    echo "PID_2="$PID_2", CPU%="$CPU_2", Running Time="$TIME_2", Program="$PROG_2>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    # If PID1 or PID2 is NULL
    if [ -z ${PID1} ] || [ -z ${PID2} ]
    then
    echo "no top processes found. Either PID is NULL OR CPU% is less than 95%. Exiting...">>/tmp/runaway_forms.log
    elif
    # If PID1 is equal to PID2 or PID1=PID_2 or PID_1=PID2 or PID_1=PID_2
    [ ${PID1} -eq ${PID2} ] || [ ${PID1} -eq ${PID_2} ] || [ ${PID_1} -eq ${PID2} ] || [ ${PID_1} -eq ${PID_2} ];
    then
    DB_SESSION=`$ORACLE_HOME/bin/sqlplus -S apps/$PWD @/home/applmgr/frm_runaway.sql $PID1 << EOF
    EOF`
    echo " ">>/tmp/runaway_forms.log
    echo "DB_SESSION ="$DB_SESSION >>/tmp/runaway_forms.log
    # if no DB session found for PID
    if [ $DB_SESSION -eq 0 ] then
    echo " ">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "Killed: `hostname -a` Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    # If DB session exists for PID
    if [ ${exprHRS} -gt 120 ]; then
    echo $DB_SESSION "of Database sessions exist for this forms process-PID="$PID1". But its running for more than 2 hours. ">>/tmp/runaway_forms.log
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo $DB_SESSION "of Database sessions exist for PID="$PID1" and is less than 2 hours old. Not killing...">>/tmp/runaway_forms.log
    echo "For more details on this PID, run following SQL query;">>/tmp/runaway_forms.log
    echo "-----------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "set pages 9999 lines 150">>/tmp/runaway_forms.log
    echo "select f.user_form_name, f.user_name, p.spid DB_OS_ID , s.process client_os_id,, s.audsid, f.PROCESS_SPID Forms_SPID,">>/tmp/runaway_forms.log
    echo "to_char(s.logon_time,'DD-Mon-YY hh:mi:ss'), s.seconds_in_wait">>/tmp/runaway_forms.log
    echo "from v\$session s , v\$process p, FND_FORM_SESSIONS_V f">>/tmp/runaway_forms.log
    echo "where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='"$PID1"' order by p.spid;">>/tmp/runaway_forms.log
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    fi
    else
    #if PID1 and PID2 are not equal or CPU% is less than 95%.
    echo "No unique CPU hogging form processes found. Exiting...">>/tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    If you have the same problem with some other unix and DB processes, the script can be easily modified and used.
    But use this with thorough testing first (by commenting out <kill -9 $PID1> lines.
    Good luck.
    Edited by: R12_AppsDBA on 19/04/2012 13:10

    Thanks for sharing the script!
    Hussein

  • Forms Web application is not working on FireFox Browser-with java plugin

    Hi All,
    We are running custom build forms application using forms 10g and application server 10 g Rel 2. We are using Java Plug-in 1.5.0_06. The application is working fine before recent update from firefox .Now it's not working and keep on asking additional plug in required and taking to java.sun.com for installing the plug in. Even after installing when we access the application it will do the same thing. I tried uninstalling the firefox with the older version and with diffrent java plugin versions.. but the problem still there.. any help will be mush appriciated...
    Thanks...
    Edited by: rkadaru on May 5, 2010 1:57 PM

    plugin and webstart are not yet available in 64bit jre distributions from Sun.
    These are targeted to 6u12 or there abouts.
    /Andy

Maybe you are looking for

  • Display document data in dialog box

    I am using a folder level script to do the following: Get a specific XMP field value from an open PDF file: this.info.InDesignFileName Define a dialog box Create a menu item that calls the dialog box But for the life of me, I cannot get the dialog cr

  • Kernel parameters?

    Dear all, How can I see Kernel parameters in OS or Database level? Best Regards, Amy

  • Why can't I download preordered album

    IT says purchased on iTunes and I have the two songs that were available early so I know I bought it. It doesn't show up in my purchased or downloaded. On the album it has the show complete album option and when I click it each song has the buy butto

  • Debugging MIGO transaction

    Hi to all,          i am debugging standard <u><i><b>MIGO</b></i></u>. In the migo program <u><i><b>SAPLMIGO</b></i></u> [SE38] there is a include <u><i><b>LMIGOST2</b></i></u> in that include there is a code on line 113 col 31  <u><i><b>WHEN 'OK_POS

  • Border around a picture tha hav a link

    When i put a link to a picture, I see a border around the picture when I open the page in IE, but not in Crome. Is it possible to not see the border in IE? Knut Erik