How is the 'batch_action' set in a mapping?

Greetings
I have two mappings that are conceptually the same in that they select rows from a remote table using that table's 'LAST_UPDATED' column to pick up the previous 3 days updated rows and then do a UPDATE/INSERT into the target table.
I each case the remote source table is quite large (> 15 million rows).
In the first mapping the 'batch_action' variable gets set to 'BATCH_MERGE' and executes a MERGE statement that works very nicely.
In the second mapping the 'batch_action" is not even used and the generated code uses BULK processing which is not good in this case.
The first mapping usually reads about 30,000 rows from the source table and pushes that thru the MERGE command and finishes in about 10 minutes. Cool.
The second mapping reads the entire remote table and ends up adding the same 30,000 rows to the target table but takes several hours to do it!!!
I have checked the configuration settings on the two maps and they are identical as far as I can tell. I am not using any hints and the 'Default Operating Mode' in each case is 'Set based failover to row based'.
Any ideas on why the two maps generate very different PL/SQL code as the package body?
Thanks very much for any feedback.
-gary

Hi Patrick
Good to hear from you again and thanks for the feedback.
No offense taken whatsoever on the map configuration comment. I have NOT checked every last configuration parameter but only the ones I know I've touched in the regular routine I use for almost all the maps. There indeed could be something different buried way down deep and I will continue to pursue that angle.
I have turned off all hints on both maps at this point, no parallel, no append, nothing.
The 'batch_action' variable is one I found in the generated code for the map that runs OK. It is set to 'BATCH_MERGE' which I'm assuming will cause the MERGE statement to be used, which indeed seems to be the case.
That variable does not appear at all in the generated code for the map that runs very slowly.
The two maps do select from different tables over the same database link but the overall structure and flow of the two maps is the same. The source tables both have over 15 million rows in them. I have only one source table, a FILTER on a DATE column to get only the rows updated in the past 3 days, a few functions to manipulate the data (dividing by 100, e.g.) and finally into the target table with UPDATE/INSERT.
It appears to me that the long running map is not using the index on the DATE column in the remote table that is used to determine the rows updated in the past 3 days. I have checked the remote tables and indexes and insured that I had current statistics, etc.
When I run a similar SELECT from SQL*Plus (looking for the rows updated in the past 3 days) and have AUTOTRACE turned on I can see the index being used in the EXPLAIN PLAN.
I'll continue to look into the map configuration parameters since that, as you stated, seems to be the most likely spot for differences.
I do have a TAR open for this issue as well.
Thanks very much for your feedback. Have a great day.
-gary

Similar Messages

  • How does the "Manually Set EV"dialog box in "Merge to HDR Pro" work?

    What is the  "Manually Set EV"dialog box in "Merge to HDR Pro" for?
    Do these values affect the HDR results?
    Since the source images are chosen in the first dialog of "Merge to HDR Pro"
    why do we need to set EV manually here? 
    Besides, after I tried different values to compare the results
    the "Manually Set EV"dialog box has disappeared how can I get it back?
    THANKS

    If the files you are merging don't have metadata giving their exposure values (time, aperture, ISO), then MergeToHDR prompts you for the relative exposure values.
    If your files have the metadata, then there is no need to enter the values manually.

  • How use the function add_months() in a mapping??

    Hi,
    I have a variable in ODI with a date and i need add other variable to add "x" months...
    How do I can do that?
    thanks,

    So are you saying you have variable1 holding a date e.g. 1/1/2015 and variable 2 holding a number of months e.g. 7?
    If so in your mapping expression just use the date functions available to your (stage/target) database technology and substitute the variable into the function
    i.e. for Oracle your mapping would be ADD_MONTHS(#Variable1, #Variable2)

  • How maintain the Customise setting for copy the text to sales doc to sales

    Hi SAP Gurus,
    How to customise the text for copy to sales documents to sales documents and output.Kindly needful for me.
    Regards
    Vikram.M

    This is determined based on the access sequence specified for the Text ID.
    You can go to IMG/logistics execution/Basic shipping functions/Text control/Define access sequences for determining texts.
    You may also use t-code VOTXN.
    If you are trying to check text being copied to delivery header,then click the radio button for the delivery header and click display. go to the relevant text determination procedure and
    Check the access sequence assigned to the Text id not being copied.
    The Text object should be VBBK to copy texts from sales order header,VBBP for sales item texts.
    You can compare it with your other text ids and their access sequences and make the necessary change to the one that is not being copied.
    Regards,

  • How does the concurrent 'Set cost controls' in cost management work?

    Hi,
    Can anyone tell me the use of 'Set cost contols'?
    Thanks in advance!
    Thanks,
    Kaveri

    The "Set cost controls" concurrent program is used in R12 to mass update the cost control fields on item costs.
    The cost control region is found by going to Cost management >Item costs > Item Costs
    The concurrent program lets you specify which items /costs should be updated by using various parameters such as cost type, item range, category range etc.
    And you can specify the source for the new cost control data and the new value for the fields.
    Hope this answers your question,
    Sandeep Gandhi

  • How does a server set SoapFault parameters?

    If a SOAP server encounters errors and needs to pass some data back to a SOAP client
    by way of the client receiving a weblogic.soap.SoapFault, how can the server set
    the value for <faultcode> and <faultstring>?
    How method does a SOAP client use to get the retruning XML containing the SoapFault?
    T Tse

    @GJ - thx -- I knew that-subconsciously!  i just didn't put it all together
    @test - well, i'm in the process of studying Thom Parker's scripting course,
    so hopefully i'll learn how to do that soon .
    but meantime - it's a combination of client-side/server-side scripting?
    So would youse criticque my summary understanding of the flow of the process?
    client requests -> server serves the pdf -> client fills out form on their machine ->
    (requiring that they have "some" pdf application installed, or invite them to dL/install Adobe Reader, etc)
    script embedded in the form button "Submit" causes the now-changed-data-filled-out-pdf
    to be "returned/received" back on the server in changed form -- ->
    either to be manually gathered/downloaded by me,
    or, by further scripting, auto-magically returned to my email, etc?
    w/ the scripting "Notifying me that the client has completed & returned the form" ?
    ----  more ----
    and if i think about it further -- would a server even be needed? how about all transactions strictly via email?
    since the "volume" will be pretty low
    send email attachment, then "Submit" scripted button invokes their desktop email client if they have one,
    or just give the instruction to re - send the now-filled-out pdf, as an attachment, back to my email --- ?

  • How to populate a set of fields multiple time in the page ?

    Hi All,
    JDev Ver : 11.1.1.5
    I have a requirement as follows,
    My page contains 1. Add Button
    2. Five fields.(one input text and four select one choice)
    The fields are like one input text and remaining select one choice. And also these fields contains validations.
    Actions
    On click of add button , I have to show the fields , similarly I have to add one more set of fields in the page below the first set when I click the add button, Like this I will add as many as I need.
    How to achieve this requirement,
    1. Do I need to generate the view objects dynamically from managed bean ?
    2. Do I need to create a custom component ?
    For Time being , I have added 3 set of fields pages and showing one by one. I want to do this dynamically.
    Please let me know the suggestion for this Requirement.
    Thanks,
    Gopinath

    Hi,
    to do this:
    1. reate a managed bean that exposes a HashMap property. The HashMap is of type e.g. Map<Person>
    2. To create a new set of fields, add a new entry to the HashMap and refresh the af:form. The af:form contains and af:forEach that you use
    to iterate as often as you have entries in the HashMap. Each text field you bind to #{bean.HashMapProperty['key'].attribute}, for example
    #{bean.HashMapProperty['key'].FirstName}
    #{bean.HashMapProperty['key'].LastName}
    #{bean.HashMapProperty['key'].EmployeeId}
    3. When the user updates a field, the HashMap is updated based on the "key"
    4. The managed bean should be in viewScope and referenced from the field's value property
    Frank

  • CRM R12.0.6  Map Type does not exist in the value set

    Hi Everyone
    When attempting to access Service Request Types in our CRM UAT Release 12.0.6 environment an error message appears referring to 'Value General for the flexfield segment does not exist in the value set'.
    Checked the flexfields for the value set but did not set up a value for MAP_TYPES
    Checked our PROD environment but no value set up as above.
    Currently in progress of mapping service requests to responsibilites in UAT, could this be the cause and how to resolve? No mapping as yet for service requests set up in PROD. Has anyone else experienced this?
    Thanks very much, Louise

    Hi IWolbers,
    >>I have a recurring problem where all of a sudden I can no longer see the values of my variables when I debug my unit tests. I cannot find a pattern as to when this happens but I experience this across one of every 20 tests that I write. Occasionally
    this has also happened during normal debbuging of running code on my machine.
    So you mean that it worked well before, am I right? 
    If you debug the same app in other VS machine, does it work well? So we could make sure that whether it is related to the VS IDE.
    Please disable all add-ins in your VS IDE, and then reset your VS settings, debug it again.
    https://msdn.microsoft.com/en-us/library/ms247075(v=vs.100).aspx
    Or you could run your VS in safe mode, debug it again, at least, we could know that whether it is the add-in's issue.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx
    To make sure that it is not the project files' issue, create a new blank solution, copy the project files to the new solution, clean and rebuild the solution, check the result.
    >>Once I step over this to the next line (screen shot 2) I get the error message 'The name '[variable name]' does not exist in the current context'
    How about debugging it with "Step Into" instead of "Step Over"? Or you could add breakpoints between 234 line to 241 line, after the breakpoint is hit, check the watch window again. How about the result?
    In addition, do you check other debugger window like local or others?
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to reference a set of Flash-protected f4v files in a manifest when the files are on Cloudfront?

    I have: a self-created AMS 5.0 running on Amazon.
    Using latest OSMF player.
    I'm Using EZDRM for Flash Access protection.
    I have a dynamic bitrate f4m created with the F4F packager. It contains data for three bitrates.
    I know that my S3 bucket and Cloudfront distribution are generally working because I can play a set of non-drm files using a RTMP-style manifest
    I am successfully  issuing the license and playing the videos using that manifest when the files are located on the AMS itself.
    The working call to the manifest is this: http://media.blah.com/vod/BlahBlah/Blah.f4m
    I think the relevant portion of the manifest is this:
                      streamId="Blah-1000" 
    url="Blah-1000"
    bitrate="1000"
    bootstrapInfoId="bootstrap4543"
    drmAdditionalHeaderId="drmMetadata8495"
    I think the correct way to approach this it to leave the manifest on AMS and manually change the url in the manifest for each video file
    I've tried changing the url in the manifest to point to the cloudfront location
    http://blahblah.cloudfront.net/cfx/st/mp4:Blah
    But I simply get back: "We are unable to connect to the content you requested."
    Your guidance greatly appreciated.
    Ken Florian

    Hi,
    I created a project (JDeveloper) with local xsd-files and tried to delete and recreate them in the structure pane with references to a version on the application server. After reopening the project I deployed it successfully to the bpel server. The process is working fine, but in the structure pane there is no information about any of the xsds anymore and the payload in the variables there is an exception (problem building schema).
    How does bpel know where to look for the xsd-files and how does the mapping still work?
    This cannot be the way to do it correctly. Do I have a chance to rework an existing project or do I have to rebuild it from scratch in order to have all the references right?
    Thanks for any clue.
    Bette

  • How to copy FDM setting (import format, dimension mapping, control table)

    Dear All,
    How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
    I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
    Thanks your help

    If you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
    Sub MapExtractor()
    'UpStream WebLink Custom Script:
    'Created By:      SatyaK
    'Date Created:      12/08/09
    'Purpose: This Script will produce a Account Map File for
    '                         the current location.
    'Execute the export
    strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
    End Sub
    -------------

  • How to show regions markers in Google maps based on longitude and latitude. on-click of region marker i want to display all the country locations based on the region from share point list?

    Hello every one,
    In My requirement i am having  some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field.  I want to display all the region
    markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
    Thanks in advance,
    Venu.

    Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
    http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
    http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
    Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
    also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
    GeoData API with the JavaScript Bing Maps control:
    http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
    http://rbrundritt.wordpress.com

  • HT204053 The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now?

    The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now? Or should we? 5 macbooks, 2 ipads, 4 iphones, 2 itouch, 2 imacs.   How does one decide what to sync, share and what not to? Green Jeans.

    You need to start by understanding the distinction between iTunes and iCloud - Apple confuse the issue by referring to 'iTunes Match' as part of iCloud. It isn't.
    You don't have to have the same login (Apple ID) for iTunes and iCloud; many people don't and there's no problem about it.
    Your iCloud ID gets you email, calendars, contacts, iWork documents and PhotoStream syncing between devices.
    Your iTunes ID gets you the iTunes Store, the App Store for iOS, the Mac App Store for OSX,, 'iTunes in the Cloud' (downloading of purchased items to any logged-in device) and 'iTunes Match' (uploading of songs not purchased in the iTunes Store).
    Your family members can easily each get their own iCloud account to keep email etc. separate - in each case they will need a different non-Apple email address (a free one from Yahoo etc. would do) to set up the ID. If they are sharing a Mac they need to be using a separate user account.
    They can have their own iCloud accounts and still all sign into the same iTunes account: or they can open their own iTunes accounts using their new iCloud Apple IDs.
    BUT they cannot transfer items purchased under the present iTunes ID to different iTunes IDs.

  • 865PE NEO2 need help on findout how to get the memory set to dual and a bit of overclocking

    hello everyone all`s it is i need some advice how to find out that my motherboard is set right and my memory is set to dual. at the moment i have my memory 3200 512ram in DIMM 1 A and in DIMM 3 B can anyone tell me if this is right for my motherboard (865PE NEO2 ) and can anyone tell me the best setting to have to overclock my system at the moment i have 2.5 proccesor overclocked to 2.7.

    Your memory is in the correct location for Dual Channel.
    Btw, providing us your full system and PSU specs will be better for us to give you directions.

  • How can I connect my Mac Book Pro (year 2008) to the TV set through  HDMI? I've seen a DVI to HDMI iwire but I'm no sure that it is correct. Could anyone help me? Thank you very much.

    How can I connect my Mac Book Pro (year 2008) to the TV set through  HDMI? I've seen a DVI to HDMI iwire but I'm no sure that it is correct. Could anyone help me? Thank you very much.

    I do not know the iWire adapter, but I use an inexpensive ($3) DVI to HDMI adapter from Monoprice, along with a regular HDMI cable:
    http://www.monoprice.com/products/product.asp?c_id=104&cp_id=10419&cs_id=1041902 &p_id=2029&seq=1&format=2
    Be aware that this will only transfer video. You Macbook Pro cannot combine audio through DVI to HDMI. You will need to listen to the audio through the Mac speakers, or attach speakers or a sound system to the Mac earphone jack, or determine if your TV has the ability to accept external sound from the Mac while showing video through HDMI (few can).

  • How do I make the Shuffle Setting on my iTunes More Random?

    Hi,
    I've just recently got my iPod classic (finally) and I love it! But, I have a question about iTunes. My question is: How do I get the shuffle setting in my iTunes to be more random? I have "The iPod Book" by Scott Kelby and looked this up, but I have the fourth edition, and so the picture for the iTunes > Preferences > Playback > picture is not the same as mine. I can't find the bar to slide the shuffle setting to more random or as Apple puts it " least likely". Not that it's the most important topic in the world, but I already have a total of almost 1500 songs and I'm still having to skip because I have music from the same album or the same song(s) popping up about 4 tracks later. This is really frustrating since part of the reason I bought it was to listen to ALL my music shuffled, but instead I spend more time switching through my music to finally get to something different. Does anybody know how to do this with the new iTunes version? Also to clarify, I have already searched through the automatic help that's offered in iTunes and nothing is coming up that helps me, and I've tried searching Support here on the website and ll I get is how to either turn shuffle on or tech support for having an iPod shuffle, not how to make it more random

    I took a play list of 3500 songs and sorted first by album name and then by track.
    Is there some reason you think you needed to sort by Album first?
    As soon as you sort on any other column, iTunes doesn't care you sorted this first. It is now ignored.
    I don'dt know if we have a semantics problem
    We don't.
    Sorting by Album first then sorting by Track # sorts by Track #  and Album name as the secondary sort.
    You don't need to first sort by Album.
    THIS DOES NOTHING!
    When you sort by Track #...
    Abbey Road -Track 1
    Americana - Track 1
    Anthology - Track 1
    Abbey Road -Track 2
    Americana - Track 2
    Anthology - Track 2
    Therefore both the primary and secondary sorts mean something.
    Correct.
    You are not selecting the secondary sort. Sorting by Track #, the secondary sort is always Album.
    Try this.
    Sort by Artist then sort by Track #.
    It is now sorted as above.
    Sorting by 1 column then another does absolutely nothong (except take a few more mouseclicks).
    I rest my case.

Maybe you are looking for