Maintaining load order.

Hello,
Through SQL*Loader, I'm trying to load data from an ASCII file into an Oracle table (having no indexes/triggers/constraints). It seemed that order of inserted rows in the table is maintained with respect to rows in the ASCII file.
But when done parallelly (using PARALLEL=TRUE), to cut down time, the order is not maintained.
My task requires that the load should be quick (PARALLEL) and the order of rows inserted in the table should match those in the ASCII file.
Is this possible?
Thanks

Oracle does not have an inherent order to rows. For a table without an index or primary key Oracle does NOT guarantee the order of the rows that are returned with a query.
Your observation that 'order of inserted rows in the table is maintained' is not strictly accurate. Although you may observe that the 2nd time you run a 'select * from tablea' query the rows may be returned in the same order as the first time you ran the query Oracle does not guarantee that the order will be the same and you should not rely on it.
The only way to ensure that a desired order is being used is to add a column to the table to hold a record number.
Then you can use SQL Loader's RECNUM column type to during the load process to populate the column (i.e. record_no RECNUM). This column will then have the equivalent of the ROWNUM that is generated from normal queries.
Good luck!

Similar Messages

  • Load orders at Customer Location (type 1010)

    Hello All,
    We are trying to load orders at our VMI location through the BAPI  : BAPI_POSRVAPS_SAVEMULTI3
    But we are geeting some errors related to Location type 1010. Does someone have exerience in loading orders through this BAPI at location tpye 1010 ?  Does this BAPI support the location type 1010
    Please advise if there is some other way to to this.
    Regards,
    Asheesh

    Hi Asheesh,
    Is the products & locations maintained with location type 1010?  If you not, you need to maintain the same and then execute the bapi.
    Regards
    R. Senthil Mareeswaran.

  • BPM: maintain process order in BPM

    Hi folks,
    If you have multiple messages coming in a BPM, how do you maintain the order of processing?
    Thanks,
    Aarhyn

    >
    Aarhyn wrote:
    > If you have multiple messages coming in a BPM, how do you maintain the order of processing?
    >
    Check this help section on how to manage the inbound processing in case of a BPM:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/1a97be109921a0e10000000a1553f6/content.htm
    Regards,
    Abhishek.

  • Target Load order is not working properly in 11.2.0.2

    Hi,
    Mappings whihc are migrated from OWB10.2 version to 11.2 which contains multiple targets are not working in accordance with the target load order given in the mapping.
    The order in which targets are loaded changes between execution.
    To test is this a problem with migration we had created a smaple mapping containg 3 targets and mentioned loading order in each target table as well as in mapping property.
    The order in which the targets are loaded was random. But when we have 2 targets it seems to be working. But for migrated maps this is also not working.
    Is there any bug reported in 11.2.0.2 for this issue? Any help is highly appreciated.
    Thanks and Regards,
    Pnreddy

    Target load ordering is set to false by default in 11.2.
    You need to set it to true if you want your mapping to use it.

  • Profit Center was not maintained during order n billing creation.

    Dear, Gurus
    I'm facing a problem of Profit Center. User created a service material, maintenance contract. They created a Billing Document as it is order related billing. Accounting document was not generated when saving invoice. When I got to the bottom of this I realized no costing tabs were ever maintained for material type services. (Henceforth no Profit Center in Sales Order n Invoice).
    I have done the necessary config n assignments but question now is what should I do as in billing doc  the field is greyed out it will not allow me to assign Pr Center now. I am thinking that this may work if I cancel the billing document and then go back to sales order and try and changing the field, then re-create the invoice. I'm trying to avoid canceling. Is there any program, bapi, user exit I may use to re assign or make system re check the MM while saving invoice to allow accounting document to be created?  This is one scenario.
    2nd scenario is similar but in the case of this contract everything was made. Accounting document was cleared even but with some dummy weird Profit Center. (No proft center in Order nor invoice.) Whole problem at first in this scenario is User saying everything is complete so status in doc flow should show maintenance contract as complete but wasn't. it showed being processed. I discovered no completion rule was maintained. I maintained E Full target value referenced but status still has not changed any idea guys? (New config not showing on old existing data only show on new document, concept?) Is there a program or anything to make system update status doc flow? aside from this Profit center  incompletion log is coming in Contract. Not maintained in order or invoice.

    In one of my earlier projects, a similar requirement was putforth by users and we had developed a zee tcode to change the profit center in billing document via SM30 which can be done only by FI authorised users.
    I am reproducing the said program as under:-
    REPORT  "ZPROFIT_CHG"
    TABLES : VBRP.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS : SO_VBELN FOR VBRP-VBELN OBLIGATORY.
    PARAMETERS:      P_PRO LIKE VBRP-PRCTR OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF IT_VBRP OCCURS 0,
            VBELN LIKE VBRP-VBELN,
            POSNR LIKE VBRP-POSNR,
            PRCTR LIKE VBRP-PRCTR,
          END OF IT_VBRP.
    DATA COUNT(3).
    DATA W_MESSAGE(30).
    START-OF-SELECTION.
      LOOP AT SO_VBELN.
           IF SO_VBELN-LOW CA '~`!@#$%^&*()_+|\=-><,.;":' OR SO_VBELN-HIGH CA '~`!@#$%^&*()_+|\=-><,.;":'.
               MESSAGE 'Special character not allowed' type 'S'.
               LEAVE LIST-PROCESSING.
               STOP.
           ENDIF.
      ENDLOOP.
      IF P_PRO CA '~`!@#$%^&*()_+|\=-><,.;":'.
               MESSAGE 'Special character not allowed' type 'S'.
               LEAVE LIST-PROCESSING.
               STOP.
      ENDIF.
      SELECT B~VBELN B~POSNR B~PRCTR FROM VBRK AS A  INNER JOIN VBRP AS B ON A~VBELN EQ B~VBELN INTO CORRESPONDING FIELDS OF TABLE IT_VBRP
                                WHERE A~VBELN IN SO_VBELN
                                AND   A~FKART EQ 'ZFF2'
                                AND   A~FKSTO NE 'X'.
      IF SY-DBCNT EQ 0.
          MESSAGE 'NO DATA FOUND' TYPE 'S'.
          LEAVE LIST-PROCESSING.
      ENDIF.
      SORT IT_VBRP BY VBELN.
      DELETE ADJACENT DUPLICATES FROM IT_VBRP COMPARING VBELN.
      CLEAR COUNT.
      IF IT_VBRP[] IS NOT INITIAL AND P_PRO IS NOT INITIAL..
          LOOP AT IT_VBRP.
              UPDATE VBRP SET PRCTR = P_PRO  WHERE VBELN = IT_VBRP-VBELN AND POSNR = IT_VBRP-POSNR.
              IF SY-SUBRC = 0.
                 COUNT = COUNT + 1.
              ENDIF.
              COMMIT WORK.
              CLEAR IT_VBRP.
          ENDLOOP.
    ENDIF.
    IF COUNT IS NOT INITIAL.
        CONCATENATE 'No Of Records Updated Is - ' COUNT INTO W_MESSAGE.
        MESSAGE I000(ZSFL) WITH W_MESSAGE.
    ELSE.
        MESSAGE 'No Records Updated' TYPE 'S'.
    ENDIF.
    Since I am so weak in ABAP coding, not sure whether the above coding is correct.  You need to check with your ABAPers and develop this logic.  This should work.
    thanks
    G. Lakshmipathi

  • Maintain attribute order in XML with a structure?

    I'm using xmlParse() to read an XML file into a structure, and then process the structure (replace some of the XML attributes) and then write the structure back out as an XML file. The problem is that I loose the original ordering of XML attrbutes when I convert to a structure, and instead end up with a new attribute order for each element that is alphabetical.
    In otherwords: <element c="text" d="text" a="text" />
    gets rewritten as: <element a="text" c="text" d="text" />
    which is a problem for this application.
    Is there a way to work with XML in CF but maintain attribute ordering (LinkedHashMap instead of a structure, maybe)?
    Thanks.
    Walter

    but using ColdFusion to process XML in this way is making a pretty big change in the XML structure.
    No, it's not changing the structure in any meaningful way: the attribute ordering isn't meaningful in XML, so if the order of them changes, then that's not a meaningful change.  In any way that XML should be used, it doesn't matter.
    When CF reads an string (like file contents) and parses it as XML, it needs to create an XML object; that XML object will adhere to the rules of XML; one of which is "atribute order has no significance", so it will not (and ought not) bother to "remember" the order that the attributes were in in the original string.  When one converts that object back into a string, some sort of ordering needs to be used to write them back, and CF seems to arbitrarily use alphabetical order.  But it cannot refer back to information that it doesn't have (the original ordering), so the original ordering can't be preserved.
    There's nothing unreasonable or that shouldn't be expected in this process, unfortunately (for you, I mean).
    Adam

  • Undesired Load order of  FLV and MP3s

    Hello
    I have added a scrolling Flash page with a FLV and several
    MP3 files in each their own player to site below.
    I have set the video to autostart.
    The MP3s are set to not autostart.
    When I export the FLA the swf nicely plays the video first,
    and the mp3s are loading in the background simultaniously.
    When viewing the page in Firefox and Netscape the same
    happens, just as intended.
    Problem:
    But in IE and Safari all the sound files are loading first
    (and not playing) and not until they are fully loaded will the
    video start loading and playing. This results in viewing an empty
    video window for a long time.
    1) Is there are way to make all browsers load the video first
    and play it first?
    2) And in general manage load order of video and audio files
    in a Flash file?
    Thank you on beforehand.
    ggaarde
    http://www.corpstory.com/video.htm

    no, the sounds wouldn't be playing until you used the start()
    method of those sound instances or you assigned the source property
    of your mediaplayer and you wouldn't want to do either until your
    flv completed play.
    in fact, it would be optimal to first load one sound: the mp3
    that follows the flv. then when that sound completed loading, load
    the 2nd sound.

  • Load Order in a mapping

    any one has done a SINGLE MAPPING WITH multiple SOURCE TO multiple target
    like      source a TO target a
         source b TO target b
         source c TO target c
    in an order, which is first a should be feeded, THEN b and so ON...
    we have load order in Paris to resolve this, I'd like to know is there ANY way we can do it with 10GR1

    I dont think there is anything like load order in 10gR1 but when i had similer problem we sorted that out with use of process flow by spliiting the mappings.
    If you know a better way out then do let me know.
    I have come across a previous thread in the forum on the same issue which says that we can not control load control WITHIN the mapping and OWB decided it by default in the order in which objects are drppoed on canvas!!!!!!!!!!!!!!

  • SWF Load order.

    Hello all,
    I have a group of FC outputs that I have used to create a virtual tour of my client's showroom here:
    electronic-lifestyle.com
    But the SWF files I have linked in the FXP are loading from back to front.  The last Page is loading first and the first loads last creating some issues.  I have one more pass I need to maker to fix some glitches with the vertical scroll bar and several other points but I need to know if I can adjust the order in which the SWF files load into the page.  I would prefer they load when called for but if that is not possible I would like to load from the first page to the last.
    On an associated thought, is it possible to create a progress bar in FC or Flash that will give the viewer some feed back on the SWF files loading in.  Right now the area is blank until they arrive.
    I have a feeling that this level of control is something achieved in Flash Builder, not in FC.  That is fine, I am planning on importing the file into FB to enable deep linking anyway but since there is no round trip function I figured I would get all of the FC work finished first, then go into FB and make whatever changes need to happen there.
    It is starting to seem silly that the two programs were separated to begin with.  It seems a natural evolution that Catalyst and Builder be joined into the same application sometime in the near future.  Once the round trip issue is taken care of, why not just work toward combining the two apps?
    Anyway, if someone could give me a pointer on the load order issue that would be wonderful.
    Thanks,
    Brett

    dmcdonald wrote:
    > Is there a way to dictate load order of html page?
    No.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • BAPI to maintain Internal Order

    Hi.
       Which BAPI I can use to maintain internal order?I know there is BAPI_INTERNALORDER_CREATE for create.If there is no BAPI for this, then how can I maintain it?Using BDC?

    Hi,
    I could find ALE_INTERNALORDER_DB_CHANGE function module. I have not used this myself, plus this one looks like making changes to DB. So please analyze the impacts, before using this one for changes.
    Regards
    Sreekanth

  • Why did Apple OS loose the ability to adjust load order of login items

    In OS X.3.9 I was able to adjust the load order of log in items.
    I can't do this in OS X.4.11. I would like to adjust two items Mozy and Yahoo! Widgets so that they load last. Although all my log in items including them load they hesitate while Mozy and Yahoo widgets load. I would like to make Yahoo widgets load very last and Mozy next to last.

    Another approach which might work would be to delete some, most, or all of your current set of login items and replace them with a single Automator workflow, one set up to open individual applications in a predetermined order.
    The workflow would be comprised solely of separate *Launch Application* actions (from Automator's Finder library) and might look like this:
    1) *Launch Application* -- click the popup button and select the first application you'd like to open.
    2) *Launch Application* -- select the next application you'd like to open.
    3) *Launch Application* -- 3rd app.
    4) *Launch Application* -- etc, etc, until you reach the last application, which could be Yahoo! Widgets.
    From Automator's File menu select Save As > File Format: Application, and add the saved Automator applet to your login items.
    Good luck.

  • Not allowed to move load order of Control panels in System Preferences Tige

    I post here because System refuses to let me post in Tiger forum depite my being a forum member since purchasing my G4-500 new just a few months after coming out.
    The problem is associated with my PowerBook17" bought new March a year ago. I currently am running 10.4.6 Tiger.
    On my G4-500 using Panther 3.9 I am allowed to drag and drop the load order of extension and control panel in System > Accounts > Startup items, at will.
    If I try the same thing on my PowerBook 17" It want let me Drag or if I do get it appear to drag what it does instead is remove from the list.
    Suggestions?

    How do I mark one portion of my question as being answered ( the part so named in the subject line.) and one part as not part about not being able to get into sub category so far as adding a question.
    You can use the Helpful buttons without using Solved. Solved will result in your thread being marked as answered, Helpful won't. It is possible to mark a question answered without marking any posts as helpful or solved. You would do this if you found the solution somewhere other that the thread with the question. It is good form to post what the solution is so that others can benefit. You can go back & "unmark" a question as answered, but I'm not sure if there is a time limit from the time you originally marked it answered.

  • Java Load Order

    Hi All,
    We are trying to override existing OOTB method through our custom component but system is calling the OOTB method only. Below are the ways we tried to call our custom component method, request you to advice us where we are making mistake.
    Problem statement:
    There is a method public void abc() in class SomeHandler. This is OOTB class provided by Oracle. This is getting used in service XYZ with action as 3:abc::4:null
    We created a custom service handler CustomSomeHandler and overwritten this method. We also increased the load order of this custom service handler to 200.
    We tried below approaches, but nothing is working.
    1) Approach 1
    public class CustomSomeHandler extends ServiceHandler {
    public void abc(){
    2) Approach 2
    public class CustomSomeHandler extends SomeHandler{
    public void abc(){
    }

    When you define a service handler, there is no loadOrder... there is searchOrder. Therefore, you need to set it a number that is lower than the method you're trying to override.
    Also, make sure you're merging your configuration table to the ServiceHandlers table...

  • Parent-Child Apps and Classloading...Wrong load order?

    Ah, everyone's favourite two oracle topics slammed into one. I've been using Oracle's parent-child application deployment for some time, to reasonable success in Oracle App Server 9.0.4. Though screwing about with the classloaders in this way usually fills me with dread, the benefits of developing child apps in isolation from the parent are excellent.
    In general I have always deployed in the following way:
    server.xml
    <application name="msip-app" path="../applications/msip-app.ear" parent="default" start="true" />
    <application name="msip-services" path="../applications/msip-services.ear" parent="msip-app" start="true" />
    default-web-site.xml
    <web-app application="msip-app" name="msip-web" load-on-startup="true" root="/msip" />
    <web-app application="msip-services" name="msip-services" load-on-startup="true" root="/msip-ws" />
    orion-application.xml (parent app)
    <library path="./msip-web/WEB-INF/classes" />
    <library path="./msip-web/WEB-INF/lib" />
    (Note: this generic approach has always worked...)
    Now I am trying to upgrade to oc4j 10.1.3.x, and I seem to be trapped in configuration hell. OC4J now appears to load the child application first, which inevitably screws up the classloader for the parent app. Surely this doesn't make any sense, as the parent app is the dependency and should be started first?!
    I haven't discovered any way to control the load order for apps in the config files; the only workaround is to set the load-on-startup for the child app to "false". This is fine, until I redeploy through Oracle EM, which switches load-on-startup back to true. Again, there doesn't seem to be any way in deployment to control this parameter!
    Why in the heck would oc4j have changed it's load priority for parent child apps? Is there any way to force load order through config? Am I just crazy and no one else has seen this?
    Help.

    Thanks for the reply. Gave that a look, but unfortunately, that link concerns a problem at a lower level than the one I've encountered. A classloading problem alerted me to what I believe is a bigger issue, namely that oc4j appear to be launching my child app before the parent app, and this consistently screws up the initialisation phases for both ear files. This appears to be an explicit decision in the Oracle app loader about which war file (parent or child) to launch first, but for the life of me, I can't find the offending code by decompiling oc4j.
    If it turns out that this intentional, surely this must be a mistake? The parent app is the dependency and must be loaded first! or I missing something big...

  • Load order in wls 7 sp4

    Hi,
    I have a strange problem with the load order in wls 7.0 sp4. I have 2 ear files
    ear1 and ear2.
    I have one war file in each of the ear files. I set the load order of ear1 to
    1000 and ear2 to 100. I see the load order in the console correctly, but I dont
    see the value in config.xml. So, i edited the value and added it manually.
    Even after that, I have the problem where a servlet in the war file of ear1 is
    executing ahead of ear2 during startup.
    Any ideas to fix the problem?
    thanks

    Alright:
    So I wrote up a simple small isolated reproducible test case.
    http://www.niffgurd.com/mark/work/blog/index.html
    So this is a bug, and I have filed CR125989, you will need to contact [email protected]
    to follow up on this.
    Cheers
    mbg
    "Mark Griffith" <[email protected]> wrote:
    Babu:
    There is synchronization issue between making the changes to the runtime
    mbeans via the console and when it is persisted to config.xml. There
    is a 5
    minute timer that does the actual persisting. I do believe though that
    if
    you shutdown the server gracefully we flush the writes to the config.xml.
    So after you manually added the values in config.xml you still are not
    seeing the load order being honored?
    So:
    ear1 LoadOrder=1000
    ear2 LoadOrder=100
    You want ear2 to be loaded first and then ear1 to be loaded second?
    Can you attach your config.xml and your portion of weblogic log that
    shows
    deployment?
    cheers
    mbg
    "babu" <[email protected]> wrote in message
    news:3f8edfc7$[email protected]..
    Hi,
    I have a strange problem with the load order in wls 7.0 sp4. I have2 ear
    files
    ear1 and ear2.
    I have one war file in each of the ear files. I set the load orderof ear1
    to
    1000 and ear2 to 100. I see the load order in the console correctly,but I
    dont
    see the value in config.xml. So, i edited the value and added it manually.
    Even after that, I have the problem where a servlet in the war fileof
    ear1 is
    executing ahead of ear2 during startup.
    Any ideas to fix the problem?
    thanks

Maybe you are looking for