我注意到有时当我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% 的日志和文件,不会出现线路混乱。它只是每隔一段时间才会发生一次。我怀疑这与>
大多数线路上都有一个有关。