Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:37:17+00:00 2026-06-11T08:37:17+00:00

I have a C# Windows IIS server (Windows Server 2003) application connecting to an

  • 0

I have a C# Windows IIS server (Windows Server 2003) application connecting to an Oracle database hosted on Linux (10gR2 on Red Hat 5.3). Intermittetly, Oracle throws an ORA-3113: end-of-file on communication channel error. This screws up the OracleConnection object in C#. Then, any new OracleCommands that try to use the OracleConnection all fail saying the connection has been closed.

I have reviewed the Oracle trace files generated by this error and have isolated the problem to faulty network hardware and am working to fix it.

However, I need to make my C# code more robust and have it respond appropriately to this error by closing and not using that connection object anymore. It is easy to catch the exception in C#, but I cannot reproduce the network issue in the Development environment to prove my code works & cleans up after itself.

try
{
  oracleCommand.ExecuteNonQuery();
}
catch(OracleException exception)
{
  if(exception.Code == 3113)
    CloseAndCleanup();
}

I have tried coding a PL/SQL trigger on a table that throws an ORA-3113 when I try to INSERT into the table.

CREATE OR REPLACE TRIGGER SCHEMA.TABLE
BEFORE DELETE OR INSERT OR UPDATE
ON SCHEMA.TABLE
FOR EACH ROW
DECLARE
  CONNECTION_LOST_CONTACT   EXCEPTION;
  PRAGMA EXCEPTION_INIT (CONNECTION_LOST_CONTACT, -3113);
BEGIN
  RAISE CONNECTION_LOST_CONTACT;
END;

This throws the right error, but doesn’t corrupt the OracleConnection object in C#. I can still send commands to the OracleConnection and it works.

How can I accurately simulate the ORA-3113 error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:37:19+00:00Added an answer on June 11, 2026 at 8:37 am

    ORA-3113 means that a server process/thread that was assigned to a client unexpectedly died or was killed deliberately.
    You can produce ORA-3113 error by manually killing a server process/thread. Killing session wont produce that error.

    To reproduce that error you can take following steps:

    1) Determine server process/thread associated with your session

    select p.spid  -- process ID
         , s.program  -- your oracle client
      from v$process p
      join v$session s
        on p.addr = s.paddr 
    

    On the server side

    2) Use orakill (windows) or kill -9 .. (Linux) to kill server thread/process

    Windows example

    c:\> orakill ORACLE_SID spid
    

    After that you will get the ORA-3113 on the client side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Web Application hosted in IIS 6 on a Windows Server 2003
I have a ASP.NET 1.1 application running on IIS 6 / Windows Server 2003.
i have published asp.net mvc application on iis 6 on the server(windows server 2003)
I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.
I have a Windows 2003 Server with IIS, I installed VisualSVN Server on it.
I have an iis server on a windows 2003 production machine that will not
I have an asp.net website (SQL Server, Windows 2003, IIS 6) and I am
I have a web application running on Windows IIS. This app has a database
I have a .net 2.0 web application that is running on Windows server 2003
We're currently using IIS 6 and Windows Server 2003 for our web and application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.