OCI Array Fetch Sample Code.

OCI Array Fetch Sample Code.

Post by Lijia » Thu, 27 Jun 2002 04:47:22



Hi,

I'm trying to select 100k records from Oracle 9i via OCI. I used
prefetch method, but it's way too slow. Can I use array fetch to
improve the performance? Does anyone know where I can find some sample
code?

Thanks a lot,

Lijia

 
 
 

OCI Array Fetch Sample Code.

Post by Sybrand Bakke » Thu, 27 Jun 2002 08:26:24



Quote:>Hi,

>I'm trying to select 100k records from Oracle 9i via OCI. I used
>prefetch method, but it's way too slow. Can I use array fetch to
>improve the performance? Does anyone know where I can find some sample
>code?

>Thanks a lot,

>Lijia

In the OCI documentation?

Regards

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address

 
 
 

OCI Array Fetch Sample Code.

Post by Lijia » Thu, 27 Jun 2002 22:45:27




> >Hi,

> >I'm trying to select 100k records from Oracle 9i via OCI. I used
> >prefetch method, but it's way too slow. Can I use array fetch to
> >improve the performance? Does anyone know where I can find some sample
> >code?

> >Thanks a lot,

> >Lijia

> In the OCI documentation?

> Regards

> Sybrand Bakker, Senior Oracle DBA

> To reply remove -verwijderdit from my e-mail address

In the documentation, it does not give any sample for array fetch, I'm not sure
how to establish array fetching of a table with 8 fields, that's why I hope I
can find some sample code as reference.

Thanks,

Lijia

 
 
 

1. OCI 815/804 prefetch/array fetching performance

We have created a program to do a simple fetch of 49000 rows from the
database over net8 using TCP/IP.  We compared the fetch times for the
OCI 8 Prefetch/Array fetch vs OCI7 ofen call.  We find the performance
of Oracle 8 terrible (up to 50% degradation in fetch times). We tried 7
client/7 server and 7 client/8 server and 8 client/8 server.  In both
instances, using 7 client is quicker than using 8 client.  The 8
versions we tried were 8.1.5 and 8.0.4. The 7 version was 7.3.4.  We
see the same behaviour on Solaris and NT.
Has anyone seen the sorts of performance impact we have seen or has an
idea what is causing the problem.

Thanks
Natalia

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Retrieving Data

3. OCI Array Fetches ?

4. Setting Classpath Variable for java.sql.* package

5. OCI ofen array fetch performance

6. help:dropping a table in PL/SQL?

7. OCI Array Fetches ?

8. HELP! : Converting .dbf files in VICTOR system to DOS

9. OCI 815/804 prefetch/array fetching performance

10. Wanted: Sample of array-fetch using OCI8 (non Pro*C)

11. OCI Sample code in C++/C

12. Oracle8 OCI -- sample code?

13. Array fetch vs. single row fetch