<?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 script with PL/SQL procedure? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008499#M99013</link>
    <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Make sure the 'sqlplus' binary is in your path.  To call a procedure in PL/SQL, use 'exec':&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;export ORACLE_SID=EM&lt;BR /&gt;export ORACLE_HOME=/foo/bar&lt;BR /&gt;export ORACLE_BIN=${ORACLE_HOME}/bin&lt;BR /&gt;export PATH=${PATH}:${ORACLE_BIN}&lt;BR /&gt;&lt;BR /&gt;sqlplus user/pw &amp;lt;&amp;lt; _EOF_&lt;BR /&gt;  exec procedure1;&lt;BR /&gt;  exit;&lt;BR /&gt;_EOF_&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;PCS</description>
    <pubDate>Fri, 13 Oct 2006 09:49:10 GMT</pubDate>
    <dc:creator>spex</dc:creator>
    <dc:date>2006-10-13T09:49:10Z</dc:date>
    <item>
      <title>Shell script with PL/SQL procedure?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008496#M99010</link>
      <description>Is it possible to have a pl/sql procedure called from within a shell script. Seems it is not working for me. &lt;BR /&gt;&lt;BR /&gt;ORACLE_SID="EM"; export ORACLE_SID&lt;BR /&gt;sqlplus user1/user1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;begin&lt;BR /&gt;procedure1;&lt;BR /&gt;end;&lt;BR /&gt;EOF&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2006 08:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008496#M99010</guid>
      <dc:creator>Unix or Linux?</dc:creator>
      <dc:date>2006-10-13T08:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with PL/SQL procedure?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008497#M99011</link>
      <description>Friend   to inside call one shell sql   it is enough to enter in sql and to type @shellname &lt;BR /&gt;Example:&lt;BR /&gt;sqlplus /nolog   @shellname</description>
      <pubDate>Fri, 13 Oct 2006 09:06:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008497#M99011</guid>
      <dc:creator>Calandrello</dc:creator>
      <dc:date>2006-10-13T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with PL/SQL procedure?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008498#M99012</link>
      <description>This should work:&lt;BR /&gt;&lt;BR /&gt;ORACLE_SID="EM"; export ORACLE_SID&lt;BR /&gt;sqlplus user1/user1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;@procedure1&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;This assumes the procedure1 is procedure1.sql and resides your current directory.&lt;BR /&gt;&lt;BR /&gt;You can also do:&lt;BR /&gt;&lt;BR /&gt;ORACLE_SID="EM"; export ORACLE_SID&lt;BR /&gt;sqlplus user1/user1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;@/path/to/procedure1.sql&lt;BR /&gt;exit&lt;BR /&gt;EOF</description>
      <pubDate>Fri, 13 Oct 2006 09:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008498#M99012</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-13T09:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with PL/SQL procedure?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008499#M99013</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Make sure the 'sqlplus' binary is in your path.  To call a procedure in PL/SQL, use 'exec':&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;export ORACLE_SID=EM&lt;BR /&gt;export ORACLE_HOME=/foo/bar&lt;BR /&gt;export ORACLE_BIN=${ORACLE_HOME}/bin&lt;BR /&gt;export PATH=${PATH}:${ORACLE_BIN}&lt;BR /&gt;&lt;BR /&gt;sqlplus user/pw &amp;lt;&amp;lt; _EOF_&lt;BR /&gt;  exec procedure1;&lt;BR /&gt;  exit;&lt;BR /&gt;_EOF_&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 13 Oct 2006 09:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008499#M99013</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-13T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with PL/SQL procedure?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008500#M99014</link>
      <description>Thanks Spex, seems to work</description>
      <pubDate>Fri, 13 Oct 2006 10:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-with-pl-sql-procedure/m-p/5008500#M99014</guid>
      <dc:creator>Unix or Linux?</dc:creator>
      <dc:date>2006-10-13T10:38:30Z</dc:date>
    </item>
  </channel>
</rss>

