100000 records resuletset giving problem ?

Hello All,
I am using oracle database, windows 2000, OC4J(Oracle Containers for j2ee) Application Server. When I query a emp table which has 100000 records and store the 100000 records in resultset and using a while loop
if I iterates through the resultset to store each emp record in emp bean array then my application hangs at this point so I am unable to form a emp bean array of 100000 records. What is the reason ?
Also, I am getting 'OutOfMemoryError' exception at the client side(jsp) when I am trying iterate over a vector that stores each of 100000 emp records as inner vector. I tried to increase my system page file size(virtual memory) to 1GB but this didnt help. So how to avoid this error in windows2000 and on unix box.
Thanks and Regards,
Kumar.

I think you need to close any connection to the db, before starting your while loop,
while loop takes long time than the "for" loop, now while you are in "while" loop the dbConn is opened, this will couse out of memory when others trying to open new db conn,
maybe you need to move your ResultSet to ann other object like Vector of class objects, then close the conn.
hope this will help

Similar Messages

  • 100000 records resultset giving problem ?

    Hello All,
    I am using oracle database, windows 2000, OC4J(Oracle Containers for j2ee) Application Server. When I query a emp table which has 100000 records and store the 100000 records in resultset and using a while loop
    if I iterates through the resultset to store each emp record in emp bean array then my application hangs at this point so I am unable to form a emp bean array of 100000 records. What is the reason ?
    Also, I am getting 'OutOfMemoryError' exception at the client side(jsp) when I am trying iterate over a vector that stores each of 100000 emp records as inner vector. I tried to increase my system page file size(virtual memory) to 1GB but this didnt help. So how to avoid this error in windows2000 and on unix box.
    Thanks and Regards,
    Kumar.

    I'd guess the reason is memory related. The simple answer to your question is "don't do that!" Why would the user ever want to look at 100,000 records? If the result of a user request would give such a large number of hits, your app should ask the user to refine the search criteria.
    Even if browsing 100,000 rows really is a requirement (which seems doubtful), why read them all at one pass? You could store a reasonable number (e.g. 1,000) and request a new read every 1,000 records. Alternatively, store the 100,000 in a disk file and page from there.

  • 10000 records Table giving problem ... ?

    Hello All,
    I am using oracle database, windows 2000, OC4J(Oracle Containers for j2ee) Application Server. When I query a emp table which has 100000 records and store the 100000 records in resultset and using a while loop
    if I iterates through the resultset to store each emp record in emp bean array then my application hangs at this point so I am unable to form a emp bean array of 100000 records. What is the reason ?
    Also, I am getting 'OutOfMemoryError' exception at the client side(jsp) when I am trying iterate over a vector that stores each of 100000 emp records as inner vector. I tried to increase my system page file size(virtual memory) to 1GB but this didnt help. So how to avoid this error in windows2000 and on unix box.
    Thanks and Regards,
    Kumar.

    You might want to see the responses to this post by some other person who seems to have exactly the same problem as you.

  • 10000 records resultset giving problem

    Hello All,
    I am using oracle database, windows 2000, OC4J(Oracle Containers for j2ee) Application Server. When I query a emp table which has 100000 records and store the 100000 records in resultset and using a while loop
    if I iterates through the resultset to store each emp record in emp bean array then my application hangs at this point so I am unable to form a emp bean array of 100000 records. What is the reason ?
    Also, I am getting 'OutOfMemoryError' exception at the client side(jsp) when I am trying iterate over a vector that stores each of 100000 emp records as inner vector. I tried to increase my system page file size(virtual memory) to 1GB but this didnt help. So how to avoid this error in windows2000 and on unix box.
    Thanks and Regards,
    Kumar.

    I agree with all the above posts, you shouldn't never ever try to store 10K or more result objects in memory, let alone generate a web page containing all of those results. Filter it already in the database level, or if you'll showing unfiltered data, give the user a scrollable "window" into the results, just as pretty much every web page does.
    If the data is pretty homogenous, you might even try using a pattern like Flyweight from GoF.
    Anyway, if for some ungodly reason you decide to do it, try increasing the heap size of your JVM with the -Xms and -Xmx parameters. For example java -Xms100m -Xmx512m will set your minimum heap size into 100 megabytes and maximum into 512 megabytes.
    .P.

  • Query is taking 4 minute to update 100000 records.

    Hi Experts,
    Query  is taking 4 minutes to update 100000 records.
    Please help me.How to improve the performance of this query.
    Please help me.
    Thanks.

    Most of your time seems to be spent on the nested loop join between the old and new data - and the "actuals" show that this was a bad choice of join mechanism introduced by a very bad estimate of the number of rows returned by the first join to product_SDS.
    It would be useful to see the predicate section of the in-memory plan, but my best guess from the information given is that the estimate is bad because Oracle has used the "independent predicates" multiplication of selectivity on
    PDS.DTPS_ID ='PROCESSED'
    PDS.PD_ID = 4
    PDS.DESCP IS NOT NULL
    PDS.STCK_CD IS NOT NULL
    PDS.UNIT IS NOT NULL
    It's possible that a column group (extended_statistics) on some subset of these 5 columns would address the cardinality problem sufficiently well that the optimizer would switch to a hash join.  Alternatively it's possible that the estimates are bad because you need a couple of histograms - this might also explain the discrepancy on the indexed access between the estimated 16,739 rows and the actual 128K rows.  Columns to consider are: PDS.SO_ID, and PDS,DTOS_ID
    Bottom line - the run-statistics row counts suggest you should be doing a hash join between the old and new data - the run time information suggests quite strongly that the optimizer needs some help with statistics
    Regards
    Jonathan Lewis

  • SHARED MEMORY AND DATABASE MEMORY giving problem.

    Hello Friends,
    I am facing problem with EXPORT MEMORY and IMPORT MEMORY.
    I have developed one program which will EXPORT the internal table and some variables to the memory.This program will call another program via background job. IMPORT memory used in another program to get the first program data.
    This IMPORT command is working perfect in foreground. But  it is not working in background.
    So, I have reviewed couple of forums and I tried both SHARED MEMORY AND DATABASE MEMORY.  But no use. Still background is giving problem.
    When I remove VIA JOB  parameter in the SUBMIT statement it is working. But i need to execute this program in background via background job. Please help me . what should I do?
    pls find the below code of mine.
    option1
    EXPORT TAB = ITAB
           TO DATABASE indx(Z1)
                FROM   w_indx
                CLIENT sy-mandt
                ID     'XYZ'.
    option2
    EXPORT ITAB   FROM ITAB
      TO SHARED MEMORY indx(Z1)
      FROM w_indx
      CLIENT sy-mandt
      ID 'XYZ'.
       SUBMIT   ZPROG2   TO SAP-SPOOL
                      SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
          *_VIA JOB name NUMBER number*_
                       AND RETURN.
    ===
    Hope every bidy understood the problem.
    my sincere request is ... pls post only relavent answer. do not post dummy answer for points.
    Thanks
    Raghu

    Hi.
    You can not exchange data between your programs using ABAP memory, because this memory is shared between objects within the same internal session.
    When you call your report using VIA JOB, a new session is created.
    Instead of using EXPORT and IMPORT to memory, put both programs into the same Function Group, and use global data objects of the _TOP include to exchange data.
    Another option, is to use SPA/GPA parameters (SET PARAMETER ID / GET PARAMETER ID), because SAP memory it is available between all open sessions. Of course, it depends on wich type of data you want to export.
    Hope it was helpful,
    Kind regards.
    F.S.A.

  • HT1222 I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit

    I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit and sometimes it vanishes automatically. I,m confused.
    Secondly i have an update IOS 7.0.4 waiting in my Software Update menu. I have tried so many times to update my iphone but it always fails to update the IOS 7.0.4. Any body suggest anything regarding this

    Wow. Lots of help. Thanks apple

  • Fullname giving problem

    Hi,
    I am getting problem while setting the fullname attribute of the user while creating and assigning the resources [AD,Domino,LDAP]. i am using PeopleSoftActiveSync Resource, which is our Authoritative source. whenever a new entry comes to PeopleSoft, i have to create an Account in IDM and to all the resources. I am using Process Rule to call the create WorkFlow from where i am calling different Sub Process for creating resources. but some of the resources are giving problem and the error which i am getting using "WF_ACTION_ERROR" says "Missing required Attribute Fullname".
    Eventhough i am setting fullname attribute while creating the IDM account. But the resources are assigned properly.
    Please help me.....

    Hello Srinivasa
    Two years ago I had the very same problem when I added a new field to an already existing and filled customer table. I debugged the maintenance view and saw that the new field contained an undefined value but not the initial value.
    You could try and use the DB utility (<b>SE14</b>) and activate the table again (of course without deleting the table entries).
    Alternatively, you could write a simple ABAP to initialize the field value, e.g.:
    DATA:
      gs_mchb   TYPE mchb,
      gt_mchb    TYPE STANDARD TABLE OF mchb.
      SELECT * INTO TABLE gt_mchb.
      gs_mchb-zvbeln_inquiry = ' '. " space
      MODIFY gt_mchb FROM gs_mchb
        TRANSPORTING zvbeln_inquiry
        WHERE ( zvbeln_inquiry ne ' ' ).
      UPDATE mchb FROM TABLE gt_mchb.
    Regards
      Uwe

  • I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • My previous Visa was giving problems. I introduced a new visa and still my account is blocked. Can you help me?

    Hello,
    My previous credit card (Visa) was giving problems.
    I introduced the details of a new card and still my account is blocked, so I can't use the programs.
    Can you help me solve this problem please?
    Thank you.

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Nokia 9500-Speaker giving problem

    I have Nokia 9500, 2 years old and its speaker has started giving problems. I have got it repaired from Nokia Care point about 7 times and it works fine for 2-3 days, then it goes bad. Care point guys are not able to figure out the problem. Let me know if anyone of you have experienced this. Also how do i directly report this to Nokia, since care point guys are clueless

    what is the exact problem can you let us know in detail
    tongue is too confused on what to speak

  • Shockwave flash keeps giving problems

    I have read all the articles about the shockwave flash problem but it keeps giving problems, saying it is busy or does nt react anymore, continue or stop.
    If I continue nothing happens, if I stop the web-page disapears.
    Should I use another browser ? I'm fond of Firefox but what to do?
    I'm using W 8.1 and the latest Flash (15.0.0.152)
    Thank you in advance for reacting.
    Jan M Reerink

    You can check for problems with current Shockwave Flash plugin versions and try this:
    *check for updates for your graphics drive drivers<br>https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    See also:
    *http://kb.mozillazine.org/Flash#Troubleshooting
    You can also try to uninstall and reinstall Flash
    *http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    Note that this will remove all installed Flash players.
    You can find the latest Flash player versions for Firefox on this page:
    *http://www.adobe.com/special/products/flashplayer/fp_distribution3.html

  • New Record in Database problems

    Hi All:
    I am new to Appleworks, I have been building a Database and everything was working fine, but suddenly everytime I try to enter a New Record instead of giving me Blank Field it repeats a record I have entered before, and I can't seem to get a clean new record. I am sure I am not duplicating it. I am typing Command R
    Thanks a lot
    Alex Neuman

    Hi,
    As much as I use and appreciate Apple hardware and software products, I must say that the Database section of AppleWorks is flaky and needs work. I suspect this will never happen given that iWorks is now Apple's front-runner. As far as I know iWorks doesn't have a db module anyway. I use Appleworks (db) in my work as music contractor as well as for invoicing and other routine applications. Until recently everything was fine. Then I built a db that had a whole lot more fields and formulae and was designed to account for just about any variable that might crop up when paying an orchestra. It was very frustrating. The problem arose when trying to delete fields. I finally came up with a workable db but it's bloated since it contains many unused fields that have been converted to "text" fields. They simply can't be deleted or AW crashes.
    It's important to me to have a different db for each job I'm handling due to confidentiality, so it's imperative that I be able to open an existing db, delete all records, save under a new name, and then proceed to customize the new db to suit the needs of the new job. Appleworks hasn't been up to the task. I've mentioned this before on this forum.
    Enter Filemaker Pro. There's a demo available. It's a much more fully implemented db front end: multiple tables per file, easy (and very familiar to AW users) to use interface, and perhaps best of all, great options for importing and exporting data.
    That's where I'm spending my next few bucks.
    RW

  • In import commit 100000 records

    Dear Friends,
    Please let me know whether in import any method is there to commit records for an interval of records say 100000. If we use commit=y and each table has 5M records, it take multiple days to complete.
    And if we don’t give commit=y, it requires enough memory buffers. Please let me know some good soln.
    Thanks
    VK

    Please use buffer parameter for this
    For more details:- http://www.oracleutilities.com/OSUtil/import.html
    Thanks
    Dattatraya Walgude

  • Commit in procedures after every 100000 records possible?

    Hi All,
    I am using an ODI procedure to insert data into a table.
    I checked that in the ODI procedure there is an option of selecting transaction and setting the commit option as 'Commit after every 1000 records'.
    Since the record count to be inserted is 38489152, I would like to know is this option configurable.
    Can i ensure that commits are made at a logical step of 100000 instead of 1000 records?
    Thank You.
    Prerna

    recently added on this
    http://dwteam.in/commit-interval-in-odi/
    Thanks
    Bhabani
    http://dwteam.in

Maybe you are looking for

  • Fatal error while running Test JSP in Jdeveloper

    Hi, After performing initial jdeveloper set ups when I run the test JSP i get following error It prompts about Port conflict. Upon clicking OK I get following error Fatal Error: Unable to write to the transaction log (/E:/p4045639_11i_generic/jdevhom

  • JEditorPane with automated linewrapping and no horizontal scroll bar.

    Hello. I am working with a JEditorPane which is added insisde a JScrollPane, the thing is that i want to have [1]Automatic line wrapping, although this works good with the method .setText(String str) i am not using that method, instead of that i pref

  • How to find CK40N release date.

    Hi Team, I have a query regarding CK40N here on which date we have released i want to know this date where we can get this date. In table or in CK40N pls advice me. Regards, Nauma.

  • Call abap method in a javaScript Function

    Hi all, I want call a abap method via a javaScript function in a view of a bsp application. Does someone know how it works? regards Alex

  • Upgrade to v 5

    immediately after upgrade to v.5 I got the following message ( see attached). I do not understand the meaning and konsequence.