如何将.sql文件中的LOG_MSSG写入shell脚本

时间:2016-01-12 08:01:23

标签: sql shell unix plsql

我在shell脚本中调用.sql文件到SPOOL n没有文件... 样本看起来像

SPOOL ON;

..... -->file 1

SPOOL OFF;

SPOOL ON;

.... -->file 2

SPOOL OFF;

SPOOL ON;

.....  --> file 3

SPOOL OFF;

SPOOL ON;

....  --> file 4

SPOOL OFF;

现在我需要在这些假脱机之间写入日志消息...如何在我的.sql文件中实现?

log message = "No of files :x"

此处:X是一个变量,其值为table count。

1 个答案:

答案 0 :(得分:0)

您是否在寻找APPEND的{​​{1}}选项?

SPOOL