Tuesday, November 24, 2026SubscribeMastheadAbout
Cali ReporterCalifornia · National · West Coast · Good News

Advertisement

Technology

ORA-03113 Errors and Network Device Timeout Interactions

ORA-03113 errors occur when idle database connections are dropped by network devices such as firewalls or load balancers. These devices have idle timeouts that remove inactive connections, leading to communication…

Portrait of Benjamin Boyce
Artificial Intelligence & Technology · November 17, 2026
Share

AI-generated editorial illustration from an imagined camera angle.
AI-generated editorial illustration from an imagined camera angle. Source image: dev.to.

The ORA-03113 error, 'end-of-file on communication channel,' typically occurs when a connection between an application and a database becomes idle for longer than the timeout set by a network device such as a firewall, NAT gateway, or cloud load balancer. These devices track active TCP connections and remove entries for connections that remain idle beyond their timeout settings. Once the connection is removed, the next packet sent by the client is either silently dropped or met with a reset, depending on the device's configuration. In the lab, a silent drop resulted in the ORA-03113 error after approximately 951 seconds, with the client's TCP stack retransmitting packets until it gave up. This delay can lead to significant application issues, as threads and pool connections may pile up behind the hanging request (Source ID: 1). [1]

The ORA-03135 error, 'connection lost contact,' is triggered when a network device sends a TCP reset in response to a forgotten connection. This reset is sent directly to the client, causing the client to fail immediately. In the lab, this error was observed when the firewall or load balancer reset the connection, resulting in an immediate failure. This is different from the ORA-03113 error, which follows a long delay due to silent packet drops. The distinction between these two errors can help identify whether the network device is sending a reset or silently dropping packets. In both cases, the database may not be aware of the connection's failure, leaving orphan sessions in V$SESSION (Source ID: 1). [1]

To mitigate these errors, the SQLNET.EXPIRE_TIME parameter can be set on the database server's sqlnet.ora file. This parameter specifies the number of minutes after which the server sends a keepalive probe to maintain the connection. If the value is set below the smallest idle timeout on the network path, the keepalive probe ensures that the connection is not forgotten by the network device. In the lab, setting SQLNET.EXPIRE_TIME to 1 minute was effective when the firewall's timeout was 90 seconds. However, setting it to a value higher than the timeout (such as 2 minutes in the lab) did not prevent the connection from being forgotten. This parameter must be configured below the timeout and applied to new connections, requiring the connection pool to be recycled for the change to take effect (Source ID: 1). [1]

The source specifies that the issue occurs in environments where a pooled connection remains idle for longer than the idle timeout set on a network device such as a firewall, NAT gateway, or cloud load balancer. For example, Azure Load Balancer has a default idle timeout of 4 minutes, while AWS Network Load Balancer defaults to 350 seconds (approximately 5.8 minutes). These timeouts are documented by the respective cloud providers and can be configured within certain ranges. When a connection is idle beyond these thresholds, the device forgets the connection, leading to errors on the client side, such as ORA-03113 or ORA-03135, depending on whether the device sends a reset or silently drops the packet. This behavior is tested in a lab environment using Oracle Database Free 26ai, where a firewall was configured to forget idle connections after 90 seconds, and the results were validated with specific error messages and session states in the database. The lab also confirms that the database may not be aware of the connection failure unless the device sends a reset, which can be configured on some load balancers such as Azure Load Balancer with the 'TCP reset on idle' option enabled. This detail provides context for the documented limits and the specific network devices involved in the scenario. [1]

Advertisement

The source identifies that the problem is not limited to cloud environments, as on-premises firewalls also have idle timeouts, often set to an hour or more, but these are typically configured by network teams and may vary. The article emphasizes the need to consult each provider’s current documentation for the exact idle timeout settings for a specific setup, as these values can change over time. For example, Azure NAT Gateway has a default idle timeout of 4 minutes, which is configurable up to 120 minutes. Similarly, AWS Network Load Balancer allows idle timeouts between 60 and 6,000 seconds for TCP listeners. These settings are critical in determining the value that SQLNET.EXPIRE_TIME should be set to on the database server, as it must be lower than the smallest idle timeout on the network path. This detail is essential for troubleshooting and ensuring that the database sends keepalive probes before the network device disconnects the connection. The source also highlights that the specific error message returned (e.g., ORA-03113 or ORA-03135) depends on whether the device sends a reset or silently drops the packet, which is demonstrated in the lab with a 90-second timeout firewall. [1]

The source explicitly states that the error ORA-03113 (end-of-file on communication channel) occurs when the client sends a query on a forgotten connection and the device silently drops the first packet of the request. In the lab, this resulted in a 16-minute hang before the client finally failed with the ORA-03113 error due to TCP retransmission timeouts. This is in contrast to ORA-03135 (connection lost contact), which occurs when the device sends a reset in response to the first packet of the forgotten connection, resulting in an immediate failure. The source also notes that the database may not be aware of the connection failure unless the device sends a reset, and in some cases, such as with Azure Load Balancer when 'TCP reset on idle' is enabled, the database does receive the reset and can close the session. This distinction is important for diagnosing the issue and determining the appropriate fix. The lab environment used Oracle Database Free 26ai, and the results were validated with specific error messages, session states, and timeouts, demonstrating the behavior of different network devices and the impact of SQLNET.EXPIRE_TIME on preventing the issue. [1]

Sources

Dev.to

Prepared with AI assistance from the cited sources.

The Cali Reporter newsletter

The stories worth your time.

California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.

By joining, you agree to receive the Cali Reporter newsletter. Unsubscribe at any time. Privacy policy.

More in Technology

  • Modern Web Guidance 1.0 and Browser Compatibility

    Modern Web Guidance 1.0, announced by Chrome for Developers on November 10, introduces browser compatibility data to assist coding agents in building web features. The initiative emphasizes the importance of fallback…

  • Apache mod_http2 Vulnerability Detection with Nmap

    A new Nmap scripting module has been developed to detect the Apache mod_http2 vulnerability (CVE-2026-119618), addressing the challenges of identifying affected systems accurately.

  • Securing Remote Vendor Access in Industrial Networks

    Best practices for managing remote vendor access in operational technology (OT) networks emphasize controlled access points, multifactor authentication, and time-bound sessions to reduce cybersecurity risks.

Advertisement