【发布时间】:2010-11-14 00:09:12
【问题描述】:
当尝试使用 cx_Oralce 从 lob 字段读取数据时,我收到“exceptions.MemoryError”。这段代码一直在运行,这个lob字段好像太大了。
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”
【问题讨论】: