View previous topic :: View next topic |
Author |
Message |
tongyan
Joined: 04 Apr 2005 Posts: 6
|
Posted: Mon Apr 04, 2005 11:34 pm Post subject: Oracle TNSping test shell script for Redhat Linux AS 3 |
|
|
#!/bin/sh
su - oracle -c "/u01/app/oracle/product/9.2.0/bin/tnsping $1" |tail -1 \
|awk '{if ($1=="OK") {ms=(substr($(NF-2),1)); \
printf ("ScriptRes:Ok:%d ms\n",ms)} else {printf ("ScriptRes:Bad:%d ms\n",ms)};exit}' |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Nadir
Joined: 29 Aug 2005 Posts: 264
|
Posted: Mon Jan 14, 2008 3:18 am Post subject: |
|
|
Hi all,
How this script works?
Is this script required just TNS alias?
Thanks for help |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|