Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to turn off the input command from the SQL plus?

755891Oct 5 2011 — edited Oct 5 2011
Hi,

Just wondering whether is it possible to turn off the command that we enter on SQL Plus?

For example, I do something as below.
sqlplus test/test@testdb

SQL*Plus: Release 10.2.0.4.0 - Production on Wed Oct 5 15:16:09 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> set termout on
SQL> spool test2.log
SQL> select sysdate from dual;

SYSDATE
---------
05-OCT-11

SQL> spool off
I tried to set termout on but it seems doesn't help here.
cat test2.log

SQL> select sysdate from dual;  <<< How can I remove this line?

SYSDATE
---------
05-OCT-11

SQL> spool off <<< How can I remove this line?
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2011
Added on Oct 5 2011
9 comments
2,014 views