Why JSP Script Always Run First...

Hey' i don't understand about this code works, why when i run this page, it always print start in console before i click the button.
This is my code :
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script language="Javascript">
            function checkButton(){       
                <%
                /* This declaration will print in console
                 * every time the page load.
                 * it suppose to be print after i click the buttonCheck button. */
                    System.out.println("start");
                %>          
        </script>
    </head>
    <body>
         <form name="myForm">
               <input type="button" value="check" onClick="checkButton()" name="buttonCheck">
         </form>
    </body>
</html>Why my JSP Script always run before i click the button? JSP script must be run after i click my button. is there any explanation about this?
Thanks..
Message was edited by:
hudoq

the jsp scriptlet tag will be execute while compilation.
so all the scriplet tags will be compiled and
executed while loading. This is generally not 100% true. JSP files will be compiled only once in the fresh server start. This also explains the "long loading time" on the 1st view ;) The subsequent views just executes the already compiled JSP.

Similar Messages

  • What is, "Motion Calibration" and why is it always running?

    I recently upgraded from a 4s to a 6 so a lot of things are new to me. But why is, "Motion Calibration" running 24/7 in Location Services? Won't that nuke my battery?

    I think I might be able to answer this now, although it may be a little late in coming. The reason this setting was introduced was probably not to determine how many steps you take, but to correlate it more specifically to your distance. It must have been introduced when Apple started work on the Watch and realized they couldn't put GPS into it to measure distance running.
    Instead, blurbs on Apple's site say that the watch learns what your stride is based on a few runs with your iPhone. Because there is no third-party app the Watch can tap into in order to measure this, this setting must have been placed there in order for a user to be able to have these measurements ready for when they do purchase and pair their Watch with their iPhone. The Watch would then be immediately able to access both walking and running distance that had been measured more accurately by the iPhone for months. If you deactivate it, you can still get a very accurate step count, but the distance is a guesstimate based on your height. With Location Services enabled, Apple can measure distance much better, and this aids the fitness experience in the Apple Watch.

  • Why am I always running out of RAM?

    For a pair of weeks now I have been doing all I am capable to understand the problem I have been experiencing. The language and terminology if my issue is somewhat foreign to me, but here is my best explanation.
    On my Mac Pro 8-core 2.8 GHz tower with 8 GB of RAM I am finding myself running very few operations but end up in a situation where I can visibly see my performance bogging down as if I am out of RAM.
    So I have been running activity monitor and what I am seeing is 40 MB of "Free" RAM with 630 MB "Wired", 2.5 GB "Inactive" and about 5 GB of "Active".
    I understand some of the basics of what these terms mean. Here is one thing I am 100% certain: after a reboot I start with a massive majority of "Free" or "Green Colored Pie Section" of RAM and when this is happening, my performance is fantastic. Whenever I have a few GB's of RAM, I never complain about my performance.
    Here is something I am almost 100% certain of: when my performance is poor or lacking, I notice two things that I find alarming: 1) I have under 100MB of "Free" RAM and 2) 50-60% of the RAM pie is colored yellow indicating "Active".
    I am using very common applications and even when I quit all of my applications (except activity monitor) the active RAM is still dominating my 'pie'.
    That's the best I can do for now, any help is appreciated.
    Thanks,
    Jeff

    JeffKasper wrote:
    So I have been running activity monitor and what I am seeing is 40 MB of "Free" RAM with 630 MB "Wired", 2.5 GB "Inactive" and about 5 GB of "Active".
    Both "Free" and "Inactive" are (supposed to be) available for use by any process that wants it.
    When you first start up, most memory is, of course, "Free." As apps or system processes need memory, that's where OSX gets it. When they release it, however, it does not go back to Free, but to "Inactive" and is identified with the last process that used it. This is done to speed up assigning it back to the previous process if it requests it (which of course is quite common).
    So as time passes, you'll see less and less Free memory and more and more Inactive memory; this means your Mac is working properly. In fact, after running for a long time, if there's much Free memory left, it is, in a sense, wasted!
    The thing to watch for is Paging. If the "Page outs" figure is high, or changing rapidly, then OSX is having to page stuff out because it's out of both Free and Inactive memory.
    A better way to monitor page-outs is via a Terminal command. (The Terminal app is in your Applications/Utilities folder.) Enter the following, exactly as shown, at the prompt:
    sar -g 60 10
    Leave the terminal window open, then try to re-create the unresponsive problem.
    This should tell you if you are doing pageouts. You'll see a line in the Terminal window every 60 seconds for 10 minutes (or until you quit Terminal), showing the number of pageouts per second. A few pageouts is normal. If you have large numbers of pageouts, then you have a memory problem.

  • Why am I always running out of memory? Not adding anything to the drive, just leaving it on

    I'm not loading any photo's/music/movies etc. just reading email and internet use. I start with about 2MB and it will slowly run down until I get a prompt telling me that I'm running critically low on memory? Any thoughts on how to clear this issue up? Or how to make a lot more space on the drive?
    Thanks in advance!

    Thanks for the DiskInventory idea, I have a file called private which I don't know what it does? It has a lot of stuff in it , tons of files ending in U501.asl or just asl
    I don't know if I should be trashing these files, there is over 50 GB of these. I can't seem to attach a jpeg of the screen

  • I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? Help - thank you

    I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? I read it MAY have something to do with am image it cannot load but I see them all loaded.  Help - thank you

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • Why can't cron run one of my scripts [SOLVED]

    I'm confused why cron can't run one of my scripts which runs just fine interactively.  I see no errors in messages.log or crond.log.
    My crontab:
    $ crontab -l
    # * * * * command to be executed
    #| | | | |
    #| | | | +----- day of week (0 - 6) (Sunday=0)
    #| | | +------- month (1 - 12)
    #| | +--------- day of month (1 - 31)
    #| +----------- hour (0 - 23)
    #+------------- min (0 - 59)
    #MAILTO=""
    25 20 * * * ~/bin/cpuz s
    Here is the code to that script:
    run() {
    tmpfile=/tmp/.sensors_unique.txt # temp output
    verbose=/tmp/.verbose_unique.txt # verbose temp output with three decimals
    logfile=/scratch/unique.csv # data file to write
    sensors >$tmpfile && sensors -u >$verbose
    phys=$(grep Physical $tmpfile | cut -c 18-21)
    c0=$(grep "Core 0" $tmpfile | cut -c18-21)
    c1=$(grep "Core 1" $tmpfile | cut -c18-21)
    c2=$(grep "Core 2" $tmpfile | cut -c18-21)
    c3=$(grep "Core 3" $tmpfile | cut -c18-21)
    vcc=$(grep in0_input $verbose | cut -c14-18)
    fan1=$(grep fan1 $tmpfile | cut -c24-27)
    pwm1=$(cat /sys/class/hwmon/hwmon3/device/pwm1)
    per1=$(echo "scale=2; $pwm1/2.55" | bc)
    fan3=$(grep fan3 $tmpfile | cut -c24-27)
    pwm3=$(cat /sys/class/hwmon/hwmon3/device/pwm3)
    per3=$(echo "scale=2; $pwm3/2.55" | bc)
    fan4=$(grep fan4 $tmpfile | cut -c24-27)
    pwm4=$(cat /sys/class/hwmon/hwmon3/device/pwm4)
    per4=$(echo "scale=2; $pwm4/2.55" | bc)
    fan5=$(grep fan5 $tmpfile | cut -c24-27)
    pwm5=$(cat /sys/class/hwmon/hwmon3/device/pwm5)
    per5=$(echo "scale=2; $pwm5/2.55" | bc)
    dts=$(date +"%m-%d-%y %r")
    [[ ! -f $logfile ]] && echo "dts,vcc,temp,core0,core1,core2,core3,120mm_rpm,120mm_pwm,140mm_rpm,140mm_pwm,comment" > $logfile
    echo "$dts,$vcc,$phys,$c0,$c1,$c2,$c3,$fan4,$pwm4,$fan5,$pwm5,$comment" >> $logfile
    if [ -n "$output" ]; then
    echo "Vcore : $vcc"
    echo "back : $fan1 ($pwm1/255) = $per1 %"
    echo "top : $fan3 ($pwm3/255) = $per3 %"
    echo "120mm : $fan4 ($pwm4/255) = $per4 %"
    echo "140mm : $fan5 ($pwm5/255) = $per5 %"
    fi
    case "$1" in
    s)
    limit=600 # number of times to run
    wait=2 # delay in sec before taking a new reading
    echo running in silent mode...
    x=0
    while [ "$x" -lt "$limit" ]; do
    x=$(( $x + 1 ))
    run
    sleep "$wait"s
    done
    v)
    export output="not null"
    export -f run
    /usr/bin/watch run
    echo "usage $0 {s|v}"
    echo
    echo "s) silent mode/logfile only"
    echo "v) verbose mode/logfile + output"
    exit 0
    esac
    Last edited by graysky (2012-08-01 00:44:16)

    I hate to suggest something obvious to someone with 4000 posts (and such a scary avatar), but have you tried it with the full path: /home/user/... ?
    Are you sure the script is not being run at all?
    (edit -- never mind, I see the file lines in there)
    Last edited by 2ManyDogs (2012-08-01 00:33:03)

  • Browser Script or Server Script run first

    Hi,
    As the tittle above may I know the priorty that siebel would run first ? Browser script or server script first ? Its important for me as my own thumb of rule.
    Cheers.
    Edited by: 928756 on Jun 19, 2012 3:50 AM

    Hi,
    The browser scripts are executed before server scripts!
    for more info & details:
    http://docs.oracle.com/cd/E05553_01/books/PlanUpgdSiebel7/PlanUpgdSiebel7_chapter18.html
    ;-)

  • Why the process chain always run twice when triggered from R3?

    I run a program from R3 by calling the remote function 'RSSM_EVENT_RAISE' on BW to trigger an event and in turn the event on BW bring up the running of a process chain.  But whenever I run the program on R3 to bring up the running of the process chain, I find the process chain always run twice at the same time.  Does anybody knows the answer? 
    And also I would like to know the functionalities of the two picture buttons "Activate" and "Activate and Schedule" in process chain.  In which case the "Activate" button should be used and in which case, the "Activate and Schedule" button should be used?   If we click the Start variant of a process chain, then click "Change Selections" button which bring up the window "Start Time" where the buttons "Immediate", "Date/Time", "After job", and "After event" are listed at the top.  If we modify at any of the above buttons, then after save this modification, we will have to click "Activate and Schedule" button to make it work, right? 
    Thanks a lot and everyone's idea is greatly appreciated!

    Kevin, make sure there is only one job scehduled for the Start Process of your Process Chain.  If you bring up the Process Chain (not the log view), right click on the Start Process and select "Displaying Scheduled Job(s)...".  There should only be one scheduled job with name BI_PROCESS_TRIGGER.  If there is more than one, then when triggered, it would execute more than once at the same time.  If there is only one job, then maybe your R/3 program is triggering the event more than once? 
    As far as the Start conditions for the Start Process, it works off the same principals as a scheduled job.  These start conditions determine when or how the Process Chain is to be executed.  You also have control over frequency.  These start conditions determine the scheduling of the Start Process of your Process Chain.
    When you schedule a Process Chain, a separate scheduled job is created for "each" process in the Chain.  BW controls the triggering of these jobs based upon how the processes in the Chain are linked.  All the jobs associated with Process Chains have strict naming conventions and all begin with BI_PROCESS_...  If you use SM37 to view all jobs that begin with BI_PROCESS_ you will find alot of scheduled jobs associated with your process chains.  Each job represents one of the processes within your process chains. 
    Does this help?
    Another tip might be to trigger the event manually in BW (use tx SM64).  If the process chain executes twice again, then maybe there is a separate scheduled job in BW that triggers the process chain that is triggered by the same event as the start process of the process chain.
    Message was edited by: George Shannon

  • Why is my fan always running at 5500 rpm?

    My MacBook Pro is about 6 months old and suddenly over the last 2-3 days the fans are always running around 5500 rpm. The CPU heat is around 190 Farenheit with the fans running like this.  It's sitting on my desk with nothing but the desk underneath.  Are there any solutions to this issue?
    Thanks

    Okay - Dang this was a pain to figure out!
    Macbook Pro 15" 8gb 2.2ghz running 10.6.8. After many of hours and dead-end solutions on these "help" boards I finally figured out whay my fans were always running at full tilt, even when NO programs were running. Ready for the answer, wait for it.... my HP deskjet printer!!!!!! If I leave the USB connection plugged in the fans run a 5500rpm + even at idle! Unplug the usb to the printer - fans settle to uner 2000rpm. I did find a string that said look at my printer que for active lists - but to no avail.
    I have had this laptop to the mac repair for this problem (of course they coulnd' simulate it there) and done all the dang SMC resets, system installs, etc told to do on these boards - AND NO, it is not "normal" for the fans to run like this!
    Hope it helps someone out there who has been pulling out their hair with this one!

  • Photosmart 5520 Why does the printer always run a blank sheet before it makes a copy?

    My Photosmart 5520 always runs a blank sheet before it runs the copy/copies.  Is there a setting I can change?

    Hello Camille33,
    Welcome to the HP Forums!
    I understand your Photosmart 5520 runs a blank sheet of paper before you copy a document. I will do my best to assist you! Just to clarify are you printing a document from your computer or copying a document directly from your printer?
    If so, then please make sure this printer is plugged into a direct wall, not a surge protector. I want to see if this makes a difference. Next, try resetting the printer for more than 60 seconds. Leave the printer turned on, then disconnect the power cord.
    Make sure the firmware is up to date on this printer. I will provide the HP website where you can find this download here.
    I will be looking forward to hearing back from you. Have a great night!
    I worked on behalf of HP.

  • Need help understanding why "1 is always equal to 1" is necessary in my Advanced Action

    I am using Captivate 7 and publishing as a SWF.
    I have an interaction that works, but there's one script that I use (which I found in a tutorial) that I don't understand the purpose of.
    The interaction is contained on a single slide where a user clicks two buttons in any order and a graphic appears after the second click. On each button I have a Conditional Advanced Action where I first check that it will always be true that "1 is equal to 1", then assign each variable with "1", then check that each variable was equal to 1 after which the graphic appears.
    The part that confuses me is checking if "1 is always equal to 1." Why is this script necessary in this case? Is it necessary because I'm including a Standard Advanced Action (assigning variables to "1") within the Conditional Advanced Action? Or is related to the fact that I'm doing everything on one slide (not using an On Enter slide event executing a Conditional Advanced Action)?
    Thanks.

    Perhaps it will help to think using different terms.
    If you need a script that performs a check against some condition, you need a Conditional Action. Maybe you need to show an image if button 1 has been clicked. And if button 2 has been clicked, you need to show a different image.
    Before checking to see which button has been pressed, you need to hide both images so that only the desired image is shown. So you need to perform the same action each time before checking some variable to take a specific action.
    This is where the "If 1=1" would come from.
    Each time the script is run, hide both images. Since the check to see if 1=1 will ALWAYS evaluate as true, the "ELSE" part will never be reached. So you would always perform the same actions just as a Standard Action would do.
    Perhaps if you posted some screen captures of your scripts, we might better explain it.
    Cheers... Rick

  • Cant get any Batch Script to run

    Hello together,
    first of, Thank you for this community.
    It´s a shame, i can´t get any Batch script to run.
    For example a PDF making Batch with a folder selection.
    I always get the alert, no matching files found.
    I use cs 5  on a  g 5 with osx 10.8.2
    here is the script..  should not be a big thing !?
    why does no file fit in the "mask" ?
    here is the script
    ADOBE SYSTEMS INCORPORATED
    Copyright 2005-2006 Adobe Systems Incorporated
    All Rights Reserved
    NOTICE:  Adobe permits you to use, modify, and
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it. 
    If you have received this file from a source
    other than Adobe, then your use, modification,
    or distribution of it requires the prior
    written permission of Adobe.
    Export to PDFs.jsx
    DESCRIPTION
    This sample gets files specified by the user from the
    selected folder and batch processes them and saves them
    as PDFs.
    Edits by Patrick Mineault:
    - only .ai files processed
    - files saved in same folder as the input files
    - export files have name (oldname)_export.pdf
    - PDF settings: non-editable / acrobatLayers=false
          for maximum compatibility with Preview
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
    // If a valid folder is selected
    if ( sourceFolder != null )
        files = new Array();
        fileType = "*.ai"; //prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );
        // Get all files matching the pattern
        files = sourceFolder.getFiles( fileType );
        if ( files.length > 0 )
            // Get the destination to save the files
            //destFolder = Folder.selectDialog( 'Select the folder where you want to save the converted PDF files.', '~' );
            destFolder = sourceFolder;
            for ( i = 0; i < files.length; i++ )
                sourceDoc = app.open(files[i]); // returns the document object
                // Call function getNewName to get the name and file to save the pdf
                targetFile = getNewName();
                // Call function getPDFOptions get the PDFSaveOptions for the files
                pdfSaveOpts = getPDFOptions( );
                // Save as pdf
                sourceDoc.saveAs( targetFile, pdfSaveOpts );
                sourceDoc.close();
            alert( 'Files are saved as PDF in ' + destFolder );
        else
            alert( 'No matching files found' );
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName()
        var ext, docName, newName, saveInFile, docName;
        docName = sourceDoc.name;
        ext = '_export.pdf'; // new extension for pdf file
        newName = "";
        for ( var i = 0 ; docName[i] != "." ; i++ )
            newName += docName[i];
        newName += ext; // full pdf name of the file
        // Create a file object to save the pdf
        saveInFile = new File( destFolder + '/' + newName );
        return saveInFile;
    getPDFOptions: Function to set the PDF saving options of the
    files using the PDFSaveOptions object.
    function getPDFOptions()
        // Create the PDFSaveOptions object to set the PDF options
        var pdfSaveOpts = new PDFSaveOptions();
        // Setting PDFSaveOptions properties. Please see the JavaScript Reference
        // for a description of these properties.
        // Add more properties here if you like
        pdfSaveOpts.acrobatLayers = false;
        pdfSaveOpts.colorBars = false;
        pdfSaveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGHIGH;
        pdfSaveOpts.compressArt = true; //default
        pdfSaveOpts.embedICCProfile = true;
        pdfSaveOpts.enablePlainText = true;
        pdfSaveOpts.generateThumbnails = true; // default
        pdfSaveOpts.optimization = true;
        pdfSaveOpts.pageInformation = false;
        pdfSaveOpts.preserveEditability = false;
        return pdfSaveOpts;
    is my problem really that stupid ?
    is it only working in cs 3  ?

    Mr. Schneider, Brilliant =) and weired
    on windows 7 it runs perfectly. even with the prompt commented out ?!?!?!
    Why is it not working on a maC ?
    now i have so many more ideas to optimize my workflow...
    i´am not shure how to get into this ..
    if i have to send out datafiles i have to do several things.
    1.collect images and fonts
    2. throw unused colors away
    3. check if there is white overprinted,if yes fixing it.
    4. put black on overprinting
    5.clean up empty textfields, unfilled objects, and usesless anchorpoints
    6.unlock everything
    7. save the ai
    8.convert in paths
    9.save an *_path.ai
    10.make a printable PDF with our XYZ. Joboptions
    11. preview pdf, optional with a watermark sized 100% 100% to the artboard / artboards
    12. wonderfull would be a print out
    this is just a wishlist.. i want to learn it. . how to do
    will be a hell of scripting or not ?
    is it usefull to do somethings in an action and load the action as a script ?
    In scriptinghappiness best greetings from Germany..

  • Firefox is taking a long time to open. When it does open, I get a pop up box with "Script not running". Bookmarks on my tool bar don't load. Scrolling is unreliable--it will stop in the middle of a page

    What is causing the "script not running"? Why so long to open? Etc.

    Hi Donekes,
    First off I need a little more information to help with troubleshooting.  You say that an error occurs when you "try to re-open the same problem app before the old session completely exits".  Does the error have an error code or dialog display?  It may also be possible to receive an error log.  Here is a knowledge base that explains how to retrieve error logs.
    http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
    If you are able to get that information then please post.  Have a good day.
    Brian K.

  • Why is my sql running parallel ?

    Hi,
    NOTE: first, I thought sql developer tool is causing this and I opened a thread on that category, thanks to @rp0428's warnings and advises, I realized that something else is happening. so reopened this thread in that category, I also need an admin to delete other one:
    https://forums.oracle.com/forums/thread.jspa?threadID=2420515&tstart=0
    thanks.
    so my problem is:
    I have table partitioned by range (no subpartition) on a DATE column per months. It has almost 100 partitions. I run a query on that table based on partition column:
      select *
      from   hareket_table
      where islem_tar between to_date('01/05/2012', 'dd/mm/yyyy') and to_date('14/07/2012', 'dd/mm/yyyy') -- ISLEM_TAR is my partition column.so, when I run this query from sql developer, query works parallel. I didnt just get execution plan via sql developer interface, first I used "EXPLAIN PLAN FOR" statement (which I always do, I dont use developer tools interfaces generally) then used developer interface (just to be sure) but I didnt satisfied and then I run the query and and get real execution plan via:
    select * from table(dbms_xplan.display_cursor(sql_id => '7cm8cz0k1y0zc', cursor_child_info =>0, format=>'OUTLINE'));and the same execution plan again with PARALLELISM. so INDEXES and TABLE has no parallelism (DEGREE column in DBA_INDEXES and DBA_TABLES is set to 1).
    as I know, if I'm wrong please correct me, there is no reason to oracle run this query as parallel (I also did not give any hint). so I worried and run the same steps in "plsql developer" and query runs noparallel (inteface, explain plan for, dbms_xplan.display_cursor). sqlplus autotrace was the same( just autotrace, didnt try others dbms_xplan etc.) Based on that, I decided sql developer is causing to this (*edit: but I was wrong TOAD did same thing*).
    so I focused on sql developer and I disabled parallel query using:
    alter session disable parallel query;then run the statement again and there were no Parallelism (expectedly).
    so looked for execution plans:
    I run query twice. one with normal, one with session disabled parallel query. and look for executed execution plan for both. (child 0 and 1)
    -- WHEN PARALLEL QUERY IS ENABLE, SESSION DEFAULT
    -- JUST CONNECTED TO DATABASE
      select * from table(dbms_xplan.display_cursor('7cm8cz0k1y0zc', 0, 'OUTLINE'));
    | Id  | Operation            | Name          | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT     |               |       |       |  2025 (100)|          |       |       |        |      |            |
    |   1 |  PX COORDINATOR      |               |       |       |            |          |       |       |        |      |            |
    |   2 |   PX SEND QC (RANDOM)| :TQ10000      |  7910K|  1267M|  2025   (2)| 00:00:01 |       |       |  Q1,00 | P->S | QC (RAND)  |
    |   3 |    PX BLOCK ITERATOR |               |  7910K|  1267M|  2025   (2)| 00:00:01 |    90 |    92 |  Q1,00 | PCWC |            |
    |*  4 |     TABLE ACCESS FULL| HAREKET_TABLE |  7910K|  1267M|  2025   (2)| 00:00:01 |    90 |    92 |  Q1,00 | PCWP |            |
    Outline Data
      /*+
          BEGIN_OUTLINE_DATA
          IGNORE_OPTIM_EMBEDDED_HINTS
          OPTIMIZER_FEATURES_ENABLE('11.2.0.2')
          DB_VERSION('11.2.0.2')
          OPT_PARAM('query_rewrite_enabled' 'false')
          OPT_PARAM('optimizer_index_cost_adj' 30)
          OPT_PARAM('optimizer_index_caching' 50)
          OPT_PARAM('optimizer_dynamic_sampling' 6)
          ALL_ROWS
          OUTLINE_LEAF(@"SEL$1")
          FULL(@"SEL$1" "HAREKET_TABLE"@"SEL$1")
          END_OUTLINE_DATA
    Predicate Information (identified by operation id):
       4 - access(:Z>=:Z AND :Z<=:Z)
           filter(("ISLEM_TAR">=TO_DATE(' 2012-05-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "ISLEM_TAR"<=TO_DATE('
                  2012-07-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
    --WHEN DISABLED PARALLEL QUERY
    --AFTER CONNECTED, EXECUTED "ALTER SESSION DISABLE PARALLEL QUERY"
    select * from table(dbms_xplan.display_cursor('7cm8cz0k1y0zc', 1, 'OUTLINE'));
    | Id  | Operation                | Name          | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT         |               |       |       | 36504 (100)|          |       |       |
    |   1 |  PARTITION RANGE ITERATOR|               |  7910K|  1267M| 36504   (2)| 00:00:04 |    90 |    92 |
    |*  2 |   TABLE ACCESS FULL      | HAREKET_TABLE |  7910K|  1267M| 36504   (2)| 00:00:04 |    90 |    92 |
    Outline Data
      /*+
          BEGIN_OUTLINE_DATA
          IGNORE_OPTIM_EMBEDDED_HINTS
          OPTIMIZER_FEATURES_ENABLE('11.2.0.2')
          DB_VERSION('11.2.0.2')
          OPT_PARAM('query_rewrite_enabled' 'false')
          OPT_PARAM('optimizer_index_cost_adj' 30)
          OPT_PARAM('optimizer_index_caching' 50)
          ALL_ROWS
          OUTLINE_LEAF(@"SEL$1")
          FULL(@"SEL$1" "HAREKET_TABLE"@"SEL$1")
          END_OUTLINE_DATA
    Predicate Information (identified by operation id):
       2 - filter(("ISLEM_TAR">=TO_DATE(' 2012-05-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
                  "ISLEM_TAR"<=TO_DATE(' 2012-07-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
    as you can see, when I've just connected to database (no any statements run) OPT_PARAM('optimizer_dynamic_sampling' 6) is in my stats.
    when I disable parallel query on the session, this is not in stats...
    value of optimizer_dynamic_sampling is 2 in DB. so why is that query runs parallel ? I don't want that.
    thanks for answers

    >
    NOTE: first, I thought sql developer tool is causing this and I opened a thread on that category, thanks to @rp0428's warnings and advises, I realized that something else is happening. so reopened this thread in that category, I also need an admin to delete other one:
    https://forums.oracle.com/forums/thread.jspa?threadID=2420515&tstart=0
    as you can see, when I've just connected to database (no any statements run) OPT_PARAM('optimizer_dynamic_sampling' 6) is in my stats.
    when I disable parallel query on the session, this is not in stats...
    value of optimizer_dynamic_sampling is 2 in DB. so why is that query runs parallel ? I don't want that.
    >
    I answered this question in that other thread, that is now gone. I pointed you to, and quoted from, a blog that tells you EXACTLY why that is happening. And I also gave you a link to an article by Oracle ACE and noted author Jonathan Lewis. You either didn't see the links or didn't read them.
    Maria Colgan is an Oracle developer and a member of the optimizer developer team. She has many article on the net that talk about the optimizer, how it works, how to use it.
    The one I pointed you to, and quoted from, is titled 'Dynamic sampling and its impact on the Optimizer'
    https://blogs.oracle.com/optimizer/entry/dynamic_sampling_and_its_impact_on_the_optimizer
    >
    For serial SQL statements the dynamic sampling level will depend on the value of the OPTIMIZER_DYNAMIC_SAMPLING parameter and will not be triggered automatically by the optimizer. The reason for this is that serial statements are typically short running and any overhead at compile time could have a huge impact on their performance. Where as we expect parallel statements to be more resource intensive, so the additional overhead at compile time is worth it to ensure we can be best execution plan.
    In our original example the SQL statement is serial, which is why we needed to manual set the value for OPTIMIZER_DYNAMIC_SAMPLING parameter. If we were to issue a similar style of query against a larger table that had the parallel attribute set we can see the dynamic sampling kicking in.
    You should also note that setting OPTIMIZER_FEATURES_ENABLE to 9.2.0 or earlier will disable dynamic sampling all together.
    When should you use dynamic sampling? DS is typically recommended when you know you are getting a bad execution plan due to complex predicates. However, you should try and use an alter session statement to set the value for OPTIMIZER_DYNAMIC_SAMPLING parameter as it can be extremely difficult to come up with a system-wide setting.
    When is it not a good idea to use dynamic sampling? If the queries compile times need to be as fast as possible, for example, unrepeated OLTP queries where you can't amortize the additional cost of compilation over many executions.
    >
    If you read the article and particularly the first two paragraphs above Maria expalins why dynamic sampling was used in your case. And for a table with as many partitions as yours Oracle chose to use sampling level six (256 blocks, see article); a level of two would only sample 64 blocks and you have 90+ partitions. Oracle needs a good sample of partitions.
    The Jonathan Lewis article is titled 'Dynamic Sampling'
    http://jonathanlewis.wordpress.com/2010/02/23/dynamic-sampling/
    This article can also shed light on sampling as he shows how it appears that sampling isn't being used and then shows that it actually is
    >
    We can see that we have statistics.
    We can see that we delete 9002 rows
    We can see that we have 998 rows left
    We can see that the plan (and especially the cardinality of the full tablescan) doesn’t change even though we included a table-level hint to do dynamic sampling.
    Moreoever – we can’t see the usual note that you get when the plan is dependent on a dynamic sample (” – dynamic sampling used for this statement”).
    It looks as if dynamic sampling hasn’t happened.
    However, I “know” that dynamic sampling is supposed to happen unconditionally when you use a table-level hint – so I’m not going to stop at this point. There are cases where you just have to move on from explain plan (or autotrace) and look at the 10053 trace.
    So the optimizer did do dynamic sampling, but then decided that it wasn’t going to use the results for this query.

  • Oracle 10g form not always running in windows 7

    hello all of you experts , the query which I am going to post here is very annoying for me but it there might be a simple solution to my problem. I have installed oracle developer 10g on windows 7. Changed the formsweb.cfg file so that it uses java plug in rather than jinitiator I have installed the JRE version 6, now the problem is that when i try to run a form sometimes it runs properly but sometimes the browser window becomes blank and the form is not visible in it and yes the splash screen which shows the name of application server stays there on the screen. the problem is in internet explorer, mozilla and chrome as well didn't check on any other browser. Please help me out i would be grateful to you guys out there. Just to let you know that this annoying behavior is not always there, i dont know why some forms do run properly but some of them dont.

    That is actually not an uncommon symptom for any Windows platform. However, I will say that if you are running on Windows 7, it should be Win7-32bit and you should have installed the 10.1.2.3 patch set. Anything else would not be considered certified by Oracle and therefore not supported. The details on how to properly install Forms/Reports 10.1.2 on Win7 are outlined in MyOracleSupport note 1292919.1
    Assuming you covered all that, with Dev Suite this often happens when you have abandoned a process previously then tried to start another before the first has been terminated. In other words, next time you have this happen close ALL open browser windows then open the Windows task manager. Look for any orphaned frmweb.exe processes and kill them. Now go back and try starting a form. It should work now.
    It is never a good idea to terminate a running form by closing the browser. It is important that you close the form first (e.g. using the Exit button in the form) then close the browser. Closing the browser while a form is running can cause runtime processes to become orphaned. Generally these will be cleaned up when FORMS_TIMEOUT is reached (usually 15 minutes), but the point is that you have prevented a clean shutdown from occurring. So always make a best effort attempt at closing the form properly. End-users should be encouraged to do the same when the application is put into production.

Maybe you are looking for

  • Script Error in BO report - XI 3.1

    Hi, We are using BO XI 3.1 sp3.  We have a report in which we are uisng the Fold / Unfold option in Webi. The report is folding and displaying summaries at 3 levels. Account Group -> Sub group -> Cost center. When we expand Account Group it'll have 3

  • Make Player 5 compliant clip containing NTSC SD video

    My digital signage player accepts only Flash Player 5 compliant swfs.  I have Flash CS4/CS5 so I set the publish settings to Flash Player 5 then try to export the clip I get an error message that what I am trying to accomplish is not possible.  How c

  • Change the name of std field in the std screen....

    Hi All, I want to change the name of the std field..... I used CMOD option but it changed the name across the client ...... so i dont want that...i want it to be region specific......like for india only this text should display and for rest it should

  • PC I'm using is failing and I need to transfer to another system.

    Would like to know if I am within my rights to do so?

  • Selected columns in APO planning area

    I have a requirment such that i have to copy the data from the columns selected by user and paste it to another column. my questuion is     Using abap code how can i find whether a column is selected  or which columns are selected.