Is dbms_output.put() being buffered differently from dbms_output.put_line()?
Im using Aqua Data Studio to debug a stored proc by scattering output statments throughout. I have a delete statement in the package which violate an integrity constraint: DELETE FROM x WHERE x.ID = an_x_with_children; My proc fails with an ORA-02292 on this line, as expected. I want to see the value of the an_x_with_children variable. So I wrap the line with outputs like so: dbms_output.put('Attempting to delete x: ' || an_x_with_children); DELETE FROM x WHERE x.ID = an_x_with_children; dbms_output.put(' Success'); And expect to see the message as the last thing in the messages console prior