`
tansitongba
  • 浏览: 503551 次
文章分类
社区版块
存档分类
最新评论

收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 警告: SQL Error: 0, SQLState: null,严重: Cannot create PoolableConnectionFactory

 
阅读更多

警告: SQL Error: 0, SQLState: null
2010-4-20 13:34:50 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Cannot create PoolableConnectionFactory
2010-4-20 13:34:50 org.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause:
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:
112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:
146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:
255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:
387)
at oracle.jdbc.driver.PhysicalConnection.
<init>(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.
<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:
35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:
801)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:
82)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:
300)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:
838)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:
821)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:
518)
..

===================================

我的oracle一直是正常的,后来公司停电过后,出了点小问题·~~

数据库监听未启动 修改PC上注册表中的ImagePath值。
我下面以现在主流的数据库ORACLE为例
重新手动启动数据库监听:
1:开始 → 运行→ 输入CMD→ 进入DOS命令提示界面
d:>lsnrctl
LSNRCTL> status
或者
LSNRCTL> start
也有可能连接Url出错 服务器链接出错

start后出现:

Starting tnslsnr: please wait...

Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error

分享到:
评论
Global site tag (gtag.js) - Google Analytics