我注意到有时当我mail
自己的SQL * Plus日志文件时,生成的消息与日志文件不匹配。
例如,请使用以下示例SQL * Plus日志文件:
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_a;
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_b;
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_c;
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_d;
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_e;
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f FROM some_table_f;
SQL>
SQL> QUIT
我使用:cat sql.log | mail me@email.com
当它到达时,它看起来像:
SQL> SELECT column_a, column_b, column_c, column_d, column_e, column_f
SQL> FROM some_table_a; SELECT column_a, column_b, column_c, column_d,
SQL> column_e, column_f FROM some_table_b; SELECT column_a, column_b,
SQL> column_c, column_d, column_e, column_f FROM some_table_c; SELECT
SQL> column_a, column_b, column_c, column_d, column_e, column_f FROM
SQL> some_table_d; SELECT column_a, column_b, column_c, column_d,
SQL> column_e, column_f FROM some_table_e; SELECT column_a, column_b,
SQL> column_c, column_d, column_e, column_f FROM some_table_f;
SQL>
SQL> QUIT
它几乎就像mail
命令包裹线条,胶合在下一行,并在其认为合适的地方添加更多SQL>
。
有没有办法阻止它这样做?为什么它会首先这样做?
编辑:99%的日志和文件都没有错误的线条。它只是偶尔发生一次。我怀疑它与大多数行上都有>
有关。
答案 0 :(得分:0)
哦,废话,我明白了。
Unix mail
并非责备,它的 Microsoft Outlook 。
我刚注意到在TO:
行附近,有一段显示Extra line breaks in this message were removed
。当我点击它时,我可以选择Restore line breaks
,我很高兴。
编辑:我已为解决方案附加了图片。
方法强>
永久修复: