Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> I *want* to spool query text...

I *want* to spool query text...

From: Phil Lawrence <prlawrence_at_gmail.com>
Date: 2 Mar 2007 12:17:45 -0800
Message-ID: <1172866665.402869.122060@30g2000cwc.googlegroups.com>


I am invoking a sql script like so:

${ORACLE_HOME}/bin/sqlplus -S /NOLOG <<EOF 2>&1 1>/dev/null CONNECT ${ORA_USER}/${ORA_PASS}@${ORA_DB} SPOOL ${spoolfile}
@${sqlscript} ${args}
SPOOL OFF;
EOF This is fine, except the text of the statements in $sqlscript are not echoed in the spool file.

Is there any way to get the statements "list"ed in the spool file along with the output?

Thanks,
Phil R Lawrence Received on Fri Mar 02 2007 - 14:17:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US