Description
When using SharedPoolDataSource I get ORA-01453: SET TRANSACTION exception on con.setReadOnly(isDefaultReadOnly()); in setupDefaults method
I correct it with code -
protected void setupDefaults(Connection con, String username) throws SQLException {
con.rollback();
con.setReadOnly(isDefaultReadOnly());
con.setAutoCommit(isDefaultAutoCommit());
int defaultTransactionIsolation = getDefaultTransactionIsolation();
if (defaultTransactionIsolation != UNKNOWN_TRANSACTIONISOLATION)
}
rollback is important, without it it ends on same exception ...
I'm using 10.1.2.0.2 oracle driver