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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQLPLUS spool file question

RE: SQLPLUS spool file question

From: Vergara, Michael (TEM) <mvergara_at_guidant.com>
Date: Wed, 11 Dec 2002 08:58:58 -0800
Message-ID: <F001.005179BA.20021211085858@fatcity.com>


Mark:  

Here is what I usually set in a SQL*Plus script where I will want to spool the output:

   set echo off pause off termout on feedback on    set pagesize 55 linesize 95 tab off trimspool on  

I rarely use 'sqlplus -s', and I do not get the '^L' character in my spool files. I also have a shell script that I use to trim off excess spaces and ^L characters from other folk's scripts. Here it is:  

#!/usr/bin/ksh
# This is for HP-UX ksh.

mv ${1} trim.temp
if [ $? != 0 ] ; then
  echo ''
  echo Error opening ${1} for move
  echo Aborting...
  echo ''
  exit
fi
#
/ /' | sed '1,$s/ *$//g' > ${1}
rm trim.temp  

# #EOF# HTH,
Mike      

-----Original Message-----
Sent: Wednesday, December 11, 2002 8:04 AM To: Multiple recipients of list ORACLE-L

I'm creating a spool file of SQL commands based on several "select...from" statements. When I "vi" my output file, I see a "^L" character as the first character after each of my select statements. I remember a solution being presented a few years ago that allowed you to eliminate the "^L" on this list but I've managed to loose it. I seem to remember that you must use silent mode (-s) and the proper setting of several of the SQLPlus environment variables. Any help would be appreciated

Mark Willett
Sunnen Products Company

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Vergara, Michael (TEM)
  INET: mvergara_at_guidant.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Dec 11 2002 - 10:58:58 CST

Original text of this message

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