Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cx_oracle throws "DPI-1054: connection cannot be closed when open statements or LOBs exist" during django migration #138
I have connected remote Oracle 9i DB with OCI version 11.2 in my window 7. Connection works fine, but when I run django manage.py migrate command I get DPI-1054: connection cannot be closed when open statements or LOBs exist
Similar issue has been reported to ticket
We are currently investigating the possibility of eliminating this error completely by internally tracking the open statements and LOBs and closing them when connection.close() is called. You can work around the situation by simply avoiding the call to connection.close(). So long as there are no circular references the connection, statements and LOBs will close perfectly well without help!
added a commit
Jan 27, 2018
I am having the same issue with the following stack.