OCI object cache parameters

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Aufhauser
Posts: 56
Joined: Mon 21 Nov 2005 09:44
Location: Herzogenburg, Austria

OCI object cache parameters

Post by Aufhauser » Mon 21 Nov 2005 09:56

Is it possible to modity the oci object cache parameters via ODAC?
I use ODAC to develop an application for oracle spatial in object mode.
On principle the program works fine, but I have a performance problem using tables and rows with very large spatial objects.
In OCI-documentation I found the tip to increase the object cache for better management of large objects.
So, does anybody know a way to modify these parameters via ODAC?

Thanks for every answer.

Stefan

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Tue 22 Nov 2005 12:24

To set the maximum and optimal cache size you can use the functions SetObjectCacheMaxSize and SetObjectCacheOptSize of OraObjects unit.
If you need more information please see OCI_ATTR_CACHE_MAX_SIZE and OCI_ATTR_CACHE_OPT_SIZE description in OCI documentation

Aufhauser
Posts: 56
Joined: Mon 21 Nov 2005 09:44
Location: Herzogenburg, Austria

Post by Aufhauser » Tue 22 Nov 2005 16:22

Thank you, I didn't find it in ODAC documentation!

Stefan

Post Reply