Display option in sqlplus [message #451035] |
Mon, 12 April 2010 04:12 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
veemani
Messages: 10 Registered: July 2009 Location: Chennai
|
Junior Member |
|
|
Hi,
I m currently written a sqlplus query and executing as below
sqlplus -s << !
set head off pages off trimspool on termout off
spool sysdate.txt
select sysdate from dual;
spool off
!
With this query the sysdate is getting written in the sysdate.txt but it is also getting printed in the screen/terminal., which I don't need to. Is their any options available for that.
Note: I came to know that "Termout off" will work only when we execute the query from a file and as a result I can still see the sysdate getting displayed in the screen.
Can anyone help me on this?
|
|
|
|
|
|