<?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: problem executing sql script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113462#M74744</link>
    <description>Cathi&lt;BR /&gt;&lt;BR /&gt;SQLplus will look for scripts in your current directory, then in the directory pointed to by $SQLPATH, if set.&lt;BR /&gt;Extension should be .sql&lt;BR /&gt;&lt;BR /&gt;It evidently can't find whoami.sql in either of these.&lt;BR /&gt;&lt;BR /&gt;Did you cd into home/scripts before firing up sqlplus ?&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
    <pubDate>Fri, 07 Nov 2003 10:26:37 GMT</pubDate>
    <dc:creator>Graham Cameron_1</dc:creator>
    <dc:date>2003-11-07T10:26:37Z</dc:date>
    <item>
      <title>problem executing sql script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113461#M74743</link>
      <description>I am having problrm running script in sqlplus on unix 11:00 box&lt;BR /&gt;as an example &lt;BR /&gt;I have simple script saved in my home/scripts called whoami&lt;BR /&gt;ams i tried running at sqlplus probpt after logging in and got following error&lt;BR /&gt;I change the permission on the script as well.&lt;BR /&gt;SQL&amp;gt; @whoami&lt;BR /&gt;SP2-0310: unable to open file "whoami.sql"&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;&lt;BR /&gt;Help is appreciated.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2003 10:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113461#M74743</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-11-07T10:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem executing sql script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113462#M74744</link>
      <description>Cathi&lt;BR /&gt;&lt;BR /&gt;SQLplus will look for scripts in your current directory, then in the directory pointed to by $SQLPATH, if set.&lt;BR /&gt;Extension should be .sql&lt;BR /&gt;&lt;BR /&gt;It evidently can't find whoami.sql in either of these.&lt;BR /&gt;&lt;BR /&gt;Did you cd into home/scripts before firing up sqlplus ?&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Fri, 07 Nov 2003 10:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113462#M74744</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-11-07T10:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem executing sql script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113463#M74745</link>
      <description>Cathy,&lt;BR /&gt;&lt;BR /&gt;As Graham has correctly stated sqlplus looks for sql scripts with an extension of .sql&lt;BR /&gt;&lt;BR /&gt;It automatically assumes that there is an extension of .sql on the file, if another extension has not been stated.&lt;BR /&gt;&lt;BR /&gt;If your script is in /home/scripts&lt;BR /&gt;and is called whoami&lt;BR /&gt;&lt;BR /&gt;First rename the script whoami to whoami.sql&lt;BR /&gt;&lt;BR /&gt;Then, from a SQL&amp;gt; prompt type either&lt;BR /&gt;&lt;BR /&gt;@/home/scripts/whoami&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;@/home/scripts/whoami.sql&lt;BR /&gt;&lt;BR /&gt;They equate to the same thing.</description>
      <pubDate>Fri, 07 Nov 2003 11:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-sql-script/m-p/3113463#M74745</guid>
      <dc:creator>David Andrews_1</dc:creator>
      <dc:date>2003-11-07T11:00:31Z</dc:date>
    </item>
  </channel>
</rss>

