Tried executing cur.callproc("DBMS_OUTPUT.ENABLE") in each iteration to release buffer, but it not working. Even tried cur.callproc("DBMS_OUTPUT.ENABLE", (None, )) to increase buffer size to unlimited. >>> import cx_Oracle >>> cx_Oracle.__version__ '5.3' Python 3.4.5