sqlplus中的-s选项有什么用?

What is -s option in sqlplus used for?

我对 shell 脚本有点陌生,想知道 shell 脚本中 -s 选项 [sqlplus -s] 的用法。

提前致谢。

根据 the documentation:

-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.

SILENT is a useful mode for creating reports for the web using the SQLPLUS -MARKUP command inside a CGI script or operating system script. The SQL*Plus banner and prompts are suppressed and do not appear in reports created using the SILENT option.