COMMIT and PERFORMANCE and BAPI UPDATE

When looping through  about 10 000 documents it goes initially quite fast but in the end it is very slow. Is it a basis problem?
Initially it takes about 0,5 sec and in the end each document update takes about 20 sec. In total about 15 hours!
My basis consultant says I should do a commit as seldom as possible. But I want to do it after each document (=a LUW?). I could add a counter and do a commit each 100:th document, but I do not like it.
Pseudo logic.
loop at itab (about 20 000 recs)
..CALL FUNCTION 'BAPI_CTRACDOCUMENT_CHANGE'
..Update of a ZTABLE
..COMMIT WORK.
..GET RUNTIME+display RUNTIME-diff
endloop.

Hi mikael,
1. My basis consultant says I should do a commit as seldom as possible
Yes, they are right.
If we don't do commit,
then,
in the database, the rollback area
goes on increasing, increasing,
and occupies memory and gets slow.
2. I could add a counter and do a commit each 100
Thats the best practical solution.
The figure 100 or 50 or 200 etc,
one has to figure out practically.
regards,
amit m.

Similar Messages

  • Application size in terms of pages and performance and Version Control

    Currently I'm looking into the best way to version control our APEX applications. From other threads, it seems it's an area that leaves much to be desired. We are on the verge distributing a large APEX project commercially but I cannot find a suitable versioning method to support bug fixes and new development happening at the same time to the same set of applications. I just hope everyone out there realises versioning is a vital area of the development process and VOTES for it in the V3 poll.
    Anyway, enough of the my whinging. I did have a brain wave (quite rare !). What would the drawback be to have only 1 or 2 pages per application. This would allow a developer to always import the application at the start of work (ie from versioning software such as VSS or PVCS) and then export it at the end back into say PVCS. The application has everything self contained and correct versions etc.
    This would allow more developers to work on different areas at the same time as opposed to having many pages in the one application where developers could step on each others toes etc. I've considered importing/exporting pages but the fact you cannot lock shared objects means there is a possibility that if many developers are working on the same application someone will change something that affects pages other than their own. It would also be a nightmare to tie up different versions of of pages, shared objects, applications etc. Would there a performance problem with this method ? Incidentally, why can't TABS be shared/subscribed across applications. It means they have to be created separately in each application whereas things like Nav Bars and Templates can be shared across applications.
    Currently, my thoughts are that: bug fixing for a production release has to be in a separate stream (apex installation) from say new development work for the same set of applications BUT what this means is that the bug fixes have also to be manually applied in the new development stream - which is a considerable overhead (ie twice the work).
    Thanks for hearing me out - assuming you survived to the end !
    Any encouraging comments would be appreciated !

    Wim,
    I don't entirely understand the behavior. There should be little/no difference between the two cases. I'm assuming you have no indexes, which isn't recommended for such large containers anyway. Can you make your document set available to me so I can see if I can reproduce the behavior and look at it more closely? A single container, or dbxml_dump of a container is sufficient (both compress well).
    Contact me directly at george dot feinberg at you know where.
    George

  • Memory and Performance, and Arrays of Objects.

    I have a Class called ChannelObject. The Class has 15 to 20 primitive types. Each object of this class represents data read in from a file or received over a network. I don't know how many of these objects will be created, it could be anywhere between 0 and 5 million.
    Which would be a better way to store these objects?
    1. In an ArrayList(since it's dynamic and I can add to it when I have data, but I've read that an ArrayList isn't good when you're adding the same type of object) or
    2. A very large array(that could be mostly empty and wasted space)
    3. Or another option?
    I am concerned about the speed and memory of this program since it has the possibility of processing a great deal of data.
    Thank You in Advance!

    My ChannelObject Class has several primitive types.
    long time;
    float elevation;
    float meas1;
    float meas2;
    float meas3;
    float meas4;
    boolean statusFlag;
    ... There about 10 more variables.
    int crc;
    The Constructor for my Class takes a DataInputStream, checks the crc to verify the data, and then breaks the DataInputStream into the primitive types.
    Once I have read in the hole file or collected a day or more of data from the network, I want to scroll through the data and modify some of the data using a kalman filter and another smoothing filter. I receive a new data point once a second. This package is a building block for several other programs that will use it. Some of those programs will want to sue a days worth of data and some will want 3 months.
    The data will be in order of time(I hope), and there is the possibily that I will have no data from either a network outage or the site that sends us the data can crash.
    When scrolling through the data I will start at the first time(I'm assuming that's the first Object in my list), and using the initial states of my kalman filter, I will modify meas1 and meas2. Now that I have data I will update the constraints of the filter using this time and I will move onto the next time and repeat the process. Once I finish this run, I will have to do another run that will use my smoothing filter and modify meas3 and meas4. Both filters are dependent on time/order of the data.
    I hope I explained this well enough.
    Thanks
    PS: If anyone knows of a Kalman Filter class that's already been written, I'd appreciate not having to migrate my c version. Thanks Again!

  • Commit work and wait after bapi execution not working

    Hi experts,
    I have a requirement from my client that consists on posting 2 documents and then clearing them.
    Right now Iu2019m posting the first 2 documents using BAPI_ACC_DOCUMENT_POST and for clearing both documents Iu2019m using Tcode F-51 but sometimes it's giving me an error clearing the documents because after the second bapi run, posting the second document, apparently all went right and a document number it's returned but the database doesnu2019t updated the doc number.
    Iu2019m using commit work and wait, and already tried BAPI_TRANSACTION_COMMIT,  but it doesnu2019t work sometimes, and the only solution that i found was the Wait up 1 second command , which it's slowing the program execution.
    i think the problem it's on the bapi posting execution, due to a lag on the database side, but Iu2019m not sure...
    Did anyone already had this problem? Has anyone has a solution for this?
    Thanks in advance
    Best Regards
    João Martins

    Hi,
    Normally every BAPI will work on Update task so that the data will be updated once the commit work is done. For the commit work, we will normally call the bapi function module - BAPI_TRANSACTION_COMMIT. It should work.
    In your case, just try the below option:
    Please call the bapi - BAPI_ACC_DOCUMENT_POST & BAPI_TRANSACTION_COMMIT in a seperate function module and call this function module in your program (just pass the import / export / table parameters accordingly).
    For the information, I had once a similar type of issue and it got solved once I did like the above.
    Regards,
    Selva K.

  • My friend have new Macbook Air with OSX Mavericks and I have Macbook Pro with OSX Mountain Lion, Can I create a bootable maverick in pendrive from macbook air and perform a clean installation/update on my macbook pro with osx mountain lion?

    I have late 2012 edition Macbook Pro, I have a internet connection with does not run smoothly It gets disconnected and reconnects Thus I failed everytime when I update my OSX Mountain Lion to Mavericks in App Store. My friend just bought 2013 end Macbook Air whicch have OSX Mavericks pre installed.
    I was hoping if I can create a OS X version in pendrive from his laptop and use that to install and thuss also update OS on my Mountain Lion.
    Kindly explain me in detail how to perform this.
    I have already taken back up of all files and I am ready to total clean my laptop.
    And I want to update to Maverick so I can thus further update to upcoming OS X Yosemite.

    The Mavericks on the Air is probably machine specific since it came pre-installed, so it wouldn't work on your computer. See if your friend will let you access the App Store, where you can sign in using your Apple ID and download the installer. You can use this free program to copy the installer and update your computer.
    Bootable USB Flash Drive – Diskmaker X

  • I performed a software update and the system is installing an update but it has been running for over 24hrs and keeps saying "This may take a few minutes, don't shut down your computer" Can anyone help?

    I performed a software update and the system is installing an update but it has been running for over 24hrs and keeps saying "This may take a few minutes, don't shut down your computer" Can anyone help?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • I attempted to perform the itunes update on two different PCs and itunes will no longer open and I received a message to reinstall itunes. The reinstall did not work and I now receive a Runtime error message (R6034) re: library loading incorrectly. Help?

    I attempted to perform the itunes update on two different PCs. Itunes will no longer open and prompted me to reinstall itunes.  The reinstall did not work after several attempts and I received an error: "Runtime error R6034. An application has made an attempt to load the C Runtime library incorrectly. Please contact the application's support team for more information."  Has anyone else had this issue? How can I resolve it?

    I've been having the same exact problem this morning, and from the looks of it a lot of other people are posting about this issue, so I don't know if it's maybe something wrong with the download but I'm just relieved that it seems to be that instead of a corruption issue with my windows installation.  I'm just wondering how long this will take to be resolved.

  • I can't open NEF files with PS Elements9 (Mac) and have just performed all avail. updates

    I can't open NEF files with PS Elements9 (Mac) and have just performed all avail. updates.  What to do?

    Many thanks!!!  This works and is probably the best fix for now.  Thank you!!!
    Date: Wed, 30 Jan 2013 10:58:01 -0800
    From: [email protected]
    To: [email protected]
    Subject: I can't open NEF files with PS Elements9 (Mac) and have just performed all avail. updates
        Re: I can't open NEF files with PS Elements9 (Mac) and have just performed all avail. updates
        created by 99jon in Photoshop Elements - View the full discussion
    For the D600 NEF's you have two alternatives: (1) Upgrade to PSE 11. (2) Download and install the free Adobe DNG converter to convert your raw files to the Adobe universal Raw format and the files will open in all versions of PSE (keep your originals as backups and for use in the camera manufactures software)  Windows download click here DNG Converter 7.3  Mac download click here DNG Converter 7.3  You can convert a whole folder of raw images in one click. See this quick video tutorial: You Tube click here for DNG Converter tutorial
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5034913#5034913
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5034913#5034913
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5034913#5034913. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • [svn:cairngorm3:] 21115: updating the md5 and metadata and swc release ( just in case, we missed anything in our last commit)

    Revision: 21115
    Revision: 21115
    Author:   [email protected]
    Date:     2011-04-21 09:13:29 -0700 (Thu, 21 Apr 2011)
    Log Message:
    updating the md5 and metadata and swc release (just in case, we missed anything in our last commit)
    Modified Paths:
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/3.0.18/cairngorm3-3.0.18.pom
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/3.0.18/cairngorm3-3.0.18.pom.m d5
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/3.0.18/cairngorm3-3.0.18.pom.s ha1
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/cairngorm3/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/1.4/contract-1.4.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/1.4/contract-1.4.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/1.4/contract-1.4.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/contract/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/0.16/integration-0.16.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/0.16/integration-0.16.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/0.16/integration-0.16.swc.sha 1
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/integration/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/0.16/integrationParsle y-0.16.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/0.16/integrationParsle y-0.16.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/0.16/integrationParsle y-0.16.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/integrationParsley/maven-metadata.xml.sha 1
        cairngorm3/maven-repository/com/adobe/cairngorm/libraries/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/libraries/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/libraries/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/module/0.15/module-0.15.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/module/0.15/module-0.15.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/module/0.15/module-0.15.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/module/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/module/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/module/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/1.4/navigation-1.4.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/1.4/navigation-1.4.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/1.4/navigation-1.4.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigation/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/1.4/navigationParsley-1 .4.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/1.4/navigationParsley-1 .4.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/1.4/navigationParsley-1 .4.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationParsley/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/1.4/navigationSpringAS -1.4.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/1.4/navigationSpringAS -1.4.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/1.4/navigationSpringAS -1.4.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSpringAS/maven-metadata.xml.sha 1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/1.4/navigationSwiz-1.4.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/1.4/navigationSwiz-1.4.swc .md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/1.4/navigationSwiz-1.4.swc .sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/navigationSwiz/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/1.14/observer-1.14.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/1.14/observer-1.14.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/1.14/observer-1.14.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/observer/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/1.14/observerParsley-1.14 .swc
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/1.14/observerParsley-1.14 .swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/1.14/observerParsley-1.14 .swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/observerParsley/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/1.13/popup-1.13.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/1.13/popup-1.13.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/1.13/popup-1.13.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/popup/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/1.13/popupParsley-1.13.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/1.13/popupParsley-1.13.swc.m d5
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/1.13/popupParsley-1.13.swc.s ha1
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/popupParsley/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/task/1.10/task-1.10.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/task/1.10/task-1.10.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/task/1.10/task-1.10.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/task/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/task/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/task/maven-metadata.xml.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/1.13/validation-1.13.swc
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/1.13/validation-1.13.swc.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/1.13/validation-1.13.swc.sha1
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/maven-metadata.xml
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/maven-metadata.xml.md5
        cairngorm3/maven-repository/com/adobe/cairngorm/validation/maven-metadata.xml.sha1

    word!
    second that.
    This is really hard to follow, even for us who keep an eye on every update and read every single post and have an imagination of update problems out there.
    You tried to make digitalpublishing.acrobat.com (the "dashboard") the one-stop place for downloading and updating all necessary tools. good idea to make this the central point, because adobe.com download sections is a pain in the arse when trying to find updates for secondary tools like the DPS.
    also, make it super-duper clear what version is the current and what versio are currently available. I already wrote about lining up version numbers months ago and you seem to get this working — but it is still a mess. 1.7 vs 1.1.7 vs. 2.0 vs. drop17 vs. 11.4.2.201111104_m_670635 7.5.5.16 (you can imagine where I took the latter from)
    Peter: The bold line in the sticky forum message was added later, as I recall.
    —Johannes

  • Firefox performed an automatic update on my machine and now my firefox will not connect to the internet

    today firefox performed an unexpected update and now it doesn't work (connect to the internet)

    See --> [https://support.mozilla.com/en-US/kb/Cannot%20connect%20after%20upgrading%20Firefox Cannot connect after upgrading Firefox]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Performance Assessment - "Performance and Potential Update in TMC" for VC

    Hi All,
    I am interested in using the "Performance and Potential Update in TMC" enhancement follow-up processing on a Performance Assessment form for a VC object rather than the VA object. I have always got this to work for the VA but so far not for VC. WE put a debugger on BAdI HRHAP00_FOLLOW_UP but it appears this only gets called when you use Follow-Up from the Appraisal Documents menu in PHAP_ADMIN if your Final Appraisal and Progress Potential are not in the VA object.
    Any advice much appreciated!
    Kind regards,
    Luke

    SAP have informed us that the Follow-up BAdI requires a new implementation to specify the VC object.

  • Forms and Reports: Automated Test tools - functionality AND performance

    All,
    I'm looking to get a few leads on an automated test tools that may be used to validate Oracle forms and reports (see my software configuration below). I'm looking for tools that can automate both functional tests and performance. By this I mean;
    Functional Testing:
    * Use of shortcut keys
    * Navigation between fields
    * Screen organisation (filed locations)
    * Exercise forms validation (bad input values)
    * Provide values to forms and simulate user commit, and go and verify database state is as expected
    Performance Testing:
    * carry out tests for fixed user load
    * carry out tests for scaled step increase in user load
    * automated collection of log files and metrics during test
    So far I have:
    http://www.neotys.com/
    Thanks in advance for your response.
    Mathew Butler
    Configuration:
    Red Hat Enterprise Linux x86-64 architecture v4.5 64 bit
    Oracle Application Server 10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle Developer Suite (Oracle Forms and Reports) V10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle JInitiator 1.3.1.17 or later
    Microsoft Internet Explorer 6

    are there any tools for doing this activity like oracle recommended tools?
    Your question is unclear.  As IK mentioned, the only tool you need is a new version of Oracle Forms/Reports.  Open your v10 modules in a v11 Builder and select Save.  You now have a v11 module.  Doing a "Compile All PL/SQL" before saving is a good idea, but not required.  The Builders and utilites provided with the version 11 installation are the only supported tools for upgrading your application.  If you are trying to do the conversion of many Forms files in a scripted manner, you can use the Forms compiler in a script.  Generating new "X" files will also update the source modules (fmb, mmb, pll).  See MyOracleSupport Note 955143.1
    Also included in the installation in the Forms Migration Assistant.  Although it is more useful to people coming from older versions, it can also be used to move from v10 to 11.  It allows you to select more than one file at a time.  Documentation for this utility can be found in the Forms Upgrade Guide.
    Using the Oracle Forms Migration Assistant

  • Any suggestions about this program to improve performance and effective cod

    CREATE OR REPLACE PACKAGE SEODS02.ODS_ACCOUNT
    AS
    Package Name : ODS_ACCOUNT
    /* Description : This procedure will be called to move the data from */
    /* ACCT_ALT_ID_STG (staging) table to ACCT_ALT_ID table and EODS_ACCT */
    /* table for all new accounts */
    /**************** Change History ***********************************/
    /* Date Version Author Description */
    /* 15-04-2011 1.00 Lakshmi Draft version */
    -- Global Specifications.
    package_name_in VARCHAR2(50) :='ODS_ACCOUNT';
    v_cntl_schema VARCHAR2(30) :='SCNTL02';
    v_location INTEGER := 10;
    -- Procedure Specifications.
    PROCEDURE INSERT_SURR_ACCTS (job_name_in IN VARCHAR2,
    proc_cd_in IN VARCHAR2,
    proc_step_cd_in IN VARCHAR2,
    bch_dte_in IN DATE,
    fl_nbr_in IN NUMBER,
    verbose_log_flag_in IN INTEGER,
    pred_check_req_in IN INTEGER,
    ibd_id_in IN NUMBER,
    proc_step_status_out OUT INTEGER,
    sp_hier_inout IN OUT VARCHAR2);
    END ODS_ACCOUNT;
    CREATE OR REPLACE PACKAGE BODY SEODS02.ODS_ACCOUNT
    AS
    Procedure Name : INSERT_SURR_ACCTS
    Description : This procedure will be called to move the data from
    ACCT_ALT_ID_STG (staging) table to ACCT_ALT_ID table
    and EODS_ACCT table for all new accounts.
    Release Date : 27 MAY 2011
    Created By : C2119810
    PROCEDURE INSERT_SURR_ACCTS (job_name_in IN VARCHAR2,
    proc_cd_in IN VARCHAR2,
    proc_step_cd_in IN VARCHAR2,
    bch_dte_in IN DATE,
    fl_nbr_in IN NUMBER,
    verbose_log_flag_in IN INTEGER,
    pred_check_req_in IN INTEGER,
    ibd_id_in IN NUMBER,
    proc_step_status_out OUT INTEGER,
    sp_hier_inout IN OUT VARCHAR2)
    AS
    /* Local Variables Declaration*/
    v_curr_date DATE := CURRENT_DATE;
    procedure_name_in VARCHAR2(30) := 'INSERT_SURR_ACCTS';
    stat_code_in VARCHAR2(30);
    proc_step_start_out NUMBER(1);
    proc_step_upd_out NUMBER(1);
    error_msg_in VARCHAR2(1000);
    option_in VARCHAR2(30);
    v_cmit_nbr NUMBER(8);
    v_query VARCHAR2(10000);
    v_actl_inpt_cnt NUMBER(10):=0;
    v_rec_inserted_cnt_in NUMBER(10):=0;
    v_rec_errored_cnt_in NUMBER(10):=0;
    v_proc_step_upd_out NUMBER(1);
    handled_exception EXCEPTION;
    CURSOR c1 IS
    SELECT *
    FROM acct_alt_id_stg
    WHERE fl_nbr = fl_nbr_in AND
    alt_acct_rec_proc_flag = 'N' AND
    eods_acct_rec_proc_flag = 'N' AND
    to_date(bch_dte,'DD-MON-YY') <= bch_dte_in;
    TYPE sttg_cursor IS TABLE OF acct_alt_id_stg%ROWTYPE;
    sttg_array sttg_cursor;
    BEGIN
    /* Enable the logging if verbose log flag is 0*/
    IF verbose_log_flag_in = 0 THEN
    DBMS_OUTPUT.ENABLE();
    ELSE
    DBMS_OUTPUT.DISABLE();
    END IF;
    /* Start the Insert Surrogate Accounts process step after all the predecessor process steps are complete */
    ODS_CONTROL_UTILITY.PROC_STEP_START( proc_cd_in => proc_cd_in,
    proc_step_cd_in => proc_step_cd_in,
    ibd_id_in => ibd_id_in,
    bch_dte_in => bch_dte_in,
    job_name_in => job_name_in,
    verbose_log_flag_in => verbose_log_flag_in,
    pred_chk_reqd_in => pred_check_req_in,
    proc_step_stat_out => proc_step_start_out,
    sp_hier_inout => sp_hier_inout);
    IF proc_step_start_out = 0 THEN
    dbms_output.put_line('Process Step '|| proc_step_cd_in ||' started for Process '||proc_cd_in);
    error_msg_in := 'Error in reading Commit point';
    v_query := 'SELECT proc_cmit_nbr FROM '||v_cntl_schema||'.proc
    WHERE proc_id = '|| chr(39) || proc_cd_in || chr(39) ||
    ' AND ibd_id = '|| ibd_id_in;
    EXECUTE IMMEDIATE v_query INTO v_cmit_nbr;
    dbms_output.put_line('Comit point number is : '||v_cmit_nbr);
    OPEN c1;
    LOOP
    FETCH c1 BULK COLLECT INTO sttg_array LIMIT v_cmit_nbr;
    FOR i IN 1..sttg_array.COUNT LOOP
    error_msg_in := 'Error in inserting ACCT_ALT_ID table';
    INSERT INTO acct_alt_id (acct_alt_id, ibd_id, acct_alt_id_cntx_cde, eods_acct_id, data_grp_cde, crte_pgm, crte_tstp, updt_pgm, updt_tstp)
    VALUES (sttg_array(i).acct_alt_id, sttg_array(i).ibd_id, sttg_array(i).acct_alt_id_cntx_cde, seq_eods_acct_id.nextval, sttg_array(i).data_grp_cde, job_name_in, v_curr_date, job_name_in, v_curr_date);
    error_msg_in := 'Error in inserting EODS_ACCT table';
    INSERT INTO eods_acct (eods_acct_id, acct_typ_cde, data_grp_cde, updt_dte)
    VALUES (seq_eods_acct_id.currval, sttg_array(i).acct_typ_cde, sttg_array(i).data_grp_cde, v_curr_date);
    error_msg_in := 'Error in Updating process flag in ACCT_ALT_ID_STG table';
    UPDATE acct_alt_id_stg
    SET alt_acct_rec_proc_flag = 'Y',
    eods_acct_rec_proc_flag = 'Y',
    updt_pgm = job_name_in,
    updt_tstp = v_curr_date
    WHERE acct_alt_id = sttg_array(i).acct_alt_id
    AND acct_alt_id_cntx_cde = sttg_array(i).acct_alt_id_cntx_cde
    AND fl_nbr = sttg_array(i).fl_nbr;
    /*Incrementing the count of records inserted*/
    v_actl_inpt_cnt := v_actl_inpt_cnt + 1;
    v_rec_inserted_cnt_in := v_rec_inserted_cnt_in + 1;
    END LOOP;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    /* Update the count of records inserted and total processed count to proc_step_exec table. */
    ODS_CONTROL_UTILITY.PROC_STEP_UPDATE (proc_cd_in => proc_cd_in,
    proc_step_cd_in => proc_step_cd_in,
    ibd_id_in => ibd_id_in,
    bch_dte_in => bch_dte_in,
    job_name_in => job_name_in,
    status_in => 'IN PROCESS',
    rec_inserted_cnt_in => v_rec_inserted_cnt_in,
    actl_inpt_cnt_in => v_actl_inpt_cnt,
    verbose_log_flag_in => verbose_log_flag_in,
    pred_chk_reqd_in => pred_check_req_in,
    proc_step_upd_out => proc_step_upd_out,
    sp_hier_inout => sp_hier_inout);
    IF proc_step_upd_out = 0 THEN
    COMMIT;
    ELSE
    error_msg_in := 'Issue in updating process step '||proc_step_cd_in||' for process '||proc_cd_in;
    option_in := 'proc_step';
    v_location := 30;
    RAISE handled_exception;
    END IF;
    ODS_CONTROL_UTILITY.PROC_STEP_UPDATE (proc_cd_in => proc_cd_in,
    proc_step_cd_in => proc_step_cd_in,
    ibd_id_in => ibd_id_in,
    bch_dte_in => bch_dte_in,
    job_name_in => job_name_in,
    status_in => 'COMPLETED',
    verbose_log_flag_in => verbose_log_flag_in,
    pred_chk_reqd_in => pred_check_req_in,
    proc_step_upd_out => v_proc_step_upd_out,
    sp_hier_inout => sp_hier_inout);
    IF v_proc_step_upd_out = 0 THEN
    COMMIT;
    dbms_output.put_line('Data has been successfully inserted into ACCT_ALT_ID and EODS_ACCT tables');
    proc_step_status_out := 0;
    ELSE
    error_msg_in := 'Issue in ending process step for process ' || proc_cd_in || ' and process step '|| proc_step_cd_in;
    option_in := 'others';
    v_location := 40;
    RAISE handled_exception;
    END IF;
    ELSE
    error_msg_in := 'Issue in starting the process step for process ' || proc_cd_in || ' and process step '|| proc_step_cd_in;
    option_in := 'others';
    RAISE handled_exception;
    END IF;
    EXCEPTION
    WHEN handled_exception THEN
    IF c1%ISOPEN THEN
    CLOSE c1;
    END IF;
    ROLLBACK;
    DBMS_OUTPUT.ENABLE();
    ODS_CONTROL_UTILITY.COMM_SP_EXCEP_HNDLR(package_name_in => package_name_in,
    procedure_name_in => procedure_name_in,
    location_in => v_location,
    error_mesg_in => error_msg_in,
    proc_cd_in => proc_cd_in,
    proc_step_cd_in => proc_step_cd_in,
    ibd_id_in => ibd_id_in,
    option_in => option_in,
    job_name_in => job_name_in,
    bch_dte_in => bch_dte_in,
    sp_hier_inout => sp_hier_inout);
    sp_hier_inout :=
    CASE
    WHEN sp_hier_inout IS NULL THEN package_name_in || '.' || procedure_name_in
    WHEN sp_hier_inout IS NOT NULL THEN package_name_in || '.' || procedure_name_in || '-->' || sp_hier_inout
    END;
    proc_step_status_out := 1;
    WHEN OTHERS THEN
    IF c1%ISOPEN THEN
    CLOSE c1;
    END IF;
    ROLLBACK;
    error_msg_in := error_msg_in||' : '||SQLCODE || ' : '||SQLERRM;
    DBMS_OUTPUT.ENABLE();
    option_in := 'proc_step';
    ODS_CONTROL_UTILITY.COMM_SP_EXCEP_HNDLR(package_name_in => package_name_in,
    procedure_name_in => procedure_name_in,
    location_in => v_location,
    error_mesg_in => error_msg_in,
    proc_cd_in => proc_cd_in,
    proc_step_cd_in => proc_step_cd_in,
    ibd_id_in => ibd_id_in,
    option_in => option_in,
    job_name_in => job_name_in,
    bch_dte_in => bch_dte_in,
    sp_hier_inout => sp_hier_inout);
    sp_hier_inout :=
    CASE
    WHEN sp_hier_inout IS NULL THEN package_name_in || '.' || procedure_name_in
    WHEN sp_hier_inout IS NOT NULL THEN package_name_in || '.' || procedure_name_in || '-->' || sp_hier_inout
    END;
    proc_step_status_out := 1;
    END INSERT_SURR_ACCTS;
    END ODS_ACCOUNT;
    /

    I assume that the parts taking time are in the
    FOR i IN 1..sttg_array.COUNT LOOP In here you do 2 INSERTs and an UPDATE for every loop...
    If you LOOP 1 Mill tiimes (how many??) then you do 2 Mill single inserts and 1Mill sinlge UPDATES.
    A trace with TKPROF will tell you details.
    You better do an INSERT ALL to do the two inserts and a MERGE to do the UDPATE. NO LOOP!!! That will reduce the code and maximize performance by a magniture.

  • DB Links, transactions and performance

    Environment: Multiple 8.1 DBs across multiple servers
    We were looking at creating an application architecture that would have a central database (Hub), that would attach to multiple external databaases using database links. Our front-end application would perform all transaction using a library of stored procs in the Hub database. These stored procs would create the appropriate links to the remote DBS, and performs the reads/writes/updates. There are many reasons (political and otherwise) that we are looking at this architecture.
    I'm new to Oracle, and specifically DB Links.
    Will Oracle handle the transaction integrity if the transaction spanned multiple DBs via links?
    Are there any performance issues with this architecture?
    Anything else I should know about links?
    Note: I have tested the current configuration, and am able to establish the links without problem.
    - Mike

    This is a hug topic and you really ought to read the documentation. This is a good place to start:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96521/ds_txns.htm#919
    Here are answers to your immediate questions.
    (1) Oracle handles data integrity through two-phase commit, which ensures that a given transaction can commit across all affected databases or else it rolls back.
    (2) Obviously there are performance issues. The co-ordination for the two-phase commit means that each transaction takes longer to complete. Part of this impact is pure unavoided overhead, the rest is down to the geographical spread of the system and the quality of teh wires connecting your different databases. Also the number of transactions failing increases in proportion to the number of nodes in your distributed system.
    (3) See doc link above
    HTH, APC

  • EXTREMELY SLOW XQUERY PERFORMANCE AND SLOW DOCUMENT INSERTS

    EXTREMELY SLOW XQUERY PERFORMANCE AND SLOW DOCUMENT INSERTS.
    Resolution History
    12-JUN-07 15:01:17 GMT
    ### Complete Problem Description ###
    A test file is being used to do inserts into a schemaless XML DB. The file is inserted and then links are made to 4
    different collection folders under /public. The inserts are pretty slow (about
    15 per second and the file is small)but the xquery doesn't even complete when
    there are 500 documents to query against.
    The same xquery has been tested on a competitors system and it has lightening fast performance there. I know it
    should likewise be fast on Oracle, but I haven't been able to figure out what
    is going on except that I suspect somehow a cartesian product is the result of
    the query on Oracle.
    ### SQLXML, XQUERY, PL/SQL syntax used ###
    Here is the key plsql code that calls the DBMS_XDB procedures:
    CREATE OR REPLACE TYPE "XDB"."RESOURCEARRAY" AS VARRAY(500) OF VARCHAR2(256);
    PROCEDURE AddOrReplaceResource(
    resourceUri VARCHAR2,
    resourceContents SYS.XMLTYPE,
    public_collections in ResourceArray
    ) AS
    b BOOLEAN;
    privateResourceUri path_view.path%TYPE;
    resource_exists EXCEPTION;
    pragma exception_init(resource_exists,-31003);
    BEGIN
    /* Store the document in private folder */
    privateResourceUri := GetPrivateResourceUri(resourceUri);
    BEGIN
    b := dbms_xdb.createResource(privateResourceUri, resourceContents);
    EXCEPTION
    WHEN resource_exists THEN
    DELETE FROM resource_view WHERE equals_path(res, privateResourceUri)=1;
    b := dbms_xdb.createResource(privateResourceUri, resourceContents);
    END;
    /* add a link in /public/<collection-name> for each collection passed in */
    FOR i IN 1 .. public_collections.count LOOP
    BEGIN
    dbms_xdb.link(privateResourceUri,public_collections(i),resourceUri);
    EXCEPTION
    WHEN resource_exists THEN
    dbms_xdb.deleteResource(concat(concat(public_collections(i),'/'),resourceUri));
    dbms_xdb.link(privateResourceUri,public_collections(i),resourceUri);
    END;
    END LOOP;
    COMMIT;
    END;
    FUNCTION GetPrivateResourceUri(
    resourceUri VARCHAR2
    ) RETURN VARCHAR2 AS
    BEGIN
    return concat('/ems/docs/',REGEXP_SUBSTR(resourceUri,'[a-zA-z0-9.-]*$'));
    END;
    ### Info for XML Querying ###
    Here is the XQuery and a sample of the output follows:
    declare namespace c2ns="urn:xmlns:NCC-C2IEDM";
    for $cotEvent in collection("/public")/event
    return
    <cotEntity>
    {$cotEvent}
    {for $d in collection("/public")/c2ns:OpContextMembership[c2ns:Entity/c2ns:EntityIdentifier
    /c2ns:EntityId=xs:string($cotEvent/@uid)]
    return
    $d
    </cotEntity>
    Sample output:
    <cotEntity><event how="m-r" opex="o-" version="2" uid="XXX541113454" type="a-h-G-" stale="2007-03-05T15:36:26.000Z"
    start="2007-03-
    05T15:36:26.000Z" time="2007-03-05T15:36:26.000Z"><point ce="" le="" lat="5.19098483230079" lon="-5.333597827082126"
    hae="0.0"/><de
    tail><track course="26.0" speed="9.26"/></detail></event></cotEntity>

    19-JUN-07 04:34:27 GMT
    UPDATE
    =======
    Hi Arnold,
    you wrote -
    Please use Sun JDK 1.5 java to perform the test case.Right now I have -
    $ which java
    /usr/bin/java
    $ java -version
    java version "1.4.2"
    gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
    sorry as I told you before I am not very knowledgeable in Java. Can you tell me what setting
    s I need to change to make use of Sun JDK 1.5. Please note I am testing on Linux
    . Do I need to test this on a SUN box? Can it not be modify to run on Linux?
    Thanks,
    Rakesh
    STATUS
    =======
    @CUS -- Waiting for requested information

Maybe you are looking for

  • Corrupted image in applet from web cam

    Hi there I created a little webcam server application that listens to port 8080 for requests, then displays an image. The image is jpeg encoded frame grabbed from a logitech web cam using the java media framework. I got the code from this forum. I ha

  • ATI Graphics ROM Question

    Hi all, I was just wondering if this was normal...I never noticed this before, so I figured I should ask. In System Profiler, my video cards ROM is listed as follows: ATI Radeon X1600, 256mb ROM Revision: 113-xxxxxx-158 Are all those x's normal? Than

  • 2.0.1 update is breaking iMac

    Hi I just got the 2.0.1 iPod touch update it downloaded fine but when it goes to install my iMac goes to a kernel panic, should I re-download it again and try? I dont want it to break my iMac again Thanks

  • Syntax error in code

    Hi everyone, Can anyone please tell me what is the syntax error in the following code when run in 11g. FUNCTION plch_func (check_in IN BOOLEAN) RETURN VARCHAR2 AS BEGIN RETURN CASE WHEN check_in THEN '123' WHEN TRUE THEN '456' --WHEN SYSDATE < plch_n

  • Bit rates in Compressor using H264

    I have an HD media player that can only handle files up to 4GB (fat32). I need to compress 30 minutes of 1080P HD footage to around 3.6 GB. The problem I keep running into is the complex footage in the finished video. I'm trying to create a H264 file