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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Script to ping all db links

Re: Script to ping all db links

From: Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com>
Date: Thu, 10 Feb 2005 16:41:16 -0400
Message-ID: <cd4305c1050210124160c4d016@mail.gmail.com>


Hi Patrice, why don't you try to test the link itself The error message will tell you , for example ORA-02019: says wrong conection description, or whatever it is.

declare
 x number :=0;
begin
execute immediate( 'select 1 from sys.dual_at_soax.world' ) into x; dbms_output.put_line(x);
exception when others then
dbms_output.put_line(x);
dbms_output.put_line(sqlerrm);
end;

0 not connected 1 connected

On Thu, 10 Feb 2005 16:27:36 -0400, Boivin, Patrice J <BoivinP_at_mar.dfo-mpo.gc.ca> wrote:
> Does anyone have a script that tnspings all db links to produce a list of
> the invalid ones?
>
> I did one in sqlplus, which hosts to the command line to run tnsping, but
> the output never appears in the spool file.
>
> Patrice.
> --
> http://www.freelists.org/webpage/oracle-l
>

-- 
Oracle Certified Profesional 9i 10g
Orace Certified Professional Developer 6i

8 years of experience in Oracle 7,8i,9i,10g and developer 6i
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 10 2005 - 15:44:39 CST

Original text of this message

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