2013-11-28 16 views
0

信息每次我開始在sqlplus(Oracle)的一個新的SQL腳本,我收到這樣的輸出:sqlplus中:停止顯示有關連接和斷開

 
[exec] Connected to: 
    [exec] Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production 
    [exec] With the Partitioning, Automatic Storage Management, OLAP, Data Mining 
    [exec] and Real Application Testing options 
    [exec] 
    [exec] 
    [exec] PL/SQL procedure successfully completed. 
    [exec] 
    [exec] SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production 
    [exec] With the Partitioning, Automatic Storage Management, OLAP, Data Mining 
    [exec] and Real Application Testing options 

我想獲得僅是在信息中間,即:

 
    [exec] PL/SQL procedure successfully completed. 

是否有可能以某種方式做到這一點?

Btw。我知道-S選項,但它阻止我顯示將在下一步中執行的SQL命令。使用-S這些設置:

 
set serveroutput on size 1000000; 
set echo on; 

不起作用。

+0

不,sql * plus爲您提供了全有或全無的選項。您可以通過啓動sqlp * plus而不用'-s'選項來保持橫幅,命令提示符和命令回顯,或者通過用'-s'選項啓動sqlp * lus來保持命令的回顯。 –

回答

0

您可以使用SPOOL命令將輸出寫入文件,在這種情況下ECHO起作用。

SET SERVEROUTPUT ON SIZE 1000000 
SET ECHO ON 
SPOOL logfile.txt 
[...] 
相關問題