You can get dbms_output with DBMS_OUTPUT.GET_LINE(buffer, status). The state is 0 on success and 1 when there is no more data.
You can also use get_lines(lines, numlines). numlines- enter exit. You set it to the maximum number of lines, and it is set to the actual number in the output. You can call this in a loop and exit if the return is numlinesless than your input. linesis an output array.
source
share