2011-12-16 10:14:24 org.springframework.jdbc.support.SQLErrorCodesFactory getErrorCodes
警告: Error while extracting database product name - falling back to empty error codes
org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (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:orcl
警告: Error while extracting database product name - falling back to empty error codes
org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (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:orcl
)
数据库没有写对 不存在所连接的数据库listener does not currently know of SID given in connect descriptor
本文解决了一个 Spring 应用程序在尝试通过 JDBC 连接到 Oracle 数据库时出现的问题,具体错误为 ORA-12505,表示监听器当前不知道连接描述符中给出的 SID。该问题可能是由于数据库配置不正确导致。
4199

被折叠的 条评论
为什么被折叠?



