Use slient mode of SQL*PLUS in a script

C:\Users\chenk6>sqlplus -H

...

-S            Sets silent mode which suppresses the display of

                the SQL*Plus banner, prompts, and echoing of

                commands.

...


C:\Ken\SQL\Learning>type query_oracle_version.bat

sqlplus -S system/emc123 @selectview.sql

C:\Ken\SQL\Learning>type selectview.sql
select * from v$version;
exit;

C:\Ken\SQL\Learning>sqlplus -S system/emc123 @selectview.sql

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS for 64-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production

C:\Ken\SQL\Learning>

你可能感兴趣的:(Use slient mode of SQL*PLUS in a script)