Re: Avoiding spooling to empty files
- From: yf110@xxxxxxxxxxxxxxxxxxx (Malcolm Dew-Jones)
- Date: 30 Jan 2009 19:16:17 -0700
CenturionX (darwinbaldrich@xxxxxxxxx) wrote:
: Hello,
: I'm working with Oracle 10.2.0.4.0
: I have an unix script that via command line executes a query
: $ORACLE_HOME/bin/sqlplus -silent <<EOF
: connect user/pass@databse
: set pagesize 0
: set heading off
: set echo off
: set term off
: set feedback off
: set linesize 126
: spool /tmp/file_to_send
: SELECT * FROM table;
: EOF
: The issue is that if there is not data it generates a file with a
: control caracter (Don't know which one).
^^^^^^^^^^^^^^^^^^^^
on usix, use od (octal dump) to examine the file.
I like
od -a YOUR-FILE
(-a = show bytes using character notation, which is often easier to read)
$0.10
.
- References:
- Avoiding spooling to empty files
- From: CenturionX
- Avoiding spooling to empty files
- Prev by Date: Re: Avoiding spooling to empty files
- Next by Date: Re: Can MEMBER OF condition use pl/sql tables
- Previous by thread: Re: Avoiding spooling to empty files
- Next by thread: Oracle EM and PL/SQL developer unable to connect to DB
- Index(es):
Relevant Pages
|