Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is -s option in sqlplus used for?

Tags:

shell

sqlplus

Am little new to shell script and would like to know the use of -s option [sqlplus -s] in shell script.

Thanks in advance.

like image 395
pOrinG Avatar asked Mar 09 '23 23:03

pOrinG


1 Answers

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

like image 182
Charles Duffy Avatar answered Mar 28 '23 23:03

Charles Duffy