- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: oracle application; client connection closed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 02:28 AM
тАО03-29-2001 02:28 AM
disconnected and its still running on the server. I can able to find out the process for the IDLE connection. Is there anyway to timeout the server
process connection?
we are using oracle application 11 and oracle
database 8.0.5, unix HP-UX 11.0, N class.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 04:49 AM
тАО03-29-2001 04:49 AM
SolutionThe orthodox method is to set tcp_keepalive_interval via ndd. I have extracted its description for your convenience.
If the user process already terminates at the Oracle client end, the server process will terminate when it reaches the tcp_keepalive_interval from the time the user process was idle/terminated.
=========================================
Interval for sending keep-alive probes.
If any activity has occurred on the connection or if there is any unacknowledged data when the time-out period expires, the timer is simply restarted. If the remote system has crashed and rebooted, it will presumably know nothing about this connection, and it will issue an RST in response to the ACK. Receipt of the RST will terminate the connection.
If the keepalive packet is not ACK'd by the remote TCP, the normal retransmission time-out will eventually exceed threshold R2, and the connection will be terminated.
With this keepalive behavior, a connection can time-out and terminate without actually receiving an RST from the remote TCP.
[10000, 10*24*3600000] Default: 2 * 3600000 (2 hours)
=========================================
The unorthodox method (highly discouraged) is to make use of tcp_discon_by_addr which allows you to terminate specific connections as reflected by tcp_status, all via ndd.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 05:30 AM
тАО03-29-2001 05:30 AM
Re: oracle application; client connection closed
To quote some usage examples,
# ndd -set /dev/tcp tcp_keepalive_interval 1800000 # max. idle time for connection is half an hr
# ndd -set /dev/tcp tcp_keepalive_interval 900000 # max. idle time for connection is 15 mins
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 10:38 AM
тАО03-29-2001 10:38 AM
Re: oracle application; client connection closed
For more info
http://metalink.oracle.com/
Metalink Note:1013364.6
Subject: WHAT IS DEAD CONNECTION DETECTION (DCD)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 09:10 PM
тАО03-29-2001 09:10 PM
Re: oracle application; client connection closed
Is this applicable to oracle applications also?
because oracle applications are web based requests.
Regards,
Madan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2001 09:43 PM
тАО03-29-2001 09:43 PM
Re: oracle application; client connection closed
I am using Oracle database 8.0.6 in my environment. In my environment at least, SQLNET.EXPIRE_TIME in sqlnet.ora had not been effective in killing off HUNG connections.
As such, I reduced TCP_KEEPALIVE_INTERVAL from 2 hours to just 1/2 hour. Connections idling for half an hour were terminated and its corresponding process killed. The TCP_KEEPALIVE_INTERVAL value was also hardcoded in the net startup configuration script ie /etc/rc.config.d/nddconf.
Another point to note. The INACTIVE status from v$session does not necessary imply that a process is hung or not running ie. a running sqlnet connection doing a select statement is also flagged as INACTIVE much to my dismay.
Instead, v$session_wait is more accurate in identifying a true hung/idle session.
A unix script can be written to interface with svrmgrl to identify the hung/idle sessions from the v$session_wait and terminate them.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2001 08:03 AM
тАО03-30-2001 08:03 AM
Re: oracle application; client connection closed
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2001 07:50 PM
тАО04-01-2001 07:50 PM