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?
-
3What's the difference between this question and stackoverflow.com/questions/4655018 ?Codo– Codo2011-01-11 07:51:22 +00:00Commented Jan 11, 2011 at 7:51
-
possible duplicate of Suppress the contents of the SQLplus command in UNIX?Dave Costa– Dave Costa2011-01-11 14:50:10 +00:00Commented Jan 11, 2011 at 14:50
Add a comment
|
2 Answers
Try the option -silent (or just -s):
> sqlplus -s username/password@database
1 Comment
Ravibhushan Kumar
thanks sqlplus -s user/password@instance as sysdba @file.sql this command is working
if everything else fails, you could try
sqlplus username/password@database @myscript.sql >/dev/null 2>&1
1 Comment
Erich Kitzmueller
No. Redirecting stdout and stderr to /dev/null eliminates everything that is not spooled.