我有一些数据库插入/更新操作,因为它们要处理非常大的数据集,因此需要十多分钟才能完成。
我在TomEE中为数据源进行以下配置:
.project_row {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center; }
.project_container {
max-width: 300px;
max-height: 300px;
.project_container img {
width:100%;
height:auto;
}
}
运行此类操作时,我收到异常消息:<Resource id="BSLDataSource" type="javax.sql.DataSource">
DefaultAutoCommit = false
JdbcDriver = oracle.jdbc.OracleDriver
JdbcUrl = jdbc:oracle:thin:@host:port:sid
JmxEnabled = true
JtaManaged = true
LogAbandoned = true
MaxActive = 500
MaxIdle = 5
MaxWait = 10000
MinEvictableIdleTimeMillis = 1800000
MinIdle = 0
NumTestsPerEvictionRun = 3
Password = my-password
RemoveAbandoned = true
RemoveAbandonedTimeout = 600
TestOnBorrow = true
TestOnReturn = true
TestWhileIdle = true
TimeBetweenEvictionRunsMillis = 600000
UserName = my-user
ValidationQuery = SELECT 1 FROM DUAL
</Resource>
。
我需要进行哪些配置更改:
我尝试添加一个新属性:java.sql.SQLException: Connection has already been closed
,但是没有运气。
设置:
ConnectionProperties = oracle.net.CONNECT_TIMEOUT=3600000;oracle.jdbc.ReadTimeout=3600000
MaxIdle = 10
MinEvictableIdleTimeMillis = 3600000
MinIdle = 5
没有运气。
答案 0 :(得分:0)
您可以使用服务名称并以这种格式使用URL吗? jdbc:oracle:thin:@myhost:1521 / myorcldbservicename
还可以通过sqlplus或sqldeveloper获得连接吗?