这样的错误如何解决: READ_COMMITTED and SERIALIZABLE are the only valid transaction levelsDSRA0010E
java.sql.SQLException: READ_COMMITTED and SERIALIZABLE are the only valid transaction levelsDSRA0010E: SQL 状态 = null,错误代码 = 17,030 >
我的代码是这样的:
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("jdbc/MaxisOracle1");
Connection con = ds.getConnection();
//走到这里时候报错的
//con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
//Statement st = con.createStatement();
//ResultSet rs = st.executeQuery("select count(*) from hotlinkforum");
//out.println("forum count is: " + rs.getInt(1));
不知道如何处理
相关推荐
解决spring boot请求包含非法字符问题 The valid characters are defined in RFC 7230 and RFC 3986 错误
解决spring boot请求 java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 错误 问题出在 高版本的tomcat会对请求头进行过滤 我的项目使用的springboot版本是2.2.5版本, 内置的tomcat 版本是9.0.31。 解决方法①(推荐) 新增一个配置类 设置tomcat请求路径包含“[]\” 等特殊字符不拦截 代码如下: @Configurati
The MySQL server is running with the –read-only option so it cannot execute this statement
正在开会,同事电话反映开发库不能写入了,错误信息如下: 1209 – The MySQL server is running with the–read-only option so it cannot execute this statement 一般这个错误有两种原因: 1.连到从库了。从库一般设置为只读。 2.主库的read_only参数被修改为1 开发人员是普通用户应该没有权限修改这个参数的值。 DBA也不会去主动修改这个参数。那究竟是什么原因导致开发库不能写入了呢? 首先确认了不是开发人员的问题,因为部门的200多位研发都遇到了这个问题。 为了先解决问题,先去查询主库上read_on
The MySQL server is running with the --read-only option so it cannot execute this statement
1209 - The MySQL server is running with the --read-only option so it cannot execute this statement
mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法
主要给大家介绍了关于mysql出现报错:Deadlock found when trying to get lock; try restarting transaction的解决方法,文中通过示例代码介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面来一起看看吧。
WAC启动Android模拟器 transfer error: Read-only file system错误解决方法
主要为大家分享下WAC启动Android模拟器时出现transfer error: Read-only file system 问题的解决方法


