<?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 PLSQL with Perl in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769625#M785852</link>
    <description>Hi!&lt;BR /&gt;I have a small problem, maybe syntax:&lt;BR /&gt;&lt;BR /&gt;I create an sql-file using spool:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$file = "file.sql";&lt;BR /&gt;$HOT=qx{$ENV{'ORACLE_HOME'}/bin/sqlplus -SL  /nolog &amp;lt;&lt;END&gt;&lt;/END&gt;     whenever sqlerror exit failure&lt;BR /&gt;set termout off heading off feedback off trimspool on&lt;BR /&gt;set echo off linesize 1000  pagesize 300&lt;BR /&gt;connect / as sysdba;&lt;BR /&gt;whenever sqlerror continue&lt;BR /&gt;spool $file&lt;BR /&gt;select   'alter tablespace '||a.tablespace_name||' end backup;'&lt;BR /&gt;----and so on---------&lt;BR /&gt;&lt;BR /&gt;spool off&lt;BR /&gt;END};&lt;BR /&gt;&lt;BR /&gt;Now I want to call the created sql-file and use:&lt;BR /&gt;&lt;BR /&gt;start $file&lt;BR /&gt;&lt;BR /&gt;Here my programm freezes and does nothing more.&lt;BR /&gt;If I test the sql-file separately, it works perfectly. But calling within the perl-script doesn't work properly.&lt;BR /&gt;&lt;BR /&gt;Help appreciated. Many thanks.</description>
    <pubDate>Tue, 11 Apr 2006 02:00:54 GMT</pubDate>
    <dc:creator>Kalin Evtimov</dc:creator>
    <dc:date>2006-04-11T02:00:54Z</dc:date>
    <item>
      <title>PLSQL with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769625#M785852</link>
      <description>Hi!&lt;BR /&gt;I have a small problem, maybe syntax:&lt;BR /&gt;&lt;BR /&gt;I create an sql-file using spool:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$file = "file.sql";&lt;BR /&gt;$HOT=qx{$ENV{'ORACLE_HOME'}/bin/sqlplus -SL  /nolog &amp;lt;&lt;END&gt;&lt;/END&gt;     whenever sqlerror exit failure&lt;BR /&gt;set termout off heading off feedback off trimspool on&lt;BR /&gt;set echo off linesize 1000  pagesize 300&lt;BR /&gt;connect / as sysdba;&lt;BR /&gt;whenever sqlerror continue&lt;BR /&gt;spool $file&lt;BR /&gt;select   'alter tablespace '||a.tablespace_name||' end backup;'&lt;BR /&gt;----and so on---------&lt;BR /&gt;&lt;BR /&gt;spool off&lt;BR /&gt;END};&lt;BR /&gt;&lt;BR /&gt;Now I want to call the created sql-file and use:&lt;BR /&gt;&lt;BR /&gt;start $file&lt;BR /&gt;&lt;BR /&gt;Here my programm freezes and does nothing more.&lt;BR /&gt;If I test the sql-file separately, it works perfectly. But calling within the perl-script doesn't work properly.&lt;BR /&gt;&lt;BR /&gt;Help appreciated. Many thanks.</description>
      <pubDate>Tue, 11 Apr 2006 02:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769625#M785852</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-04-11T02:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: PLSQL with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769626#M785853</link>
      <description>Kalin,&lt;BR /&gt;as a test, can you write your file.sql as you do at the moment, but then start a new sqlplus session and do your start.&lt;BR /&gt;So:&lt;BR /&gt;1. Create your file.sql&lt;BR /&gt;2. exit sqlplus&lt;BR /&gt;3. Start new sqlplus, which starts file.sql&lt;BR /&gt;&lt;BR /&gt;This used to be our workaround whwn packages were not being executed, which I assume also stands true for PLSQL.</description>
      <pubDate>Tue, 11 Apr 2006 04:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769626#M785853</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-11T04:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: PLSQL with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769627#M785854</link>
      <description>Thanks.&lt;BR /&gt;&lt;BR /&gt;The problem was in the wrong settings of the database..I hope it wil work.</description>
      <pubDate>Tue, 11 Apr 2006 06:29:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/plsql-with-perl/m-p/3769627#M785854</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-04-11T06:29:24Z</dc:date>
    </item>
  </channel>
</rss>

