Created on
12-10-2004
12:00 AM
Edited on
01-11-2026
09:58 PM
By
Jean-Philippe_P
|
Description |
This article describes how to resolve issues where Oracle sessions timeout after a few minutes, even after increasing the session_ttl value on the TCP port 1521 to 3600 seconds. |
|
Scope |
All FortiGates. |
|
Solution |
TCP port 1521 is Oracle’s TNS listener port, which is used by a client to establish an initial session with the server. The server may then issue a REDIRECT command to the client, telling it to reconnect to another dynamically selected TCP port. The FortiGate will dynamically open the new TCP port due to the pre-configured 'session helper'.
The session_ttl value applied to this new port is based on the default session_ttl value (which can be lower than 3600 seconds).
The timeout of this newly established session causes the client-server session to stop.
There exist several options to correct this issue:
Note: In the most recent versions of Oracle DB, the REDIRECT packet is not sent anymore, and all of the connectivity is done over TCP port 1521. For these cases, consider deleting the TNS session helper, which will greatly reduce the FortiGate CPU utilization:
config system session-helper edit 4 set name tns next
It is usually the 4th entry under 'config system session-helper', as shown above.
To delete it, run the following commands:
config system session-helper delete 4 end
config system global set tcp-halfclose-timer xx end |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.