I use an Oracle Database with JDBC and execute INSERTs on a connection. For each insert I create a new Statement
.
After much inserts (>1000), the error ORA-01000
occurs, meaning that Oracle has open cursors for the inserts. I know, I have not close the statements. If I close them, everything goes well.
The question is, why does Oracle create cursors for insert actions?
When I execute a SELECT
, Oracle give a ResultSet
back. I've tried to close the result sets but not the underlying statements. In this case (without inserts), the problem never occurs.