Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2011

    Unanswered: db2 type 4 driver result set fetch size

    I m using jdbc code to retrieve records in db2 and using type 4 driver db2jcc.jar.
    Does it supports setting for fetch size on statement or prepared statement or not?

    Because i have 1 million records in my database,if the result set loads all at one shot then my java program will through out of memory exception.

    thanks in advance
    santosh kumar veerlapati

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    when declaring a cursor and fetching from this cursor there is a blocking mechanism
    I believe you get blocks of data, whenever you fetch new data
    the block is limited in size (8k I believe)
    should be verified..
    there are some topics in doc regarding this.. see
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

  3. #3
    Join Date
    Jan 2009
    Zoetermeer, Holland
    Not sure, I think you can control that with the setting of "enableRowsetSupport" described here: DB2 Database for Linux, UNIX, and Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts