【Oracle】How To Automate Cleanup Of Dead Connections And INACTIVE
How To Automate Cleanup Of Dead Connections And INACTIVE Sessions [ID 206007.1]
Modified 25-JUN-2009 Type HOWTO Status PUBLISHED
PURPOSE ------- This note explains the difference between a dead connection and an INACTIVE session in v$session. It also discusses the mechanisms provided to automate the cleanup of each. SCOPE & APPLICATION ------------------- This note is intended for any DBA who wants to automate the cleanup of dead connections and/or INACTIVE sessions. Difference between INACTIVE sessions and Dead Connections --------------------------------------------------------- Dead connections and INACTIVE sessions are different issues. Oracle provides separate mechanisms to automate the cleanup of each. (1) Dead connections: These are previously valid connections with the database but the connection between the client and server processes has terminated abnormally. Examples of a dead connection: - A user reboots/turns-off their machine without logging off or disconnecting from the database. - A network problem prevents communication between the client and the server. In these cases, the shadow process running on the server and the session in the database may not terminate. To automate the cleanup of these sessions, you can use the Dead Connection Detection (DCD) feature of Net8. When DCD is enabled, Net8 (server-side) sends a packet to the client. If the client is active, the packet is discarded. If the client has terminated, the server will receive an error and Net8 (server-side) will end that session. Refer to : Dead Connection Detection (DCD) Explained, for details regarding DCD. (2) INACTIVE Sessions: These are sessions that remain connected to the database with a status in v$session of INACTIVE. Example of an INACTIVE session: - A user starts a program/session, then leaves it running and idle for an extended period of time. To automate cleanup of INACTIVE sessions you can create a profile with an appropriate IDLE_TIME setting and assign that profile to the users. : How To Automate Disconnection of Idle Sessions, outlines the steps to setup IDLE_TIME for this.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/645199/viewspace-688498/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 自動清理Dead Connections And INACTIVE SessionsSession
- How to cleanup ASM installationASM
- How To Automate Disconnection of Idle SessionsSession
- Dead lock - oracleOracle
- Oracle FGA 的使用和cleanup audit trailsOracleAI
- oracle dead lock與效能Oracle
- oracle 定期清理inactive會話Oracle會話
- Avast Cleanup PremiumASTREM
- How to configure SAP connections with Connection Transmitter Over air_part1MITAI
- How Oracle Works!Oracle
- How to Study OracleOracle
- Oracle中的死鎖Dead Lock(一)Oracle
- Oracle中的死鎖Dead Lock(二)Oracle
- Local Connections and Secure Remote Connections (36)REM
- Using cURL to automate HTTP jobsHTTP
- svn報錯cleanup failed–previous operation has not finished; run cleanup if it was interrupte...AI
- How to enable trace in OracleOracle
- In Oracle,How to use dumpOracle
- An Example of How Oracle WorksOracle
- Oracle HowTo:How to get Oracle SCN?Oracle
- How Oracle Locking WorksOracle
- How to rename an Oracle stored procedureOracle
- mysql的max_connections和Too many connectionsMySql
- Oracle:select 或 inactive 會話語句產生鎖?Oracle會話
- ceph之pg inactive
- 0120ORACLE的Dead Connection DetectionOracle
- How Oracle Store Number internal(zt)Oracle
- How to Relink Oracle Database SoftwareOracleDatabase
- How to Shrink Undo Segment In Oracle DatabaseOracleDatabase
- How To Delete An Oracle Applications UserdeleteOracleAPP
- How to gather statistics on Oracle eBS.Oracle
- How to find Current open Cursors in OracleOracle
- how to kill the runing job in ORACLEOracle
- How to drop Oracle RAC database manually?OracleDatabase
- How to purge the Oracle Database Recycle BinOracleDatabase
- How to use hints in Oracle sql for performanceOracleSQLORM
- How Oracle Net Services Works (281)Oracle
- MYSQL max_user_connections back_log max_connections引數和Max_used_connectionsMySql