dbTalk Databases Forums  

How do I suppress the echo

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss How do I suppress the echo in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Randy Harris
 
Posts: n/a

Default How do I suppress the echo - 05-22-2005 , 02:27 AM







Can someone please tell me what I am doing wrong. I can't get it to
suppress the command echo in the spool file or suppress the terminal output.
I'm sure it's something dumb, but I've been struggling for hours on this and
need help.


================================================== ============
$ cat test.scr
sqlplus user/pass@service <<SCRIPT
set echo off
set termout off
spool test.out
set trimspool on
set echo off
select sysdate from dual;
spool off
SCRIPT

================================================== ============
$ ./test.scr

SQL*Plus: Release 8.1.7.0.0 - Production on Sun May 22 03:20:57 2005

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
JServer Release 8.1.7.4.1 - Production

SQL> SQL> SQL> SQL> SQL> SQL>
SYSDATE
---------
22-MAY-05

SQL> SQL> Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 -
Prod
uction
JServer Release 8.1.7.4.1 - Production

================================================== ==============
$ cat test.out
SQL> set trimspool on
SQL> set echo off
SQL> select sysdate from dual;

SYSDATE
---------
22-MAY-05

SQL> spool off


Reply With Quote
  #2  
Old   
Sybrand Bakker
 
Posts: n/a

Default Re: How do I suppress the echo - 05-22-2005 , 03:12 AM






On Sun, 22 May 2005 07:27:11 GMT, "Randy Harris" <randy (AT) SpamFree (DOT) com>
wrote:

Quote:
Can someone please tell me what I am doing wrong. I can't get it to
suppress the command echo in the spool file or suppress the terminal output.
I'm sure it's something dumb, but I've been struggling for hours on this and
need help.


================================================== ============
$ cat test.scr
sqlplus user/pass@service <<SCRIPT
set echo off
set termout off
spool test.out
set trimspool on
set echo off
select sysdate from dual;
spool off
SCRIPT

================================================== ============
$ ./test.scr

SQL*Plus: Release 8.1.7.0.0 - Production on Sun May 22 03:20:57 2005

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
JServer Release 8.1.7.4.1 - Production

SQL> SQL> SQL> SQL> SQL> SQL
SYSDATE
---------
22-MAY-05

SQL> SQL> Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 -
Prod
uction
JServer Release 8.1.7.4.1 - Production

================================================== ==============
$ cat test.out
SQL> set trimspool on
SQL> set echo off
SQL> select sysdate from dual;

SYSDATE
---------
22-MAY-05

SQL> spool off
sqlplus -s .... etc

IIRC this is in the manual.


--
Sybrand Bakker, Senior Oracle DBA


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.