<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shell scripts for tnsping in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635355#M808267</link>
    <description>Thanks for your information Muthukumar. ofcourse, you need to modify the script even a newbie can do that ;;)&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Tue, 27 Sep 2005 01:16:00 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2005-09-27T01:16:00Z</dc:date>
    <item>
      <title>shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635351#M808263</link>
      <description>Dear Sirs;&lt;BR /&gt;&lt;BR /&gt;I need to know a shell script which can perform tnsping on 5 oracle database every 30 minutes and record the output in a file.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 27 Sep 2005 01:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635351#M808263</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-09-27T01:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635352#M808264</link>
      <description>Shiv, &lt;BR /&gt;&lt;BR /&gt;You can use "ping" script to perform tnsping. Just replace ping with tnsping.. and change sleep to 1800. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960333" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960333&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 27 Sep 2005 01:06:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635352#M808264</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-27T01:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635353#M808265</link>
      <description>#!/bin/ksh&lt;BR /&gt;# tnsping.ksh&lt;BR /&gt;&lt;BR /&gt;db1=&lt;BR /&gt;db2=&lt;BR /&gt;db3=&lt;BR /&gt;db4=&lt;BR /&gt;db5=&lt;BR /&gt;stime=1800&lt;BR /&gt;&lt;BR /&gt;while [ 1 ]&lt;BR /&gt;do&lt;BR /&gt;  tnsping $db1 &amp;gt;&amp;gt; /tmp/tnsping_$db1.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;  tnsping $db2 &amp;gt;&amp;gt; /tmp/tnsping_$db2.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;  tnsping $db3 &amp;gt;&amp;gt; /tmp/tnsping_$db3.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;  tnsping $db4 &amp;gt;&amp;gt; /tmp/tnsping_$db4.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;  tnsping $db5 &amp;gt;&amp;gt; /tmp/tnsping_$db5.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;  sleep $stime&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# END&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Again you can use the script without sleep + while [ 1 ] with cron as,&lt;BR /&gt;&lt;BR /&gt;0,30 * * * * /tmp/tnsping.ksh 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Tue, 27 Sep 2005 01:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635353#M808265</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-27T01:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635354#M808266</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;We can not use the same script as your link. It is needed some modification to check the DB not hostname ;). tnsping will not use option of -c count also ;) :)&lt;BR /&gt;&lt;BR /&gt;Shiv,&lt;BR /&gt;&lt;BR /&gt;Running command line using sleep will not be a effecient way. Use cron schedular with the scripts.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 01:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635354#M808266</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-27T01:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635355#M808267</link>
      <description>Thanks for your information Muthukumar. ofcourse, you need to modify the script even a newbie can do that ;;)&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 27 Sep 2005 01:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635355#M808267</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-27T01:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635356#M808268</link>
      <description>hi shiv,&lt;BR /&gt;&lt;BR /&gt;allow me also to add that tnsping only shows that "there be a listener on that port".  It does not show that "the database you want that listener to hook you up with exists and is up"&lt;BR /&gt;&lt;BR /&gt;in short, the listener can be up without the database being up!&lt;BR /&gt;&lt;BR /&gt;I would suggest that you also include something like:&lt;BR /&gt;sqlplus /nolog &amp;lt;&lt;EOF&gt;/dev/null&lt;BR /&gt;connect scott/tiger@mydb &lt;BR /&gt;select to_char(sysdate,'dd/mm/yyyy hh24:mi') from dual;&lt;BR /&gt;exit;&lt;BR /&gt;EOF &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;/EOF&gt;</description>
      <pubDate>Tue, 27 Sep 2005 01:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635356#M808268</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-09-27T01:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635357#M808269</link>
      <description>I find the best solution&lt;BR /&gt;to do a dummy login like&lt;BR /&gt;create a list of remote connect descriptors for each db's to check.&lt;BR /&gt;&lt;BR /&gt;Then for each db connect descriptor in the list do&lt;BR /&gt;&lt;BR /&gt;sqlplus t/t@yourdb.world&lt;BR /&gt;&lt;BR /&gt;and check for the return message which &lt;BR /&gt;exclusively should be only:&lt;BR /&gt;&lt;BR /&gt;Enter user-name:&lt;BR /&gt;ERROR: ORA-01017: invalid username/password; logon denied&lt;BR /&gt;&lt;BR /&gt;and do this 3 times with sleep pauses of 10 seconds intervals, thus where any success is success, to account for temporary time-outs&lt;BR /&gt;or other glitches.&lt;BR /&gt;&lt;BR /&gt;If you would like the complete script let me&lt;BR /&gt;know.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Sep 2005 00:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635357#M808269</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2005-09-28T00:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripts for tnsping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635358#M808270</link>
      <description>Hi Shiv,&lt;BR /&gt;the tnsping really is used to check the /etc/tnsnames.ora syntax and if the listener of a remote server is up.&lt;BR /&gt;To be sure that teh databse be up you have to connect to it by listener using a sample script xx:&lt;BR /&gt;&lt;BR /&gt;cat xx&lt;BR /&gt;remote_database=xx&lt;BR /&gt;sqlplus -s &amp;lt;</description>
      <pubDate>Wed, 28 Sep 2005 07:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts-for-tnsping/m-p/3635358#M808270</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-09-28T07:06:18Z</dc:date>
    </item>
  </channel>
</rss>

