<?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 sqlplus:  not found in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237320#M621663</link>
    <description>I try to execute a shell script using plink.exe (plink -ssh "servermachine" -l "user" -pw "pass" /home/path../myScript.sh) and then i get the message "sqlplus:  not found", but if i execute the same script in my unix machine i don't have this message an all is ok.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;sqlplus -s ... &amp;lt;&amp;lt; EOF&lt;BR /&gt;set echo off &lt;BR /&gt;set verify off &lt;BR /&gt;set feed off &lt;BR /&gt;set pagesize 0 &lt;BR /&gt;set pause off &lt;BR /&gt;set linesize 4000 &lt;BR /&gt;set trims on&lt;BR /&gt;set head off&lt;BR /&gt;set term off&lt;BR /&gt;set pages 0 &lt;BR /&gt;set lines 2000&lt;BR /&gt;set space 0&lt;BR /&gt;set serveroutput on size 1000000&lt;BR /&gt;SPOOL /home/path/file.txt&lt;BR /&gt;DECLARE&lt;BR /&gt; ...;&lt;BR /&gt;BEGIN&lt;BR /&gt; ....&lt;BR /&gt;END;&lt;BR /&gt;/&lt;BR /&gt;SPOOL OFF&lt;BR /&gt;set serveroutput off&lt;BR /&gt;exit;&lt;BR /&gt;EOF</description>
    <pubDate>Wed, 28 Apr 2010 07:08:06 GMT</pubDate>
    <dc:creator>ivanrc</dc:creator>
    <dc:date>2010-04-28T07:08:06Z</dc:date>
    <item>
      <title>sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237320#M621663</link>
      <description>I try to execute a shell script using plink.exe (plink -ssh "servermachine" -l "user" -pw "pass" /home/path../myScript.sh) and then i get the message "sqlplus:  not found", but if i execute the same script in my unix machine i don't have this message an all is ok.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;sqlplus -s ... &amp;lt;&amp;lt; EOF&lt;BR /&gt;set echo off &lt;BR /&gt;set verify off &lt;BR /&gt;set feed off &lt;BR /&gt;set pagesize 0 &lt;BR /&gt;set pause off &lt;BR /&gt;set linesize 4000 &lt;BR /&gt;set trims on&lt;BR /&gt;set head off&lt;BR /&gt;set term off&lt;BR /&gt;set pages 0 &lt;BR /&gt;set lines 2000&lt;BR /&gt;set space 0&lt;BR /&gt;set serveroutput on size 1000000&lt;BR /&gt;SPOOL /home/path/file.txt&lt;BR /&gt;DECLARE&lt;BR /&gt; ...;&lt;BR /&gt;BEGIN&lt;BR /&gt; ....&lt;BR /&gt;END;&lt;BR /&gt;/&lt;BR /&gt;SPOOL OFF&lt;BR /&gt;set serveroutput off&lt;BR /&gt;exit;&lt;BR /&gt;EOF</description>
      <pubDate>Wed, 28 Apr 2010 07:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237320#M621663</guid>
      <dc:creator>ivanrc</dc:creator>
      <dc:date>2010-04-28T07:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237321#M621664</link>
      <description>It is likely your PATH doesn't contain sqlplus when you use plink -ssh?</description>
      <pubDate>Wed, 28 Apr 2010 07:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237321#M621664</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-28T07:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237322#M621665</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Add ORACLE_HOME and ORACLE_SID.&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Wed, 28 Apr 2010 07:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237322#M621665</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-04-28T07:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237323#M621666</link>
      <description>When you use plink to execute a script, what you're doing is called a "non-interactive login".&lt;BR /&gt;&lt;BR /&gt;No matter which shell is configured for your user account on the servermachine, it probably handles interactive and non-interactive logins differently. Often some login scripts are omitted when doing a non-interactive login. This typically causes your PATH environment variable to be different from what you've used to.&lt;BR /&gt;&lt;BR /&gt;Try setting PATH explicitly from the HP-UX system's standard configuration file in the beginning of your script:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;export PATH=$(&amp;lt; /etc/PATH)&lt;BR /&gt;&lt;BR /&gt;sqlplus -s ... &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;[...]&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 28 Apr 2010 07:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237323#M621666</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-04-28T07:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237324#M621667</link>
      <description>Thanks to all, but the problem is that plink don't load the postprofile and then i have to add this load to my script.</description>
      <pubDate>Wed, 28 Apr 2010 07:54:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237324#M621667</guid>
      <dc:creator>ivanrc</dc:creator>
      <dc:date>2010-04-28T07:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus:  not found</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237325#M621668</link>
      <description>All is ok. Thanks.</description>
      <pubDate>Wed, 28 Apr 2010 07:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-not-found/m-p/5237325#M621668</guid>
      <dc:creator>ivanrc</dc:creator>
      <dc:date>2010-04-28T07:55:37Z</dc:date>
    </item>
  </channel>
</rss>

