High SQL version count and low executions from ADDM Report!!

Hi, all.
I am reading an ADDM Report.
I found something strange.
In the "SQL ordered by Version Count" section,
an applicaion sql statement has the value of 45 Version count
but has the value of 1 Executions. The time interval is one hour.
The database has only one applicaion user,
and thus all sessions connect to the same user.
What does "45 version count" mean??
The application is using bind variables.
How can I reduce this number??
I am hitting "library cache lock" wait event from time to time.
Thanks and Regards.
Message was edited by:
user507290
Message was edited by:
user507290
Message was edited by:
user507290

You could get a high version count if the bind variables are character type and allow large variations in length, see:
http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/
The oddity of lots of versions with only one execution could be an unlucky timing thing relating to cursor invalidation - the child cursors can be left trailing with zero'ed statistics rather than being cleared out when they should be.
Problems with library cache lock can be a consequence of large numbers of versions - simply because many people want, and may have to create, different child cursors for the same statement at the same time. (However, you've already received some comments about RAC and gathering stats which can be an underlying cause of that issue).
Looking at it from a different angle, are there any global temporary tables involved, and if so are they 'on commit preserve rows', and Is this 10.1 or 10.2 ?
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk

Similar Messages

  • SQL Version Count in AWR and Child Cursor

    Hi,
    In 11.1.0.7, what is SQL Version count in AWR report? What does it mean? and how oracle does this version count? How do we define child cursor?
    Thanks

    Hi,
    when you issue a SQL statement, the database searches the library cache to find a cursor with matching SQL text. Then it can happen that even though the text matches, there are some other differences that prevent you from using existing cursor (e.g. different optimizer settings, different NLS settings, different permissions etc.). In such cases, a new child cursor is created. So basically child cursors are different versions of the same SQL statement.
    If you have SQL statements with thousands of versions, this could mean a problem for your shared pool (child cursors taking up lots of space and causing fragmentation), as well as a potential for performance problems due to plan instability (if the same SQL text is parsed to a new plan every time, sooner or later it will be a bad plan). That's why AWR report has this list.
    According to Oracle support, up to a couple of hundreds versions doesn't indicate a problem (cursor sharing mechanism isn't perfect), but when you have thousands or tens of thousands of versions, you should check your cursor sharing settings (first of all, CURSOR_SHARING parameter).
    Best regards,
    Nikolay

  • Date Formatting and SSN Formatting from BIP Report

    Hello,
    I found out how to format phone numbers.
    I just need help in formatting 2 fields from our report.
    1. The Call Date (MM/DD/YYYY HH:MM:SS AM/PM)
    2. SSN (123-45-6789)
    First, I am using the command below to convert the date into canonical format after the namespace:psfn.
    <?psfn:totext(ssWarrantyUpdatedDt, 'YYYY-MM-DDTHH:MI:SS')?>
    I then tried formatting the date using the Microsoft Format Mask definitions but it didn't work.
    On the SSN, I didn't see anything from the bookshelf that shows me how to do this formatting.
    Can anyone please help me?
    Thank you

    Hi,
    If you XML data is coming from Oracle Report (RDF), why dont you do date and SSN formatting in SQL itself. So that you will get directly the required format in XML. That is how I am doing in my report. Most of the time it is easy to make changes in Oracle Report SQL rather than in template bcoz BI publisher dont support so many MS Word properties.
    Thanks,
    Omkar

  • BPEL assign count and node value from xml

    I have mapnames.xml in the project with nodes like this:
    <mapname>STATUS_DIMS_LOAD</mapname>
    <mapname>MOVEMENT_DIMS_LOAD</mapname>
    The xml of mapnames will be used for an input variable for a FlowN invoke.
    Trying to count the number of mapnames in the xml document and put in a variable.
    <assign name="getMapNamesN">
    <copy>
    <from expression= *"count(bpws:getVariableData('... ? " />*
    <to variable="FlowN_Dims_Count"/>
    </copy>
    </assign>
    Then use that in the FlowN
    <bpelx:flowN name="FlowN_Dims" N="bpws:getVariableData('Flow_Dims_Count')" indexVariable="Index">
    And then inside the FlowN, get the actual mapname using the index.
    <assign name="Assign_Dims">
    <copy>
    <from expression= *"bpws:getVariableData('... ? [',bwps:getVariableData('Index'),']') " />*
    <to variable="Invoke_Dims_InputVariable" part="InputParameters"
    query="/ns8:InputParameters/ns8:P_MAPNAME" />
    </copy>
    </assign>
    What is the syntax to
    1. Count the number of mapnames in the xml document?
    2. Use the FlowN index to assign the mapname to an input variable?

    That looked hopeful, but it did not show how to create the variables and I do not know the syntax for making an array variable.

  • High pitched squeal noise and low end rumble RME Fireface 800 Macbook pro 2011

    Hi there,
    I just updated Mac OSX Snow Leopard and my Fireface 800 has started emitting a high pitched squealing noise when turned on and connected via Firewire 800 cable.
    Also my 17" Macbook pro requested a hard reset last week for the first time, after this problem began.
    When my subwoofer is connected, a low end rumble is emitted at the same time as the squeal, and persists until turned off and on again.
    Any ideas?
    Thanks
    Robin

    Hi there,
    I just updated Mac OSX Snow Leopard and my Fireface 800 has started emitting a high pitched squealing noise when turned on and connected via Firewire 800 cable.
    Also my 17" Macbook pro requested a hard reset last week for the first time, after this problem began.
    When my subwoofer is connected, a low end rumble is emitted at the same time as the squeal, and persists until turned off and on again.
    Any ideas?
    Thanks
    Robin

  • "Windows 8 using 100% of HDD with high average response times and low read/write speed"

    Turns out this is a fairly well known windows 8.1 issue that has been plaguing users since at least 2013 and there is no one simple fix, so it may not be *entirely* hp's fault; but I've had two of these laptops, both the same model, the first one needing to be returned and exchanged for an entirely unrelated issue (hardware failure: ethernet port nonfunctional with lights stuck on). Both are refurbished. Both have been extreemly slow and unresponsive even compared to a lesser Brazos powered laptop I had before, but I've only recently decided to investigate why. 
    So if there is something HP specific going on here, I hope there is one simple fix. My average response time has gone up as far as well over a minute (>60,000ms), so I may be an outlier case here compared to the typical windows 8.1 hardrive responsiveness/bandwidth problem. 
    Edit: there is a case with another HP pavilion laptop (intel powered though, so it may be an intel storage driver issue described in the first link) being much, much worse.
    This question was solved.
    View Solution.

    Guess what just now happened again
     So using DISM did _not_ fix it.

  • Remove "Begin Sequence" and other strings from text report

    I want to remove the string "Begin sequence", "End sequence" and the pathname of the sequence from my text reports that is generated with 'On The Fly Generation' option set, without this option those strings are not present.
    I see that strings are inserted by the 'ProcessOTFStepResult' sub-sequence in the report_txt.seq file, this is an activex call that compile the body of the report.
    Thank you in advance,
    Massimo Ponte.

    I suggest you take a look at the following documents to have a more clear view of what teststand offers when it comes to customizing Reports:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/F2F1EE9E7266F4A88625696C00688499
    http://digital.ni.com/public.nsf/websearch/05F43468942BE32E86256D980074E200?OpenDocument
    AlessioD

  • Printing a Table Control AND ALV grid from same report

    Hello,
    I am trying to figure out how to print the output of my report, which consist of a table control and a OO-driven ALV grid under it. i tried several possibilities but I only get the ALV in my spool....?
    Answers will be rewarded !

    Keep a break point in that method. Press print in the ALV, check it stops in the break point. If yes then you can use write statement, the values what ever u r writing it come in the print-out. If the control doesn't stop in the break point then there is some problem in the method declartion.
    Check my code - I written every thing in the global declaration.
                          ALV Class Definition
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
            handle_top_of_list
                FOR EVENT print_top_of_list OF cl_gui_alv_grid,
            handle_end_of_list
                FOR EVENT print_end_of_list OF cl_gui_alv_grid.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    DATA: o_event_receiver   TYPE REF TO lcl_event_receiver.
                          ALV Class Implementation
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_top_of_list.
        DATA: lws_top1(20) TYPE c,
              lws_top2(150) TYPE c,
              lws_top3(150) TYPE c,
              lws_len_file TYPE i,
              lws_file(80) TYPE c,
              lws_file1(100) TYPE c,
              lws_file2(100) TYPE c,
              lws_file3(100) TYPE c.
        WRITE: / text-001.
    *Date
        CONCATENATE text-008 ws_date INTO lws_top1 SEPARATED BY space.
        WRITE : /1 lws_top1.
    Source File Name
        WRITE: / text-009.
        lws_len_file = STRLEN( p_upload ).
        IF lws_len_file < 80.
          MOVE p_upload TO lws_top2.
          WRITE : /1 lws_top2.
        ELSE.
          MOVE p_upload TO lws_file.
          MOVE p_upload+80(48) TO lws_file1.
          DO.
            IF lws_file+79(1) EQ '\'.
              EXIT.
            ELSE.
              CONCATENATE lws_file+79(1) lws_file2 INTO lws_file2.
              SHIFT lws_file RIGHT.
            ENDIF.
          ENDDO.
          IF lws_file2 IS INITIAL.
            MOVE lws_file TO lws_top2.
            WRITE : /1 lws_top2.
            WRITE : /1 lws_file1.
          ELSE.
            CONDENSE lws_file.
            MOVE lws_file TO lws_top2.
            WRITE : /1  lws_top2.
            CONCATENATE lws_file2 lws_file1 INTO lws_file3.
            WRITE : /1  lws_file3.
          ENDIF.
        ENDIF.
      ENDMETHOD.                           "handle_top_of_list
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Regards,
    Prakash.

  • Changing high and low units while tangosol is running

    Hi,
         i've a 3 machine setup. on the first one i've weblogic and tangosol with local storage as false.
         on the other two i've have tangosol running with local storage enabled and i'm running a distributed service.
         initially i've kept high units as 1000 and low units as 500. i would like to provide a screen to the amdin user where by he can change the high and low unit limit.
         i'm accessing the local cache using the following code
         CacheService service = dealCacheCoarseGrained.getCacheService() ;
         Map mapReadWrite = ( ( DefaultConfigurableCacheFactory.Manager ) service.getBackingMapManager() ) .getBackingMap( bundle.getString( "DistCache" ) ) ;
         if ( mapReadWrite instanceof ReadWriteBackingMap ) {
         rdwMap = ( ReadWriteBackingMap ) mapReadWrite;
         Map mapLocal = rdwMap.getInternalCache() ;
         if ( mapLocal instanceof LocalCache ) {
         localCache = ( LocalCache ) mapLocal;
         localCache.setHighUnits( evictionDetails.getHighUnits() ) ;
         localCache.setLowUnits( evictionDetails.getLowUnits() ) ;
         but in the above case as the tangosol operating within the weblogic JVM has local storage as false,
         the condition if ( mapLocal instanceof LocalCache ) {...
         is never fulfilled and as a result
         i'm not able to bring about the changes from the GUI.
         Can i achieve my objective with this setup?
         Please help
         Thanks
         Jigs

    Hi jigs,
         I would have the GUI kick off an Invocation Task that uses the code that you have here. Then send that Invocation Task to all storage enabled nodes. You can retreive the set of storage enabled nodes from DistributedCacheService.getStorageEnabledMembers().
         Later,
         Rob Misek
         Tangosol, Inc.

  • Uploading and downloading files from a web app (Urgent!!)

    Hi everyone:
    I'm developing an application in PL/SQL to upload and download files from an HTML webpage. I congured the document table and the parameters necessary in the DAD of my application.
    when I upload the file using my webpage that file info is automatically uploaded to the doc table. This is as far as I have gotten.
    I need to do the following:
    - Place the uploaded file into a column in another table in my database as part of a text message (think of it as an email message), and delete the file from the doc table (as this is thought to be a temp table that holds the file when uploaded from my webpage)
    - Retreive the file so that it can be downloaded from another web page.
    The file can be a PDF, WORD DOC, etc...
    I now that I can do this with InterMedia but I haven't figured out how :(
    Can anyone please point me to an example or some documentation that can guide me through the process.
    DB VERSION: 8.1.7
    IAS VERSION: 1.0.2.2
    Thanks,
    Carlos Abarca

    The idea was for you to look at the code and get an idea of how to access the BLOB in the document table. IF you look at the procedure
    insert_new_photo( new_description IN VARCHAR2,
    new_location IN VARCHAR,
    new_photo IN VARCHAR2 )
    It shows how to access the blob that is stored in the document table. You can then copy this blob to your own table using the DBMS_LOB package.
    Hope this helps,
    Larry

  • Will play count and playhead position sync back to iTunes?

    I have a bunch of smart playlists that contain all the unplayed episodes of my favorite podcasts. If I drag these onto the Shuffle, will the play count and playhead position from my Shuffle sync back to iTunes?
    It seems like the answer is no -- this is really a one-way copy to the Shuffle, and not a "sync".

    The iPod shuffle is supposed to maintain a "played" flag for played tracks. I don't know if podcasts will work the same way as normal tracks, but I can't think of a good reason why they wouldn't. Having said that, after the iTunes 8.1 update, my shuffle's marking the wrong tracks as "played" and leaving the actually played tracks unmarked, so until the iTunes team comes up with a fix for all the bugs they introduced in that update, anything goes.

  • Low Performance in the report with cell defition

    Hi all,
    In one of our queries (3.5), we had to use lots of cell definition. And after execution of the report, it stays in "Formatting Result Area" and "Retrieving Result from BW Server" for a very long time (about 30 minutes).
    There is already aggregate on the infoprovider and report uses it.
    Is there any way to increase reporting performance of a report with lots of cell definitions ?
    Thanks
    SP

    Arun,
    Can you please explain what is precalculation and how to use it in Bex?
    Thanks in advance.
    SP

  • Calling standard printer driver program RVADOR01 from ALV report

    I have ALV report (Sales order documents) and one of columns in report is icon type with print preview link (hotspot). When user press icon, I would like to call standard print program RVADOR01 (actually we have custom Z_RVADOR01 and custom smartform which are working fine when using Document -> Output in VA03) to display print preview. I don't know how to call (trigger) print driver routine and pass needed parameters to it (ex. SO number).
    Marko

    Actually I did that. But then you are at least three clicks away from print preview screen. For testing purpose I've created custom smartform and run it from my report. It is working like I want. Now, instead of my procedure I want to run standard printer driver program with needed parameters. I believe that all it needs is document number (vbeln) and all the rest is already there, program, smatform... I just don't know how to use it (ex. pass parameters).
    I know I maybe complicating too much but I am ABAP beginner and want to learn as much as possible. Thank you anyway!

  • Moving transport from Lower ERP Version to Higher ERP Version?

    Hi All,
    I got a quick question regrads to Transporting object frpm ERP 6.0 SP 13 and ERP Ehp 4.0 SP 3.
    Currently, We went Go-live with ERP 6.0 with SP13, as part of Release 1 Landsape.
    ECD ---> ECQ --> ECP
    For release 2, which is starting in few months, we are planning to Build a Project Landscape seprate from Support landsacpe.
    ECD --> ECQ
       |                  -
    >     ECP
    E2D --> E2Q
    2 = Release 2 SID name
    Our Support landscape will be on ERP 6.0 with SP 13
    and Project landscape we wanted upgrade to ERP 6.0 ehp 4.0 with SP 03. To keep the landscape consistent, whatever work we do on ECD (R1 lanscape), we would like to import to R2 E2D as well, so when we Go-Live with R2 implementation, then our DEV and QA systems will be consitent.
    My Question would, can I move/transport object from R1 (lower ERP version) to R2 (higher ERP version)?
    My answer is BIG-NO, since version and objects are differenent, all transport will fail.
    I want to hear what you Experts say about this?
    Thanks in Advance
    Kumar
    Can you
    Edited by: Kumar Subramaniam on Jun 5, 2009 7:25 AM

    Hi,
    As per your query it can be moved but you will face some issue in this, there are two type of trandport 1. workbench 2. customizing. If you want to move customizing then your abaper will check this will be transport, but workbench will have some issue due to variotion of verion. But you transport this in your new dev server and do the configuration again in new dev serve then test in your qac. The job is very tipical but its posible.
    Anil

  • Is it possible to create a script to produce a high res and low res pdf and jpeg from Indesign at the same time

    Hi, I'm just wondering if there is a way to automate a long process I have to do to create assets for my job.
    I have a single page InDesign 6 file which I have to output three ways:
    A low res pdf without bleed or trims
    A high res pdf with bleed and trims
    A low res jpeg downsized to 2% of original size.
    If anyone knows if this is possible I'd love to hear from you.
    Thanks in advance

    Automation requires creating your own IDML script for output. Scroll down on this page to the section on Scripting resources. The text is a bit confusing. It says InDesign CS5 Scripting resources, but then the paragraph for that section says the PDF files are for CS6. I haven't read through these, I just found them by searching for "indesign automation". It does say in part that is can be used for preparing files for printing, so once you figure it out, it should be a single click option to do all three steps.
    You can do them now with the menus you have, assuming you also have Acrobat Pro installed. With any document open, choose File > Adobe PDF Presets, and choose either from the prebuilt defaults, or create your own in the Distiller. However, I don't see a way in the Distiller settings to choose whether or not to include bleed and marks, so I'm not really sure how you'd have them on for one and not the other. As far as JPEG output, that can be chosen under Export. You get a choice to set a resolution and JPEG quality level, but not a size, so the output will be the dimensions of the document.

Maybe you are looking for

  • Display year-month and week information

    Hi, In my application, a resource is assigned to some task between lets say.. 1-jan to 29th feb in 2008. I should get the o/p as 01-2008 1 RESA 01-2008 2 RESA 01-2008 3 RESA 01-2008 4 RESA 01-2008 5 RESA 02-2008 5 RESA 02-2008 6 RESA 02-2008 7 RESA 0

  • Need help with adding a Key flex field to a seeded OAF page

    We have a seeded OAF page on which we already have Account Key Flex Field. Properties of this flex field are: The ApplShortName - SQLGL Name - GL# Type - Key As per the client requirement, in the KFF screen, we have disabled the seeded structure for

  • Error  while uploading data in table t_499s through BDC Prog

    Hi am facing problem while uploading data in table t_499s through BDC Program  , if there is more than 15 records in file its not allowing to upload kindly suggest what to do Thanx Mukesh s

  • How to compile a procedure from Sql*Plus?

    Dear friends, I couldnt find the way how to compile my invalid procedure through sql*Plus. I know this is very awkward,but I m in need of that command only. Thanks Ritesh Sharma

  • Why is the PAPER SIZE pull down list different between my 2 identical MFPs?

    Indesign 6 - Toshiba MFPs with PS3 Drivers. I have 2 of the same models Toshiba MFPs - 5560c, and using the Universal PS3 Driver under Windows 7 PC. Why is my Paper Size pull down list different between to the 2 MFPs?  The main reason I ask; I don't