Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Verifying Oracle connection in a Pro*C program

Verifying Oracle connection in a Pro*C program

From: Gruel III, Karl <kgruel_at_Paradigm4.com>
Date: Tue, 23 May 2000 08:48:11 -0400
Message-Id: <10506.106357@fatcity.com>


I am fairly new to Pro*C and PL/SQL, so please excuse any ignorance.

I was wondering if anybody knew a method to verify that you have connection to Oracle before trying a lookup/update in a Pro*C application.

Here's my situation:

I have a two machine setup, one is the database, the other is where the apps are run from. Recently, someone (accidentally) disconnected the database machine from the network. The next time my application tried to do a lookup in the database, it hung and I had to restart the app after the database machine was reconnected. I have looked at all the documentation that I can find, but I have not found anything describing a method to check for this.

Any help is greatly appreciated.

--
Karl Gruel
kgruel_at_paradigm4.com
Received on Tue May 23 2000 - 07:48:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US