473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

OracleClient connection pooling

Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block from MS Enterprise Library June 2005 (with the other
blocks like exception, security...)
- Use Crystal Report Components for printing reports online
And everything was fine until recenntly we started getting this error
randomly and the only way to fix is reboot the server. and this is the error
message:
--------------------------------------------------------------------------------------
TargetSite : System.Data.OracleClient.DBPooledObject
GetObject(System.Object, Boolean ByRef)
Stack Trace : at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(String
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionString
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandWrapper command)
at
Microsoft.Practices.EnterpriseLibrary.Data.Oracle. OracleDatabase.ExecuteReader(DBCommandWrapper commandWrapper)
at EssessmentDataAccessLayer.clsPMRFormDAL.get_dt_PMR _by_PMR_ID(Int32
PMR_ID)
--------------------------------------------------------------------------------------
And from the error message it look like that Oracle client database pooling
is not working properly but I don't know how to fix.
Do you have any suggestions.

Thanks.
Feb 22 '07 #1
4 6356
On Feb 22, 11:36 am, DSISupport <DSISupp...@newsgroup.nospamwrote:
Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block from MS Enterprise Library June 2005 (with the other
blocks like exception, security...)
- Use Crystal Report Components for printing reports online
And everything was fine until recenntly we started getting this error
randomly and the only way to fix is reboot the server. and this is the error
message:
---------------------------------------------------------------------------*-----------
TargetSite : System.Data.OracleClient.DBPooledObject
GetObject(System.Object, Boolean ByRef)
Stack Trace : at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(St*ring
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionStri*ng
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommand*Wrapper command)
at
Microsoft.Practices.EnterpriseLibrary.Data.Oracle. OracleDatabase.ExecuteRea*der(DBCommandWrapper commandWrapper)
at EssessmentDataAccessLayer.clsPMRFormDAL.get_dt_PMR _by_PMR_ID(Int32
PMR_ID)
---------------------------------------------------------------------------*-----------
And from the error message it look like that Oracle client database pooling
is not working properly but I don't know how to fix.
Do you have any suggestions.

Thanks.
Are you using an Oracle name server? I've run into a similar issue
when using the .net managed provider in an environment where a name
server was used to resolve names.

Feb 22 '07 #2
I just checked with our DBA team and they confirmed that we're not using
Oracle Name Server and we're using TNS names instead?
Does this make my issue harder? also what did you do to fix the issue?

Thanks.

"wf****@gmail.com" wrote:
On Feb 22, 11:36 am, DSISupport <DSISupp...@newsgroup.nospamwrote:
Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block from MS Enterprise Library June 2005 (with the other
blocks like exception, security...)
- Use Crystal Report Components for printing reports online
And everything was fine until recenntly we started getting this error
randomly and the only way to fix is reboot the server. and this is the error
message:
---------------------------------------------------------------------------Â*-----------
TargetSite : System.Data.OracleClient.DBPooledObject
GetObject(System.Object, Boolean ByRef)
Stack Trace : at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(StÂ*ring
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionStriÂ*ng
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandÂ*Wrapper command)
at
Microsoft.Practices.EnterpriseLibrary.Data.Oracle. OracleDatabase.ExecuteReaÂ*der(DBCommandWrapper commandWrapper)
at EssessmentDataAccessLayer.clsPMRFormDAL.get_dt_PMR _by_PMR_ID(Int32
PMR_ID)
---------------------------------------------------------------------------Â*-----------
And from the error message it look like that Oracle client database pooling
is not working properly but I don't know how to fix.
Do you have any suggestions.

Thanks.

Are you using an Oracle name server? I've run into a similar issue
when using the .net managed provider in an environment where a name
server was used to resolve names.

Feb 22 '07 #3
On Feb 22, 2:00 pm, DSISupport <DSISupp...@newsgroup.nospamwrote:
I just checked with our DBA team and they confirmed that we're not using
Oracle Name Server and we're using TNS names instead?
Does this make my issue harder? also what did you do to fix the issue?

Thanks.

"wfa...@gmail.com" wrote:
On Feb 22, 11:36 am, DSISupport <DSISupp...@newsgroup.nospamwrote:
Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block from MS Enterprise Library June 2005 (with theother
blocks like exception, security...)
- Use Crystal Report Components for printing reports online
And everything was fine until recenntly we started getting this error
randomly and the only way to fix is reboot the server. and this is the error
message:
---------------------------------------------------------------------------**-----------
TargetSite : System.Data.OracleClient.DBPooledObject
GetObject(System.Object, Boolean ByRef)
Stack Trace : at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(St**ring
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionStri**ng
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommand**Wrapper command)
at
Microsoft.Practices.EnterpriseLibrary.Data.Oracle. OracleDatabase.ExecuteRea**der(DBCommandWrapper commandWrapper)
at EssessmentDataAccessLayer.clsPMRFormDAL.get_dt_PMR _by_PMR_ID(Int32
PMR_ID)
---------------------------------------------------------------------------**-----------
And from the error message it look like that Oracle client database pooling
is not working properly but I don't know how to fix.
Do you have any suggestions.
Thanks.
Are you using an Oracle name server? I've run into a similar issue
when using the .net managed provider in an environment where a name
server was used to resolve names.- Hide quoted text -

- Show quoted text -
We used tnsnames :). I'm not sure if it was the exact same problem but
it sounds similar. There was an issue between the microsoft managed
provider and the oci library where a thread was entering a
synchronization context while opening a connection and then never
leaving the context because it hung on the call to resolve the server
(using Oracle name server). We'd then receive timeout errors when
trying to open another connection until we killed the process. At the
time I found some other reports of the issue in metalink but there
weren't any resolutions other than using Oracle's managed provider
(instead of Microsoft's) or not using an oracle nameserver. We had too
much provider specific code so we chose the latter.

First thing I would do is use the microsoft debugging tools so you can
identify exactly where the problem is.
http://www.microsoft.com/whdc/devtoo...g/default.mspx
Feb 23 '07 #4
I think that we can always change the code to use the Oracle database
provider and see if that resolve the issue however that could take some time
because a lot of stuff are a provider specific. The other possible fix would
be try to disable the connection pooling but that may also slow down the
application.
I was hoping to find a fix and keep using the MS DB Provider for Oracle with
the connection pooling and I'm still searching for the fix to this issue.

"wf****@gmail.com" wrote:
On Feb 22, 2:00 pm, DSISupport <DSISupp...@newsgroup.nospamwrote:
I just checked with our DBA team and they confirmed that we're not using
Oracle Name Server and we're using TNS names instead?
Does this make my issue harder? also what did you do to fix the issue?

Thanks.

"wfa...@gmail.com" wrote:
On Feb 22, 11:36 am, DSISupport <DSISupp...@newsgroup.nospamwrote:
Hi,
I have this ASP.NET application developed with VS.NET 2003 VB.NET and
deplyed on Windows 2K server IIS 5.
This application uses the following:
- Oracle 10G databse
- MS Data Access Block from MS Enterprise Library June 2005 (with the other
blocks like exception, security...)
- Use Crystal Report Components for printing reports online
And everything was fine until recenntly we started getting this error
randomly and the only way to fix is reboot the server. and this is the error
message:
---------------------------------------------------------------------------Â*Â*-----------
TargetSite : System.Data.OracleClient.DBPooledObject
GetObject(System.Object, Boolean ByRef)
Stack Trace : at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(StÂ*Â*ring
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionStriÂ*Â*ng
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandÂ*Â*Wrapper command)
at
Microsoft.Practices.EnterpriseLibrary.Data.Oracle. OracleDatabase.ExecuteReaÂ*Â*der(DBCommandWrapper commandWrapper)
at EssessmentDataAccessLayer.clsPMRFormDAL.get_dt_PMR _by_PMR_ID(Int32
PMR_ID)
---------------------------------------------------------------------------Â*Â*-----------
And from the error message it look like that Oracle client database pooling
is not working properly but I don't know how to fix.
Do you have any suggestions.
Thanks.
Are you using an Oracle name server? I've run into a similar issue
when using the .net managed provider in an environment where a name
server was used to resolve names.- Hide quoted text -
- Show quoted text -

We used tnsnames :). I'm not sure if it was the exact same problem but
it sounds similar. There was an issue between the microsoft managed
provider and the oci library where a thread was entering a
synchronization context while opening a connection and then never
leaving the context because it hung on the call to resolve the server
(using Oracle name server). We'd then receive timeout errors when
trying to open another connection until we killed the process. At the
time I found some other reports of the issue in metalink but there
weren't any resolutions other than using Oracle's managed provider
(instead of Microsoft's) or not using an oracle nameserver. We had too
much provider specific code so we chose the latter.

First thing I would do is use the microsoft debugging tools so you can
identify exactly where the problem is.
http://www.microsoft.com/whdc/devtoo...g/default.mspx
Feb 26 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kevin Vogt | last post by:
When initially loaded, my web application (below) takes ~120000 milliseconds to open its connection. But repeated executions take 0 milliseconds each. But when I wait for approx. 5 minutes and try...
18
by: Rob Nicholson | last post by:
We're getting an occasional occurrence of the following error when two users try and open the same record in our ASP.NET app: "There is already an open DataReader associated with this Connection...
1
by: Lenny Shprekher | last post by:
Hi, I am getting issues that Oracle collecting opened sessions (connections) from my webservice using regular System.Data.OleDb.OleDbConnection object. I am guessing that this is connection...
7
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : ...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
2
by: JimLad | last post by:
Hi, In an existing ASP/ASP.NET 1.1 app running on IIS 6, I need to RELIABLY pass the logged in username through to the SQL Server 2000 database for auditing purposes. The current method is...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
3
by: fniles | last post by:
In the Windows application (using VB.NET 2005) I use connection pooling like the following: In the main form load I open a connection using a connection string that I stored in a global variable...
0
viswarajan
by: viswarajan | last post by:
Introduction This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.