Mybatis连接数据库时报错原因归纳
来源:互联网 发布:鸿图网络危机公关公司 编辑:程序博客网 时间:2024/06/05 22:47
一:
报错信息
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:oracl
### The error may exist in sqlMapper/UsersMapper.xml
### The error may involve test.findUserById
### The error occurred while executing a query
### Cause: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:oracl
这里报错的可能性在于配置文件中的jdbc.url=jdbc:oracle:thin:@localhost:1521:oracl的oracl不是Oracle数据库的SID,数据库的SID是orcl,所以会报这个错,可以通过服务查看Oracle的SID进行核对
- Mybatis连接数据库时报错原因归纳
- adodc连接数据库,调用存储过程追加数据时报错
- 连接ORACLE数据库时报错:Unknown error opening cursor
- 连接数据库时报错:无效的列索引
- Java 连接linux下的hbase数据库时报错
- kettle学习之连接数据库资源库执行sql时报错
- 通过cmd连接数据库时报错协议适配器错误
- mybatis访问数据库时报java.lang.NullPointerException
- mybatis动态连接数据库
- MyBatis连接SQLServer数据库
- MyBatis连接数据库
- mybatis连接数据库
- 使用Mybatis连接数据库
- mybatis连接数据库
- [oracle]dbca新建数据库时报错ora-03113时可能的一种原因
- 还原数据库时报错
- 连接数据库时报TNS-12560错误
- oracle数据库在连接时报适配器错误
- 真正从零开始,TensorFlow详细安装入门图文教程!
- SVM三重境界
- 水仙花数(难度系数:半颗星)
- LeetCode#86. Partition List
- acm_整数求和
- Mybatis连接数据库时报错原因归纳
- ibatis 使用遇到的问题1
- Caffe学习笔记(四):使用pycaffe生成train.prototxt、test.prototxt文件
- Linux中的MySQL
- MySQL命令大全
- Java并发编程:volatile关键字解析
- java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 21
- 机器学习中的局部加权线性回归
- android 沉浸式状态栏