这样的错误如何解决: READ_COMMITTED and SERIALIZABLE are the only valid transaction levelsDSRA0010E

suypower1 suypower1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在使用was6连接数据库oracle时候遇到这样的问题
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

weixin_38626032

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

weixin_38720173

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

weixin_38665490

mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法

主要给大家介绍了关于mysql出现报错:Deadlock found when trying to get lock; try restarting transaction的解决方法,文中通过示例代码介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面来一起看看吧。

weixin_38595528

WAC启动Android模拟器 transfer error: Read-only file system错误解决方法

主要为大家分享下WAC启动Android模拟器时出现transfer error: Read-only file system 问题的解决方法

weixin_38639615
评论
收藏 已收藏
分享
返回顶部
suypower1
Oracle 17,133 成员 55,258 内容