Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Checking if remote database is up
On 4/26/05, Niall Litchfield <niall.litchfield_at_gmail.com> wrote:
> Would a quick hack to code the procedure as a version of
>=20> end if
> declare
> l_alive number;
> begin
> select 1 into l_alive from dual_at_remotedb;
> if l_alive =3D 1 then
> proc_name;
>=20
>=20
Yes, that looks like it will do the job nicely.
>=20
Unfortunately the app just fires dynamic SQL directly at the database, no functions or procedures involved. I'm told by the consultants that they can add some code to call a function and check the result. I suspect packaging that block up in a function that returns TRUE if it works and adding an exception handler for the ORA-03113 error which returns FALSE would do quite nicely.
Thanks
Stephen
--=20
It's better to ask a silly question than to make a silly assumption.
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Apr 26 2005 - 10:31:00 CDT
![]() |
![]() |