Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResultSet not working

 
Makesh Kumar Ramakrishnan
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My query returns 64000 records. I am using ordinary result set object to retrieve the records. All the records are stored in to ArrayList.
After certain number of records(11000), the resultSet neither moves to next record or throws any exception. It seems to me like a weird problem. I don't know what might be the cause of the problem.

Please let me know. If you think, it might be a memory problem, then pls let me know how to increase heap memory of Oracle AS.

Oracle JDBC Drive version: 10.1.0.3.0
Java version: 1.4.2_04
Application server: Oracle AS 10.1.2.0.2

I appreciate your help

Thanks,
 
Chad Clites
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be helpful to see the code that you are using. My guess is that right around record 11000, there is a null value, and you are not getting an error because the code is not contained in a try/catch block, or the exception is being swallowed. In general, dumping results to an ArrayList is pretty straight forward.
 
Makesh Kumar Ramakrishnan
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you for your reply. I forgot inform that this problem is not consistent one. it executes for someother input. any way i posted my code below. For your information, I checked with my DBA, he said that the cursor is not closed at all. its in 'executing mode'.



Please let me know if you need any further details.


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic