PL/SQL Execution — cx_Oracle 8.3.0 documentation
cx-oracle.readthedocs.io › en › latest# enable DBMS_OUTPUT cursor. callproc ("dbms_output.enable") # execute some PL/SQL that calls DBMS_OUTPUT.PUT_LINE cursor. execute (""" begin dbms_output.put_line('This is the cx_Oracle manual'); dbms_output.put_line('Demonstrating how to use DBMS_OUTPUT'); end;""") # tune this size for your application chunk_size = 100 # create variables to hold the output lines_var = cursor. arrayvar (str, chunk_size) num_lines_var = cursor. var (int) num_lines_var. setvalue (0, chunk_size) # fetch the ...