Unix Technical Forum

Oracle 10g and VB6 ADO

This is a discussion on Oracle 10g and VB6 ADO within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, We are upgrading from oracle 8 to oracle 10g. We have about 30 VB6 applications which connect to ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 09:26 AM
CollyMitch
 
Posts: n/a
Default Oracle 10g and VB6 ADO

Hi,

We are upgrading from oracle 8 to oracle 10g. We have about 30 VB6
applications which connect to our oracle 8 database.

When connecting to Oracle 9 and 10g and the app tries to retrieve a
recordset (50,000+ records), it seems to load the whole recordset into
memory (RAM), and then into virtual memory when this fills up. (I can
show you the system performance graphs.)

I know this is not a VB forum but my code works with oracle 8 and not 9
or 10 so I think maybe someone here could help.

FYI:

Using ADO2.5 (or 2.8) to connect and the "OraOLEDB.Oracle" provider.

I can post some example code if required.

Thanks,

Colm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 09:26 AM
Jim Kennedy
 
Posts: n/a
Default Re: Oracle 10g and VB6 ADO


"CollyMitch" <colmjmitchell@gmail.com> wrote in message
news:1147256377.459005.47340@i40g2000cwc.googlegro ups.com...
> Hi,
>
> We are upgrading from oracle 8 to oracle 10g. We have about 30 VB6
> applications which connect to our oracle 8 database.
>
> When connecting to Oracle 9 and 10g and the app tries to retrieve a
> recordset (50,000+ records), it seems to load the whole recordset into
> memory (RAM), and then into virtual memory when this fills up. (I can
> show you the system performance graphs.)
>
> I know this is not a VB forum but my code works with oracle 8 and not 9
> or 10 so I think maybe someone here could help.
>
> FYI:
>
> Using ADO2.5 (or 2.8) to connect and the "OraOLEDB.Oracle" provider.
>
> I can post some example code if required.
>
> Thanks,
>
> Colm
>


Not sure what you want from us. Clearly the application needs to be fixed.
It shouldn't retrieve 50K records and cache them on the client. It would be
a rare situation where that would be proper and desirable feature. I
suspect that the developer did this because they are used to MS SQLServer
where reading data can block other readers. So they grab the whole dataset
and then disconnect from SQLServer (thus freeing locks). In Oracle there is
no knead to do that. (readers don't lock writers)
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 09:26 AM
CollyMitch
 
Posts: n/a
Default Re: Oracle 10g and VB6 ADO

Hey,

Thanks for your reply.

We retrieve 50 thousand rows from oracle (we only use oracle) because
we want to download from the remote Oracle db to a local MS Access
database, removing the need for a live oracle connection and allowing
production to continue if the network is down. This may not be the most
ideal way, but it was required when the network was prone to failures.

We don't *want* to cache them on the client but load, record by record,
into the access db - the virtual memory caching is the issue we need
fixed! The issue is that it loads all the records into memory and the
PC (Win2k) soon runs out of virtual memory.

With Oracle 8 it doesn't seem to cache all the records on the client. I
guess it caches one record at a time, does some work then removes it
from cache, but not with 9 or 10.

Could this be an issue with ADO or the Provider not being compatible
with Oracle 9 or 10?

Thanks again,

Colm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 09:27 AM
Jim Kennedy
 
Posts: n/a
Default Re: Oracle 10g and VB6 ADO


"CollyMitch" <colmjmitchell@gmail.com> wrote in message
news:1147271598.236262.272930@j73g2000cwa.googlegr oups.com...
> Hey,
>
> Thanks for your reply.
>
> We retrieve 50 thousand rows from oracle (we only use oracle) because
> we want to download from the remote Oracle db to a local MS Access
> database, removing the need for a live oracle connection and allowing
> production to continue if the network is down. This may not be the most
> ideal way, but it was required when the network was prone to failures.
>
> We don't *want* to cache them on the client but load, record by record,
> into the access db - the virtual memory caching is the issue we need
> fixed! The issue is that it loads all the records into memory and the
> PC (Win2k) soon runs out of virtual memory.
>
> With Oracle 8 it doesn't seem to cache all the records on the client. I
> guess it caches one record at a time, does some work then removes it
> from cache, but not with 9 or 10.
>
> Could this be an issue with ADO or the Provider not being compatible
> with Oracle 9 or 10?
>
> Thanks again,
>
> Colm
>

I would look at the ADO. I have used Oracle Ole Objects in VB and never
encountered this type of problem. The Oracle middleware doesn't drag the
whole result set across unless you tell it you want it to. Then it doesn't
do any caching. ADO is just an API on top of the OCI (Oracle Call
Interface).
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 09:28 AM
CollyMitch
 
Posts: n/a
Default Re: Oracle 10g and VB6 ADO

Ok,

Thanks for your help.

Colm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com