Unix Technical Forum

OO4O handle leak

This is a discussion on OO4O handle leak within the Oracle Database forums, part of the Database Server Software category; --> I am using Oracle Objects for Ole in an MFC application. It is supposed to run 7-24 querying the ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 06:52 PM
njbrad@verizon.net
 
Posts: n/a
Default OO4O handle leak

I am using Oracle Objects for Ole in an MFC application. It is
supposed to run 7-24 querying the DB for work to do.

When running, I have found that there are handles leaking. I have been
able to replicate the problem with the following stripped down code.

OStartup();
ODatabase oDb;

#define CONNECT xxxxxx
#define ID xxxxxx
#define PWD xxxxxx

while(1)
{
oDb.Open(CONNECT, ID, PWD);

oDb.Close();

Sleep(5000);
}

OShutdown();

return;

It seems that the Close function does not free 2 handles. This leads
to an increase in the number of handes by 2 for each time through the
loop.

Objects for Ole Version: 9.2.0.4

Any suggestions?
Brad

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 06:52 PM
Sybrand Bakker
 
Posts: n/a
Default Re: OO4O handle leak

On 18 Nov 2005 09:40:17 -0800, njbrad@verizon.net wrote:

>Objects for Ole Version: 9.2.0.4
>
>Any suggestions?
>Brad



What is your pressing business need you can't use the dbms_job
mechanism for 7 x 24? You aren't stating you have a standalone client
PC hitting the database 7 x 24, do you? That would be likely very
inefficient.

--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 06:56 PM
njbrad@verizon.net
 
Posts: n/a
Default Re: OO4O handle leak


Sybrand Bakker wrote:
> On 18 Nov 2005 09:40:17 -0800, njbrad@verizon.net wrote:
>
> >Objects for Ole Version: 9.2.0.4
> >
> >Any suggestions?
> >Brad

>
>
> What is your pressing business need you can't use the dbms_job
> mechanism for 7 x 24? You aren't stating you have a standalone client
> PC hitting the database 7 x 24, do you? That would be likely very
> inefficient.
>
> --
> Sybrand Bakker, Senior Oracle DBA


First to reply to your questions:
I have a process that sits on a seperate server that formats and
delivers reports on a scheduled basis. The schedules are stored in
data tables. The program queries the database every minute to look for
more work to do.

Second, what I've discovered:
Each time a connection is opened in OO4O the connection information is
read from TNSNAMES.ora. If I fill in the complete information (as
found in TNSNAMES.ora) instead of a connection name, the extra handles
are not created.

It might be a bug in OO4O or in TNS, but for now I have somewhat of a
work-around.

Brad

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 04:06 PM.


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