Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:Verifying Oracle connection in a Pro*C program
Sounds to me like a case of no error handler. There are two ways to do this;
____________________Reply Separator____________________Subject: Verifying Oracle connection in a Pro*C program Author: "Gruel III; Karl" <kgruel_at_Paradigm4.com> Date: 5/23/00 5:54 AM
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 -- Author: Gruel III, Karl INET: kgruel_at_Paradigm4.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue May 23 2000 - 14:56:39 CDT
![]() |
![]() |