为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:Dm8
【操作系统】:win10
【CPU】:
【问题描述】*:
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.2.141</version>
</dependency>
两种连接方式都显示模式名称无效,模式是存在的
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method ‘dataSource’ threw exception; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: 第1 行附近出现错误:
无效的模式名[COMMONSERVICE]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
… 111 common frames omitted
这样指定的吗?还是版本不支持,只能在Do 指定模式名.表名去查询
指定系统自带模式类似 SYSDBA,SYS,可以正常启动。自己新建启动则报错spring.datasource.url=jdbc:dm://local:5236?schema=SYSDBA
目前我的项目中事这样写的
亲测没问题 你试试这样
模式名换成大写,jdbc连接串中目前SCHEMA属性看起来是无法大小写敏感