473,721 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sometimes ORA-24388 problem - please advice

Hello colleagues,

At this moment we have a real big problem using a .NET application
with an Oracle database (v8.1.6). I hope someone has encountered this
problem before and is able to help me with it.

The problem is that we *Sometimes* get the ORA-24338 error when
executing a query. This problem occurs random, sometimes twice a day,
sometimes not at all. In the eventlog we get an exception like this
one (stacktrace):
Additonal Info:
ExceptionManage r.MachineName: TEST-DIG
ExceptionManage r.TimeStamp: 23-2-2004 16:38:25
ExceptionManage r.FullName:
Microsoft.Appli cationBlocks.Ex ceptionManageme nt,
Version=1.0.137 6.20570, Culture=neutral ,
PublicKeyToken= 9f1cd949e9897e4 a
ExceptionManage r.AppDomainName :
/LM/W3SVC/1818675049/Root-1-127219909862343 750
ExceptionManage r.ThreadIdentit y:
ExceptionManage r.WindowsIdenti ty: NT AUTHORITY\NETWO RK SERVICE

Exception Information
System.Web.Http UnhandledExcept ion: Exception of type
System.Web.Http UnhandledExcept ion was thrown.
---> AnalyzeIT.Web.P ortalFramework. Common.PortalDa taException: PF DB:
Het opvragen van de databaseversie is mislukt. --->
System.Data.Ora cleClient.Oracl eException: ORA-24338: Statement handle
not executed
at System.Data.Ora cleClient.Oracl eException.Chec k(OciHandle
errorHandle, Int32 rc)
at System.Data.Ora cleClient.OciHa ndle.GetAttribu te(ATTR attribute,
Int32& value, OciHandle errorHandle)
at System.Data.Ora cleClient.Oracl eDataReader.Fil lColumnInfo()
at System.Data.Ora cleClient.Oracl eDataReader..ct or(OracleConnec tion
connection, OciHandle statementHandle )
at System.Data.Ora cleClient.Oracl eParameterBindi ng.GetOutputVal ue(NativeBuffer
parameterBuffer , OracleConnectio n connection, Boolean needCLSType)
at System.Data.Ora cleClient.Oracl eParameterBindi ng.PostExecute( NativeBuffer
parameterBuffer , OracleConnectio n connection)
at System.Data.Ora cleClient.Oracl eCommand.Execut e(OciHandle
statementHandle , CommandBehavior behavior, Boolean isReader, Boolean
needRowid, OciHandle& rowidDescriptor , ArrayList&
refCursorParame terOrdinals)
at System.Data.Ora cleClient.Oracl eCommand.Execut e(OciHandle
statementHandle , CommandBehavior behavior, ArrayList&
refCursorParame terOrdinals)
at System.Data.Ora cleClient.Oracl eCommand.Execut eReader(Command Behavior
behavior)
at System.Data.Ora cleClient.Oracl eCommand.Execut eReader()
at System.Data.Ora cleClient.Oracl eCommand.System .Data.IDbComman d.ExecuteReader ()
at AnalyzeIT.Web.P ortalFramework. Data.SysteemDB. GetDatabaseVers ie()
--- End of inner exception stack trace ---
at AnalyzeIT.Web.P ortalFramework. Data.SysteemDB. GetDatabaseVers ie()
at AnalyzeIT.Web.P ortalFramework. Common.DefaultP age.CheckDataba seCompatibilite it()
at AnalyzeIT.Web.P ortalFramework. Common.DefaultP age.Page_Load(O bject
sender, EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain()
--- End of inner exception stack trace ---
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt ep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)

The only statement executed by our code is calling
SysteemDB.GetDa tabaseVersie (in the namespace
AnalyzeIT.Web.P ortalFramework. Data)
The code for it is:
CREATE OR REPLACE PACKAGE PkgSystem AS
TYPE CRSR IS REF CURSOR;

PROCEDURE GetDatabaseVers ie(ERROR OUT NUMBER,CUR OUT CRSR);
END PkgSystem;
/

CREATE OR REPLACE PACKAGE BODY PkgSystem AS
PROCEDURE GetDatabaseVers ie(ERROR OUT NUMBER,CUR OUT CRSR) IS
BEGIN
ERROR := 0;
OPEN CUR FOR
SELECT SI_Waarde as DatabaseVersie
FROM Systeeminformat ie
WHERE SI_NAAM='DATABA SEVERSIE';
EXCEPTION
WHEN OTHERS THEN
ERROR := SQLCODE;
END GetDatabaseVers ie;
END PkgSystem;
/


This will execute a stored procedure in the package PGKSystem which
has the following implementation:

public string GetDatabaseVers ie()
{
cm = DatabaseFactory .CreateCommand( );
cm.CommandType = CommandType.Sto redProcedure;
cm.Connection = this.InternalCo nnection;
cm.CommandText = "PkgPortaalBehe er.GetDatabaseV ersie";

OracleParameter pa = new OracleParameter ();
pa.OracleType = OracleType.Curs or;
pa.ParameterNam e = "CUR";
pa.Direction = ParameterDirect ion.Output;
cm.Parameters.A dd(pa);

IDbDataParamete r param = new OracleParameter ();
param.Parameter Name = "ERROR";
param.DbType = DbType.Decimal;
param.Direction = ParameterDirect ion.Output;
cm.Parameters.A dd(param);
string DatabaseVersion = "";
try
{
this.Connection .Open();
IDataReader dr = cm.ExecuteReade r();

// Get the database version
while(dr.Read() )
{

try
{
DatabaseVersion = dr["DatabaseVersio n"] as string;
}
catch(Exception exc)
{
throw new PortalDataExcep tion("PF DB: Failed to get DB
version",exc);
}
}
}
catch(Exception exc)
{
throw new PortalDataExcep tion("PF DB: Failed to get DB
version",exc);
}
finally
{
this.Connection .Close();
}
return DatabaseVersion ;
}
This code was a little modified to make it more clear, but the
statements are intact.

To my best knowledge, this is how things work. Also, this code
executes fine in 99% of the time. However, if something goes wrong and
the ORA-24388 error occurs, Oracle cannot be reached by the website
for about 5 minutes after the last ORA-24388 error.

So: if the error occurs, and we try again 4 minutes later, then it
seems to reset the counter and will from then on be unavailble for 5
minutes. So it will be unavailable for 9 minutes in total. (and so on)

I have no clue why it's 5 minutes and why the database is unavailble
for other commands as well in that time.

I really hope someone is willing to help me out here, I've been
struggling with this problem for about 2 months now and we were not
able to resolve this until now!

Any advice is highly appreciated!

J. Bijleveld
The Netherlands
Jul 19 '05 #1
2 8446
J.Bijleveld wrote:
Hello colleagues,

At this moment we have a real big problem using a .NET application
with an Oracle database (v8.1.6). I hope someone has encountered this
problem before and is able to help me with it.

The problem is that we *Sometimes* get the ORA-24338 error when
executing a query. This problem occurs random, sometimes twice a day,
sometimes not at all. In the eventlog we get an exception like this
one (stacktrace):
Additonal Info:
ExceptionManage r.MachineName: TEST-DIG
ExceptionManage r.TimeStamp: 23-2-2004 16:38:25
ExceptionManage r.FullName:
Microsoft.Appli cationBlocks.Ex ceptionManageme nt,
Version=1.0.137 6.20570, Culture=neutral ,
PublicKeyToken= 9f1cd949e9897e4 a
ExceptionManage r.AppDomainName :
/LM/W3SVC/1818675049/Root-1-127219909862343 750
ExceptionManage r.ThreadIdentit y:
ExceptionManage r.WindowsIdenti ty: NT AUTHORITY\NETWO RK SERVICE

Exception Information
System.Web.Http UnhandledExcept ion: Exception of type
System.Web.Http UnhandledExcept ion was thrown.
---> AnalyzeIT.Web.P ortalFramework. Common.PortalDa taException: PF DB:
Het opvragen van de databaseversie is mislukt. --->
System.Data.Ora cleClient.Oracl eException: ORA-24338: Statement handle
not executed
at System.Data.Ora cleClient.Oracl eException.Chec k(OciHandle
errorHandle, Int32 rc)
at System.Data.Ora cleClient.OciHa ndle.GetAttribu te(ATTR attribute,
Int32& value, OciHandle errorHandle)
at System.Data.Ora cleClient.Oracl eDataReader.Fil lColumnInfo()
at System.Data.Ora cleClient.Oracl eDataReader..ct or(OracleConnec tion
connection, OciHandle statementHandle )
at System.Data.Ora cleClient.Oracl eParameterBindi ng.GetOutputVal ue(NativeBuffer
parameterBuffer , OracleConnectio n connection, Boolean needCLSType)
at System.Data.Ora cleClient.Oracl eParameterBindi ng.PostExecute( NativeBuffer
parameterBuffer , OracleConnectio n connection)
at System.Data.Ora cleClient.Oracl eCommand.Execut e(OciHandle
statementHandle , CommandBehavior behavior, Boolean isReader, Boolean
needRowid, OciHandle& rowidDescriptor , ArrayList&
refCursorParame terOrdinals)
at System.Data.Ora cleClient.Oracl eCommand.Execut e(OciHandle
statementHandle , CommandBehavior behavior, ArrayList&
refCursorParame terOrdinals)
at System.Data.Ora cleClient.Oracl eCommand.Execut eReader(Command Behavior
behavior)
at System.Data.Ora cleClient.Oracl eCommand.Execut eReader()
at System.Data.Ora cleClient.Oracl eCommand.System .Data.IDbComman d.ExecuteReader ()
at AnalyzeIT.Web.P ortalFramework. Data.SysteemDB. GetDatabaseVers ie()
--- End of inner exception stack trace ---
at AnalyzeIT.Web.P ortalFramework. Data.SysteemDB. GetDatabaseVers ie()
at AnalyzeIT.Web.P ortalFramework. Common.DefaultP age.CheckDataba seCompatibilite it()
at AnalyzeIT.Web.P ortalFramework. Common.DefaultP age.Page_Load(O bject
sender, EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain()
--- End of inner exception stack trace ---
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt ep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)

The only statement executed by our code is calling
SysteemDB.GetDa tabaseVersie (in the namespace
AnalyzeIT.Web.P ortalFramework. Data)
The code for it is:
CREATE OR REPLACE PACKAGE PkgSystem AS
TYPE CRSR IS REF CURSOR;

PROCEDURE GetDatabaseVers ie(ERROR OUT NUMBER,CUR OUT CRSR);
END PkgSystem;
/

CREATE OR REPLACE PACKAGE BODY PkgSystem AS
PROCEDURE GetDatabaseVers ie(ERROR OUT NUMBER,CUR OUT CRSR) IS
BEGIN
ERROR := 0;
OPEN CUR FOR
SELECT SI_Waarde as DatabaseVersie
FROM Systeeminformat ie
WHERE SI_NAAM='DATABA SEVERSIE';
EXCEPTION
WHEN OTHERS THEN
ERROR := SQLCODE;
END GetDatabaseVers ie;
END PkgSystem;
/


This will execute a stored procedure in the package PGKSystem which
has the following implementation:

public string GetDatabaseVers ie()
{
cm = DatabaseFactory .CreateCommand( );
cm.CommandType = CommandType.Sto redProcedure;
cm.Connection = this.InternalCo nnection;
cm.CommandText = "PkgPortaalBehe er.GetDatabaseV ersie";

OracleParameter pa = new OracleParameter ();
pa.OracleType = OracleType.Curs or;
pa.ParameterNam e = "CUR";
pa.Direction = ParameterDirect ion.Output;
cm.Parameters.A dd(pa);

IDbDataParamete r param = new OracleParameter ();
param.Parameter Name = "ERROR";
param.DbType = DbType.Decimal;
param.Direction = ParameterDirect ion.Output;
cm.Parameters.A dd(param);
string DatabaseVersion = "";
try
{
this.Connection .Open();
IDataReader dr = cm.ExecuteReade r();

// Get the database version
while(dr.Read() )
{

try
{
DatabaseVersion = dr["DatabaseVersio n"] as string;
}
catch(Exception exc)
{
throw new PortalDataExcep tion("PF DB: Failed to get DB
version",exc);
}
}
}
catch(Exception exc)
{
throw new PortalDataExcep tion("PF DB: Failed to get DB
version",exc);
}
finally
{
this.Connection .Close();
}
return DatabaseVersion ;
}
This code was a little modified to make it more clear, but the
statements are intact.

To my best knowledge, this is how things work. Also, this code
executes fine in 99% of the time. However, if something goes wrong and
the ORA-24388 error occurs, Oracle cannot be reached by the website
for about 5 minutes after the last ORA-24388 error.

So: if the error occurs, and we try again 4 minutes later, then it
seems to reset the counter and will from then on be unavailble for 5
minutes. So it will be unavailable for 9 minutes in total. (and so on)

I have no clue why it's 5 minutes and why the database is unavailble
for other commands as well in that time.

I really hope someone is willing to help me out here, I've been
struggling with this problem for about 2 months now and we were not
able to resolve this until now!

Any advice is highly appreciated!

J. Bijleveld
The Netherlands

Cannot comment on why the error would occur, as my knowledge of
..Net is very minimal.
No doubt you already knew this:
24338, 00000, "statement handle not executed"
// *Cause: A fetch or describe was attempted before executing a
// statement handle.
// *Action: Execute a statement and then fetch or describe the data.

Undoubtly, you also know your version is not a pleasant one - at least
upgrade, and patch to 8.1.7.4.

As to the 5 minutes stuff - you seem to do something with Portal;
if this would be Oracle Portal, there's a time-out on IP-address
when all login attempts (3) have failed. IIRC, that is 5 minutes by
default, but increases. Your login failure count is reset every 24hrs.

--

Regards,
Frank van Bortel

Jul 19 '05 #2
> >
J. Bijleveld
The Netherlands

Cannot comment on why the error would occur, as my knowledge of
.Net is very minimal.
No doubt you already knew this:
24338, 00000, "statement handle not executed"
// *Cause: A fetch or describe was attempted before executing a
// statement handle.
// *Action: Execute a statement and then fetch or describe the data.

Undoubtly, you also know your version is not a pleasant one - at least
upgrade, and patch to 8.1.7.4.

As to the 5 minutes stuff - you seem to do something with Portal;
if this would be Oracle Portal, there's a time-out on IP-address
when all login attempts (3) have failed. IIRC, that is 5 minutes by
default, but increases. Your login failure count is reset every 24hrs.

Hi Frank,

Thanks for your answer to my question, I did indeed find the error
info you added below but I couldn't figure out in what why I would
have to modify my stored procedure to make it work all of the time.
It says "Execute a statement and then fetch or describe the data". In
my opinion I already do so, please correct me if I'm wrong.

Thanks for your suggestion about the Oracle version, I'll make sure to
have our customer check the patch-level so it's 8.1.7.4, if not, I'll
send them the advice to check out that patch and apply it (if
possible).

About the Portal: that's not the Oracle Portal (I should have
mentioned that).
The application that uses Oracle is a framework to create portals.

Thanks again for your information,

Groeten,
Jeroen Bijleveld
Jul 19 '05 #3

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

Similar topics

6
15623
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on an AIX server. Using toad and sqlplusw Everything working fin connecting to other 8.1.7 Oracle servers on windows
1
38884
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server from another client computer using Net 8 Configuration. But congiguration cannot be proceeded because above error .
1
5155
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the name of the entry. If I use any other name for that entry I get the dreaded ORA-12154. For example: TNSNAMES.ORA -> INV4II Application -> INV4II :: works fine TNSNAMES.ORA -> INV4DEV Application -> INV4DEV :: ORA-12154 TNSNAMES.ORA -> INV4DEV...
6
4693
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
4
4821
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine. I had her send me her tnsnames.ora from her PC. The entry I wanted was as follows (some letters replaced with xxx for security reasons): xxxora2_prod2 = (DESCRIPTION=
1
2346
by: Ersin Gençtürk | last post by:
We couldn't find why these errors happen.They doesn't appear everytime.And they appear different pages at different times.Is there somebody know why these happenes ? First user gets this error : Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an
2
14619
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core dump Wed Sep 20 12:31:12 2006 Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_pmon_643152.trc: ORA-00600: internal error code, arguments: , , , , , , , ORA-27302: failure occurred at: skgslfr Wed Sep 20 12:31:22 2006 Errors...
5
38832
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point, I believe another set of eyes on the issue is merited. I am a MSSQL DBA and somewhat new to ORACLE; but I have read the administrators manual having a basic thorough level of knowledge (Tho' I am still learning) and understanding of how to...
0
3717
by: basmgokul | last post by:
I am using oracle 10g in windows vista.. when starting DB it throws an error Errors in file c:\database\udump\practice_ora_440.trc: ORA-00704: bootstrap process failure ORA-39700: database must be opened with UPGRADE option Thu Mar 27 09:17:53 2008 Error 704 happened during db open, shutting down database
1
3173
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your issue Michael Tubuo Ngong
0
8851
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8736
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9373
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9138
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3201
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2137
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.