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: TNSPING Test Script for NT

RE: TNSPING Test Script for NT

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 21 Aug 2001 11:22:39 -0700
Message-ID: <F001.00372EC1.20010821111245@fatcity.com>

Ed,

how about:

tnsping {sid} 1000 > ping.lis

will tnsping the {sid} 1000 times, with the result being placed in a file created named ping.lis

changing it to

Can be executed as pingtest {sid}

Another way to do this using a loop within the .bat file follows. This would execute the tnsping command 1000 times:

And a third way, using goto looping:

@set /A ctr=0

:again

echo TnsPing Test > ping.lis
echo date /T >> ping.lis
set /A ctr=ctr+1

if (%ctr%) == (1000) goto endloop
tnsping r816 >> ping.lis
goto again

:endloop

hope these help.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
[mailto:Ed.Haskins_at_VerizonWireless.com]
Sent: Tuesday, August 21, 2001 2:37 PM
To: Multiple recipients of list ORACLE-L

Can anyone help me with a simple .bat script for NT that will run a TNSPING against a certain connect descriptor and write the results to a file. I need to have the TNSPING run for say 1000 loops. Once complete, I can search through the file for errors.

Thanks,
Ed

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Ed.Haskins_at_VerizonWireless.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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us

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 Aug 21 2001 - 13:22:39 CDT

Original text of this message

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