SQL Plus environment variables
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: SQL Plus environment variables

  1. #1
    Join Date
    Jan 2001
    Posts
    515
    I am trying to create a script by spooling my output from SQLPlus to a file. I use set echo off, set verify off, set feedback off and I am still getting my select statement end the spool off on the spool file. Does anyone know what else I have to turn off to just get my output into the spool file?

    SQL>select '@c:\temp\retention\process_table.sql '||owner||' '||table_name||' '||
    2 retention_column||' '||days
    3 from retention
    4 where last_update + days <= sysdate;

    @c:\temp\retention\process_table.sql OWNERR TABLE_NAME activity_date 90
    @c:\temp\retention\process_table.sql OWNER TABLE_NAME activity_date 90
    EVEDEV.US.HSBC>spool off;


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    set termout off
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Jan 2001
    Posts
    515

    thanks....

    thanks..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width