leo_jeo has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, My problem is that I have to use a sql file,containing anonymous sql code,from one perl script.I tried DBI but still no avail.Can someone guide me to the proper documentation. Actually I have to port existing shell scripts to perl script,where shell script contains syntax like
`sqlplus -s userid/password@db<<EOF start abc.sql parameters EOF`
And the sql file contains syntax is
WHENEVER SQLERROR EXIT FAILURE set pagesize 0 column XXX format a200 set feedback off set echo off set verify off set termout off set heading off set trimspool on set linesize 500 set long 32000 spool c:\\abc.txt select * from side_table / spool off set termout on
Issues are 1.I cannot spool file 2.I cannot handle clob 3.I cannot handle set commands Please guide
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiple sql statements in one sql file
by roboticus (Chancellor) on Nov 28, 2011 at 10:51 UTC | |
by leo_jeo (Initiate) on Nov 29, 2011 at 04:31 UTC | |
by roboticus (Chancellor) on Nov 29, 2011 at 10:44 UTC | |
by leo_jeo (Initiate) on Nov 30, 2011 at 16:26 UTC | |
by leo_jeo (Initiate) on Dec 06, 2011 at 04:48 UTC | |
|
Re: Multiple sql statements in one sql file
by marto (Cardinal) on Nov 28, 2011 at 10:48 UTC |