linux下发送带附件EMAIL
当oracle出问题的时候,想发送附件到指定的邮箱,本来想用mail来发送,可是它需要安装uuencode才能发附件,uuencode这个程序linux默认没有安装,后面发现用mutt来发送,发现非常方便,功能非常强大1:mutt方法echo hello mutt ,i love you|mutt -s "my subjects" -a install.log logjiang@boobooke.com上述中hello mutt ,i love you是邮件的内容my subjects是邮件的主题install.log 是附件名称logjiang@boobooke.com是自己架的邮件服务器地址以下为help内容options: -a <file> attach a file to the message -b <
set autotrace的用法和含意及区别
Usage: SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]说明:前三个参数{OFF | ON | TRACE[ONLY]} 里必需选择一个,而且只能选择一个后两个参数[EXP[LAIN]] [STAT[ISTICS]]是可选的,也可以都不选择TRACE[ONLY]的含意是只显示explain和statistic,不显示SQL的结果集,带TRACE[ONLY]的参数的以下的4,5,6最常用的是第4种只要带上off,后面的[EXP[LAIN]] [STAT[ISTICS]]就无效了1:set autotrace on;显示:记录集+explain+statistics2:set autotrace on explain显示:记录集+explain3:set autotrace on statistic显示