1

While running the SQL using sqlplus, I dodn't want to dispaly anything on the screen. I am using SPOOL to save the contents to a file. even if I redirect it dispalys connected to SQL, SQL> 1 2 .... How can I prevent these entries from getting printed?

2

2 Answers 2

2

Try the option -silent (or just -s):

> sqlplus -s username/password@database
Sign up to request clarification or add additional context in comments.

1 Comment

thanks sqlplus -s user/password@instance as sysdba @file.sql this command is working
0

if everything else fails, you could try

sqlplus username/password@database @myscript.sql >/dev/null 2>&1

1 Comment

No. Redirecting stdout and stderr to /dev/null eliminates everything that is not spooled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.