oracle实施问题Could not get a databaseId from dataSource
2017-04-24 14:50
851 查看
前几天去业主哪里实施,项目启动失败,并且报错这样的错误,但是在正常的开发环境中不可能包这样的错误的。
我们用的数据库是oracle,而这个”Could not get a databaseId from dataSource”这个错误很明显是oracle的错误,一开始我以为是数据源出了问题,ip或者是用户密码,实例等出了问题,但是一番改正,项目启动还是报这个错误。
百般实验之后,确定是配置问题,是生产环境中和开发环境不一样造成的,修改如下:
改成:
这样就可以了,但是原理。。。。不懂,有大神看到指点一下吧!
我们用的数据库是oracle,而这个”Could not get a databaseId from dataSource”这个错误很明显是oracle的错误,一开始我以为是数据源出了问题,ip或者是用户密码,实例等出了问题,但是一番改正,项目启动还是报这个错误。
百般实验之后,确定是配置问题,是生产环境中和开发环境不一样造成的,修改如下:
oracle.jdbc.driverClassName=oracle.jdbc.driver.OracleDriver oracle.jdbc.url=jdbc\:oracle\:thin\:@115.25.251.88\:1521\:ORCL oracle.jdbc.username=dba oracle.jdbc.password=123
改成:
oracle.jdbc.driverClassName=oracle.jdbc.driver.OracleDriver oracle.jdbc.url=jdbc\:oracle\:thin\:@115.25.251.88\:1521\/ORCL oracle.jdbc.username=dba oracle.jdbc.password=123
这样就可以了,但是原理。。。。不懂,有大神看到指点一下吧!
相关文章推荐
- 追查Could not get a databaseId from dataSource
- Could not get a databaseId from dataSource
- 处理应用端连接redis报could not get a resource from the pool问题
- ORA-16796: one or more properties could not be imported from the database [ID 358040.1]
- 数据库连接问题之:Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
- Linux磁盘空间满导致的Connections could not be acquired from the underlying database!问题
- ORA-16796: one or more properties could not be imported from the database [ID 358040.1]
- 解决Connections could not be acquired from the underlying database!的问题
- Javaweb问题:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database问题解决
- 连接数据库出现:Connections could not be acquired from the underlying database
- Nhibernate下使用Oracle提示 “Could not create the driver from NHibernate.Driver.OracleDataClientDriver”
- Connections could not be acquired from the underlying database!原因及解决办法
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- 解决:Could not connect to database with specified JDBC URL问题
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- java.sql.SQLException: Connections could not be acquired from the underlying database!
- Claims系列 - ID4036错误(The key needed to decrypt the encrypted security token could not be resolved from the following security key identifier)
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- ireport $P{SUBREPORT_DIR}参数的使用 解决:Could not load object from location 不能加载子报表问题