0

我通过说sqlplus -L cimkroger/cimkroger@orcl @procdemo.sql > demo.txt在 unix 中执行 sql 脚本。它在demo.txt文件中生成正确的结果。但我不想连接、SQL*Plus、Disconneted、...等 demo.txt 部分中的文本。无论如何在sql查询中我可以避免这种情况。下面是demo.txt文件的内容。

SQL*Plus: Release 11.1.0.6.0 - Production on Tue Jun 25 14:03:26 2013

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


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

136209
136220
136152
136248
136196
136227
136163
136234
136174
136241
136185
135910

PL/SQL procedure successfully completed.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
4

1 回答 1

3

使用标志调用静默模式-s

sqlplus -S -L cimkroger/cimkroger@orcl @procdemo.sql > demo.txt

命令行选项显示在文档中

于 2013-06-25T08:42:09.753 回答