Table locking problem.
Posted in 2001
Topics: Error Codes & Troubleshooting, Connectivity: ODBC / JDBC / .NET, Java & JDBC Development
Hello! I have a table with a single serial8 column.Lock mode is row. When several threads try simultaneously insert values in the table, the exception raises. Is there any way to get rid of it. Thanks! Artem Goncharuk java.sql.SQLException: ISAM error: the file is locked. at com.informix.jdbc.IfxSqli.errorDone(IfxSqli.java:3113) at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:2982) at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2066) at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:1995) at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSqli.java:1263) at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1210) at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1147) at com.informix.jdbc.IfxResultSet.executeQuery(IfxResultSet.java:218) at com.informix.jdbc.IfxStatement.executeQueryImpl(IfxStatement.java:707) at com.informix.jdbc.IfxPreparedStatement.executeQuery(IfxPreparedStatement.jav a:230)
Artem Goncharuk wrote in message <96b4l8$1oku$1@nl.novosoft.ru>... >Hello! > >I have a table with a single serial8 column.Lock mode is row. >When several threads try simultaneously insert values in the table, the >exception raises. Is there any way to get rid of it. Exactly which version of the Online engine do you have? There is another post from this same day which says: don't use 7.31.UD1 if your application uses serial numbers. Can u respond? If you don't have that version (and I don't know what the problem is) then it must be a problem with the Java interface or your setup, because I can tell you, inserting multiple rows into a table is VERY acceptable. I don't know anything about Java and database connectivity, so can't help you further.