Is there any way to flush output from PL/SQL in Oracle?

后端 未结 6 1089
情深已故
情深已故 2020-11-29 06:02

I have an SQL script that is called from within a shell script and takes a long time to run. It currently contains dbms_output.put_line statements at various po

6条回答
  •  日久生厌
    2020-11-29 07:02

    the buffer of DBMS_OUTPUT is read when the procedure DBMS_OUTPUT.get_line is called. If your client application is SQL*Plus, it means it will only get flushed once the procedure finishes.

    You can apply the method described in this SO to write the DBMS_OUTPUT buffer to a file.

提交回复
热议问题