dbTalk Databases Forums  

how to suppress query output in the command window?

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


Discuss how to suppress query output in the command window? in the comp.databases.oracle.misc forum.



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

Default how to suppress query output in the command window? - 08-21-2008 , 05:35 PM






Dear Oracle users:

I have a very simple test.sql file shown below:
============
set echo off
set feedback off

spool C:\test.log

select* from
dbname.tablename
/
spool off
exit
==============

When I submitted in Windows command window as the following:

C:\>sqlplus loginname/password@dbname @test.sql

The output of the select statement was displayed in the command window
(rows after rows were rolling the window). How to avoid the output
rolling thru the command window (since I spool the output already)? I
tried the silent mode below and the output still rolled thru the
window !

C:\>sqlplus -s loginname/password@dbname @test.sql

Thank you very much!


Reply With Quote
  #2  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: how to suppress query output in the command window? - 08-21-2008 , 08:08 PM






Xu (xuzengpj (AT) gmail (DOT) com) wrote:
: Dear Oracle users:

: I have a very simple test.sql file shown below:
: ============
: set echo off
: set feedback off

: spool C:\test.log

: select* from
: dbname.tablename
: /
: spool off
: exit
: ==============

: When I submitted in Windows command window as the following:

: C:\>sqlplus loginname/password@dbname @test.sql

: The output of the select statement was displayed in the command window
: (rows after rows were rolling the window). How to avoid the output
: rolling thru the command window (since I spool the output already)? I
: tried the silent mode below and the output still rolled thru the
: window !

: C:\>sqlplus -s loginname/password@dbname @test.sql

That is not what silent mode does.

What you want is the SET command, run within sqlplus. In the script,
before the select statement, put the command
SET TERMOUT OFF



Reply With Quote
  #3  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: how to suppress query output in the command window? - 08-21-2008 , 08:08 PM



Xu (xuzengpj (AT) gmail (DOT) com) wrote:
: Dear Oracle users:

: I have a very simple test.sql file shown below:
: ============
: set echo off
: set feedback off

: spool C:\test.log

: select* from
: dbname.tablename
: /
: spool off
: exit
: ==============

: When I submitted in Windows command window as the following:

: C:\>sqlplus loginname/password@dbname @test.sql

: The output of the select statement was displayed in the command window
: (rows after rows were rolling the window). How to avoid the output
: rolling thru the command window (since I spool the output already)? I
: tried the silent mode below and the output still rolled thru the
: window !

: C:\>sqlplus -s loginname/password@dbname @test.sql

That is not what silent mode does.

What you want is the SET command, run within sqlplus. In the script,
before the select statement, put the command
SET TERMOUT OFF



Reply With Quote
  #4  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: how to suppress query output in the command window? - 08-21-2008 , 08:08 PM



Xu (xuzengpj (AT) gmail (DOT) com) wrote:
: Dear Oracle users:

: I have a very simple test.sql file shown below:
: ============
: set echo off
: set feedback off

: spool C:\test.log

: select* from
: dbname.tablename
: /
: spool off
: exit
: ==============

: When I submitted in Windows command window as the following:

: C:\>sqlplus loginname/password@dbname @test.sql

: The output of the select statement was displayed in the command window
: (rows after rows were rolling the window). How to avoid the output
: rolling thru the command window (since I spool the output already)? I
: tried the silent mode below and the output still rolled thru the
: window !

: C:\>sqlplus -s loginname/password@dbname @test.sql

That is not what silent mode does.

What you want is the SET command, run within sqlplus. In the script,
before the select statement, put the command
SET TERMOUT OFF



Reply With Quote
  #5  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: how to suppress query output in the command window? - 08-21-2008 , 08:08 PM



Xu (xuzengpj (AT) gmail (DOT) com) wrote:
: Dear Oracle users:

: I have a very simple test.sql file shown below:
: ============
: set echo off
: set feedback off

: spool C:\test.log

: select* from
: dbname.tablename
: /
: spool off
: exit
: ==============

: When I submitted in Windows command window as the following:

: C:\>sqlplus loginname/password@dbname @test.sql

: The output of the select statement was displayed in the command window
: (rows after rows were rolling the window). How to avoid the output
: rolling thru the command window (since I spool the output already)? I
: tried the silent mode below and the output still rolled thru the
: window !

: C:\>sqlplus -s loginname/password@dbname @test.sql

That is not what silent mode does.

What you want is the SET command, run within sqlplus. In the script,
before the select statement, put the command
SET TERMOUT OFF



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.