When trying to read data from a lob field using cx_Oralce I’m receiving “exceptions.MemoryError”. This code has been working, this one lob field seems to be too big.
Example:
xml_cursor = ora_connection.cursor()
xml_cursor.arraysize = 2000
try:
xml_cursor.execute(“select xml_data from xmlTable where id = 1”)
for row_data in xml_cursor.fetchall():
str_xml = str(row_data[0]) #this throws “exceptions.MemoryError”