Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> ODBC CLOB issues and SELECT retrieval speed

ODBC CLOB issues and SELECT retrieval speed

From: Tom McClelland <tom.mcclelland_at_mondas.com>
Date: 8 Feb 2002 01:17:30 -0800
Message-ID: <cb748650.0202080117.50340b46@posting.google.com>


I've ported an ODBC app to Oracle 9i and I have the following issues:

  1. You can't insert a CLOB whose name is a reserved word using ODBC. You get a driver error because the driver attempts internally to reference the column without quoting it up even though I quote it up in my insert statement.
  2. If you use blocking (SQL_ATTR_ROWSET_SIZE) then sometimes you have to do a supplementary SQLGetData call to retrieve CLOBS where you didn't allocate enough memory to start with. Making this call alters the variable indicated by SQL_ATTR_ROWS_FETCHED_PTR which is not correct as far as I can see, there is no mention of this possibility in my copy of the ODBC programmers guide.
  3. Despite using SQLBindCol and SQL_ATTR_ROWSET_SIZE and various settings for Prefetch Count in the driver retrieval of multiple rows seems desparately slow at only around 400-500 records/second. (Dell twin 800Mhz server). Turning off SQL_ATTR_ROWSET_SIZE reduces retrieval to 150 records/second which seems laughable so I must be doing something wrong.

All help gratefully received. Received on Fri Feb 08 2002 - 03:17:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US