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: Tim Gorman <Tim_at_SageLogix.com>
Date: Thu, 12 Dec 2002 19:53:45 -0800
Message-ID: <F001.00519024.20021212195345@fatcity.com>


SQLPLUS spool file questionPerform a SHOW NEWPAGE command in SQL*Plus. I imagine that you've got it set to "0"; if so, this is what is producing the formfeed characters. Try setting either NEWPAGE NONE or NEWPAGE <non-zero-value>...

  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-----
    From: Willett, Mark [mailto:mwillett_at_sunnen.com]     Sent: Wednesday, December 11, 2002 8:04 AM     To: Multiple recipients of list ORACLE-L     Subject: SQLPLUS spool file question

    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: Tim Gorman
  INET: Tim_at_SageLogix.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 Thu Dec 12 2002 - 21:53:45 CST

Original text of this message

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