How to free a temporary clob in DCOracle2?

Daniel dl_un-spam_rubin at
Wed Apr 9 21:43:39 CEST 2003

How do I free the temporary clob when I'm done with it in DCOracle2? I get
an error when I try to close the temporary clob:

>>> clob = connection.LobLocator('SQLT_CLOB')
>>> clob.write('<f>foo bar</f>')
>>> d='insert into foo values (XMLTYPE.createXML(:m))'
>>> connection.execute(d, clob)
>>> clob.close()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
dco2.DatabaseError: (22289, 'ORA-22289: cannot perform %s operation on an
unopened file or LOB')


More information about the Python-list mailing list