4
当试图使用cx_Oralce从lob字段读取数据时,我收到“exceptions.MemoryError”。这段代码一直在工作,这个lob域看起来太大了。cx_Oracle MemoryError在读取高速缓存时
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”