DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: direct result to file (without display)

  1. #1
    Join Date
    Feb 2003
    Posts
    23

    direct result to file (without display)

    Hello,

    I want to send the result of an sql query to a file without having the result (display)
    in the screen. I don't remember if it is possible to do that with sql*plus ...

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    store your sql in a text file then

    #!/bin/ksh

    sqlplus -s /nolog << EOF
    set termout off
    connect user/pass

    spool text
    @your_sql
    spool off
    EOF

  3. #3
    Join Date
    Feb 2003
    Posts
    23
    Thanks a lot

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