开发者

Running a SQL using sqlplus in UNIX?

开发者 https://www.devze.com 2023-02-04 14:36 出处:网络
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 dispaly开发者_开发知识库s connected to SQL

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 dispaly开发者_开发知识库s connected to SQL, SQL> 1 2 .... How can I prevent these entries from getting printed?


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

> sqlplus -s username/password@database


if everything else fails, you could try

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号