Remove Unwanted/Extra Data in SQLPLUS

后端 未结 1 1591
甜味超标
甜味超标 2021-01-23 18:42

I am running a file via batch file

Batch File:

sqlplus admin/admin@SERVER @abc.sql > output.txt

SQL File abc.sql:

s         


        
1条回答
  •  执笔经年
    2021-01-23 19:08

    -S seems to be what you're looking for;

    sqlplus -S admin/admin@SERVER @abc.sql > output.txt
    

    -S[ILENT]

    Suppresses all SQL*Plus information and prompt messages, including the command prompt, the echoing of commands, and the banner normally displayed when you start SQL*Plus. If you omit username or password, SQL*Plus prompts for them, but the prompts are not visible. Use SILENT to invoke SQL*Plus within another program so that the use of SQL*Plus is invisible to the user.

    0 讨论(0)
提交回复
热议问题