Oracle Objects for OLE
Release 9.2

Part Number A95895-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

Detection of Lost Connections

OO4O linked with an 8.1.6 or later client supports detection of lost connections.

Applications can verify the status of the database connection by invoking the ConnectionOK property of the OraDatabase object. OraSession.GetDatabaseFromPool now checks to see if the connection is alive before returning the OraDatabase to the application.

If the connection is dead, GetDatabaseFromPool will drop the connection and refetch a live connection.

Example :

Dim MyDatabase As OraDatabase

Set MySession = CreateObject("OracleInProcServer.XOraSession")

Set MyDatabase = MySession.OpenDatabase("ora90", "scott/tiger", 0&)

'.... Other code

' Check if the database connection has not timed out

if MyDatabase.ConnectionOK

MsgBox " The database connection is valid"

endif


 
Oracle
Copyright © 1994, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback