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

Home -> Community -> Usenet -> c.d.o.server -> Re: Checking Connection Status in a Pro*C program

Re: Checking Connection Status in a Pro*C program

From: Andrew Protasov <protasov_at_percombank.kiev.ua>
Date: Thu, 16 Apr 1998 02:57:31 +0300
Message-ID: <6h2edm$ofl$1@news.lucky.net>

Hi Steven,

I worked on the similar problem. If your daemon executes SQL statement and the remote Oracle server goes down without answer, then your program will wait forever. You can not make frozen thread alive in any way. I tried obreak
call and non-blocking SQL processing without any success. So, the only solution is to start second copy of application after some time-out and terminate previous copy. This can be done programmatically. But I have not any core dumps on NT.

                                        Andrew Protasov

>My server daemon listens for clients' call and insert appropriate
>stuff from the clients into a remote oracle database. The daemon only
>logs in once into the remote database. I will get CORE DUMPED when
>the daemon performs the insert action if the existing connection is
>not valid (ie the remote database is down) . If I know the connection
>status, I can perform other necessary action to safeguard smooth
>operation (to use a secondary remote database). This daemon can not
>down and must perform smoothly.
>
>Please help.....
>
>
>Regards
>
>Steven.
>
Received on Wed Apr 15 1998 - 18:57:31 CDT

Original text of this message

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